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.
master
Benno Schulenberg 2021-10-17 12:19:28 +02:00
parent 557d8131ca
commit b9f472a905
1 changed files with 1 additions and 1 deletions

View File

@ -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.