Ticket #4412: toml.patch

File toml.patch, 1.2 KB (added by fadeevab, 17 months ago)
  • misc/syntax/Makefile.am

    diff --git a/misc/syntax/Makefile.am b/misc/syntax/Makefile.am
    index 0a3bb120e..59944564d 100644
    a b SYNTAXFILES = \ 
    9090        syntax.syntax           \ 
    9191        tcl.syntax              \ 
    9292        texinfo.syntax          \ 
     93        toml.syntax             \ 
    9394        ts.syntax               \ 
    9495        tt.syntax               \ 
    9596        unknown.syntax          \ 
  • misc/syntax/Syntax.in

    diff --git a/misc/syntax/Syntax.in b/misc/syntax/Syntax.in
    index 01dad61a3..0242b83eb 100644
    a b include swift.syntax 
    328328file ..\*\\.action$ Privoxy\sFile 
    329329include privoxy.syntax 
    330330 
     331file .\*\\.toml TOML\sFile 
     332include toml.syntax 
     333 
    331334file .\* unknown 
    332335include unknown.syntax 
  • new file misc/syntax/toml.syntax

    diff --git a/misc/syntax/toml.syntax b/misc/syntax/toml.syntax
    new file mode 100644
    index 000000000..0a1dff44f
    - +  
     1# TOML: Tom's Obvious Minimal Language 
     2 
     3context default white 
     4 
     5# groups 
     6context [ \n brown 
     7    keyword [ yellow 
     8    keyword ] yellow 
     9 
     10# assignment 
     11context exclusive = \n write 
     12    keyword "*" brightgreen 
     13    keyword whole false brightcyan 
     14    keyword whole true brightcyan 
     15    keyword \{0123456789\} brightcyan 
     16 
     17# comments 
     18context # \n brown 
     19    spellcheck 
     20 
     21# other strings 
     22context " " brightgreen