Ticket #4412: add TOML (Tom's Obvious Minimal Language) syntax highlighting.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Alexander Fadeev 2022-11-26 09:44:24 +03:00 committed by Andrew Borodin
parent 9507ceda20
commit 87bfef7317
3 changed files with 26 additions and 0 deletions

View File

@ -90,6 +90,7 @@ SYNTAXFILES = \
syntax.syntax \
tcl.syntax \
texinfo.syntax \
toml.syntax \
ts.syntax \
tt.syntax \
unknown.syntax \

View File

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