micro/runtime/syntax/json.micro

12 lines
402 B
Text
Raw Normal View History

syntax "json" "\.json$"
2016-03-21 16:16:02 +00:00
header "^\{$"
2016-03-25 20:41:36 +00:00
color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
color cyan "\<null\>"
color brightcyan "\<(true|false)\>"
2016-03-21 16:16:02 +00:00
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:"
color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]"
color ,green "[[:space:]]+$"
color ,red " + +| + +"