When, I've taken one step forward, but not in the direction I want.
It shows different syntax colours [good; it's recognising .awk as a known language] but not keywords I want [bad]; neither keywords from filetypes.Awk.conf
nor filetypes.awk
nor filetypes.perl
,
I have created ~/.config/geany/filetype_extensions.conf
with lines of
[Extensions]
Awk=*.awk;
Perl=*.pl;*.perl;*.pm;*.agi;*.pod;
[Groups]
None=Awk;
I have created ~/.config/geany/filedefs/filetypes.Awk.conf
. with
[styling=Perl]
primary=NR break switch NULL __FILE__ [... rest just like perl ...] # note three awk keywords prefixing standard perl ones.
[lexer_properties=Perl]
[settings]
lexer_filetype=Perl
tag_parser=Perl
extension=awk
comment_single=#
#[build-menu]
I have created ~/.config/geany/filedefs/filetypes.awk
based on filetypes.perl
as shown in original post (I hope). It has dozens of awk keywords.
I have modified ~/.config/geany/filedefs/filetypes.perl
to add a couple of awk keywords
primary=case NR NULL __FILE__ [ ... ]
. Note that when viewing MyFile.pl
, it shows these perl and new keywords with keyword highlighting. But NOT for MyFile.awk i,e. no perl nor awk keyword highlighting.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.