Makefile.lang - problems and questions
The last changes in the sh.lang
have broken the Makefile
highlighter. I have started to work on a fix but I have found more problems so I attempted to fix those as well. Most of the work is already done but I have two questions.
-
In
Makefile
variables, only their name is highlighted but the surrounding parentheses are not - $(VARNAME). However, variables can be found in strings where they inherit the colour of strings. So my question is what type of highlighting to prefer? "string $(VARNAME)string" (variant A) or "string $(VARNAME)string" (variant B)? Personally, I would prefer the first variant - leaving the parentheses without a colour. -
Another problem are the 'sigil-like' flags before commands. In a Makefile rule can be
@echo 'xxx'
for disabling echoing the command name or-echo 'xxx'
for ignoring the command's failure. But the characters@+-
are not listed in the%{lb}
regex insh.lang
so such a command name is not matched properly. Any tip how to solve this problem without a need to modify the regex insh.lang
? 'Copy' somehow thegeneric-command
context while replacing thestart
regex, if it is possible?