]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/json.micro
Merge pull request #462 from Theodus/pony-syntax
[micro.git] / runtime / syntax / json.micro
index d6338c97146f7f0729f8aece941df396284b802a..3ef298e08c0972639c5e03a986b491e199036a7b 100644 (file)
@@ -1,11 +1,13 @@
 syntax "json" "\.json$"
 header "^\{$"
 
-color blue   "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>"  "\<[-]?[0](\.[0-9]+)?\>"
-color cyan  "\<null\>"
-color brightcyan "\<(true|false)\>"
-color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
-color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:"  "'(\'|[^'])*'[[:space:]]*:"
-color magenta   "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]"
+color constant.number   "\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\b"
+color constant.number   "\b[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
+color constant.number   "\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
+color constant  "\b(null)\b"
+color constant "\b(true|false)\b"
+color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
+color statement "\"(\\"|[^"])*\"[[:space:]]*:"  "'(\'|[^'])*'[[:space:]]*:"
+color constant   "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]"
 color ,green "[[:space:]]+$"
 color ,red "   + +| +  +"