mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
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
|
||||
|
22
misc/syntax/toml.syntax
Normal file
22
misc/syntax/toml.syntax
Normal file
@ -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
Block a user