2002-09-27 07:33:39 +04:00
|
|
|
# Syntax highlighting rules for syntax highlighting rules
|
|
|
|
|
|
|
|
# Use \[\] at the end of keywords to suppress their special meaning
|
|
|
|
|
|
|
|
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.\\[]{}
|
|
|
|
|
2002-09-19 02:25:24 +04:00
|
|
|
context default
|
2002-09-27 07:33:39 +04:00
|
|
|
# Invalid combinations, not highlighted
|
|
|
|
keyword whole linestart\[\t\s\]whole
|
|
|
|
keyword whole linestart\[\t\s\]wholeleft
|
|
|
|
keyword whole linestart\[\t\s\]wholeright
|
|
|
|
|
|
|
|
# Combinations below are valid
|
2002-09-30 00:09:12 +04:00
|
|
|
keyword whole whole\[\t\s\]linestart brightcyan
|
|
|
|
keyword whole wholeleft\[\t\s\]linestart brightcyan
|
|
|
|
keyword whole wholeright\[\t\s\]linestart brightcyan
|
|
|
|
keyword whole whole\[\] brightcyan
|
|
|
|
keyword whole wholeleft\[\] brightcyan
|
|
|
|
keyword whole wholeright\[\] brightcyan
|
|
|
|
keyword whole linestart\[\] brightcyan
|
|
|
|
|
|
|
|
keyword whole wholechars\[\t\s\]left brightcyan
|
|
|
|
keyword whole wholechars\[\t\s\]right brightcyan
|
|
|
|
keyword whole wholechars\[\] brightcyan
|
2003-02-26 22:31:07 +03:00
|
|
|
keyword whole define\[\] brightcyan
|
2002-09-30 00:09:12 +04:00
|
|
|
|
|
|
|
keyword whole spellcheck\[\] yellow
|
|
|
|
keyword whole keyword\[\] yellow
|
|
|
|
keyword whole context\[\t\s\]exclusive brightred
|
|
|
|
keyword whole context\[\t\s\]default brightred
|
|
|
|
keyword whole context\[\] brightred
|
2010-03-04 18:51:20 +03:00
|
|
|
keyword whole caseinsensitive\[\] brightred
|
2002-09-30 00:09:12 +04:00
|
|
|
|
|
|
|
keyword whole linestart file\[\] brightgreen
|
|
|
|
keyword whole linestart include\[\] brightred
|
|
|
|
|
|
|
|
keyword whole black black blue
|
|
|
|
keyword whole red red
|
|
|
|
keyword whole green green
|
|
|
|
keyword whole brown brown
|
|
|
|
keyword whole blue blue black
|
|
|
|
keyword whole magenta magenta
|
|
|
|
keyword whole cyan cyan
|
|
|
|
keyword whole lightgray lightgray
|
2002-10-02 23:25:48 +04:00
|
|
|
keyword whole gray gray black
|
2002-09-30 00:09:12 +04:00
|
|
|
keyword whole brightred brightred
|
|
|
|
keyword whole brightgreen brightgreen
|
|
|
|
keyword whole yellow yellow
|
2005-07-27 19:56:42 +04:00
|
|
|
keyword whole brightblue brightblue black
|
2002-09-30 00:09:12 +04:00
|
|
|
keyword whole brightmagenta brightmagenta
|
|
|
|
keyword whole brightcyan brightcyan
|
|
|
|
keyword whole white white
|
|
|
|
|
|
|
|
context linestart # \n brown
|
2016-12-05 02:48:33 +03:00
|
|
|
spellcheck
|
|
|
|
|
|
|
|
# Ideally we would have defined comments with "context linestart \[\s\]# ...",
|
|
|
|
# but contexts can't start with a character class. So we define comments twice.
|
|
|
|
context linestart \s\[\s\]# \n brown
|
|
|
|
spellcheck
|