mirror of
https://github.com/scopatz/nanorc
synced 2024-10-31 23:00:00 +01:00
14 lines
448 B
Plaintext
14 lines
448 B
Plaintext
syntax "JSON" "\.json$"
|
|
header "^\{$"
|
|
# You can't add a comment to JSON.
|
|
comment ""
|
|
|
|
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 ,green "[[:space:]]+$"
|
|
color ,red " + +| + +"
|