mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
2e078ff774
Comments don't have to start at the 1st column. We add support for this case. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
61 lines
2.1 KiB
YAML
61 lines
2.1 KiB
YAML
# Syntax highlighting rules for syntax highlighting rules
|
|
|
|
# Use \[\] at the end of keywords to suppress their special meaning
|
|
|
|
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.\\[]{}
|
|
|
|
context default
|
|
# 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
|
|
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
|
|
keyword whole define\[\] brightcyan
|
|
|
|
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
|
|
keyword whole caseinsensitive\[\] brightred
|
|
|
|
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
|
|
keyword whole gray gray black
|
|
keyword whole brightred brightred
|
|
keyword whole brightgreen brightgreen
|
|
keyword whole yellow yellow
|
|
keyword whole brightblue brightblue black
|
|
keyword whole brightmagenta brightmagenta
|
|
keyword whole brightcyan brightcyan
|
|
keyword whole white white
|
|
|
|
context linestart # \n brown
|
|
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
|