mirror of git://git.sv.gnu.org/nano.git
syntax: texinfo: be more precise in colorizing @commands
An @command must either start at the beginning of the line and be followed by whitespace or EOL, or it must be followed by a brace. Colorizing just any "@text" string colored too much.
This commit is contained in:
parent
557d8131ca
commit
b9f472a905
|
@ -15,7 +15,7 @@ color purple start="^@direntry" end="^@end direntry"
|
|||
color cyan "^@[a-z]+[[:space:]]+.*"
|
||||
color lightmagenta "@([a-z]+|,|H|U)\{([^}]|@\}|@[a-z]+\{[^}]*\})*\}"
|
||||
# Commands themselves.
|
||||
color yellow "@([a-z]+\{?|[,HU]\{|(AA|AE|DH|L|OE?|(La)?TeX|TH)\{)|\}"
|
||||
color yellow "^@[a-z]+([[:space:]]|$)|@([a-z]+|,|H|U|AA|AE|DH|L|OE?|(La)?TeX|TH)\{|\}"
|
||||
color pink "@[!"'&*./:=?@\^`{}~-]"
|
||||
|
||||
# Special separator for headings and footings.
|
||||
|
|
Loading…
Reference in New Issue