mirror of https://github.com/MidnightCommander/mc
Ticket #4412: add TOML (Tom's Obvious Minimal Language) syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
9507ceda20
commit
87bfef7317
|
@ -90,6 +90,7 @@ SYNTAXFILES = \
|
|||
syntax.syntax \
|
||||
tcl.syntax \
|
||||
texinfo.syntax \
|
||||
toml.syntax \
|
||||
ts.syntax \
|
||||
tt.syntax \
|
||||
unknown.syntax \
|
||||
|
|
|
@ -328,5 +328,8 @@ include swift.syntax
|
|||
file ..\*\\.action$ Privoxy\sFile
|
||||
include privoxy.syntax
|
||||
|
||||
file .\*\\.toml$ TOML\sFile
|
||||
include toml.syntax
|
||||
|
||||
file .\* unknown
|
||||
include unknown.syntax
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
# TOML: Tom's Obvious Minimal Language
|
||||
|
||||
context default white
|
||||
|
||||
# groups
|
||||
context [ \n brown
|
||||
keyword [ yellow
|
||||
keyword ] yellow
|
||||
|
||||
# assignment
|
||||
context exclusive = \n write
|
||||
keyword "*" brightgreen
|
||||
keyword whole false brightcyan
|
||||
keyword whole true brightcyan
|
||||
keyword \{0123456789\} brightcyan
|
||||
|
||||
# comments
|
||||
context # \n brown
|
||||
spellcheck
|
||||
|
||||
# other strings
|
||||
context " " brightgreen
|
Loading…
Reference in New Issue