nanorc/json.nanorc
2015-05-28 23:09:03 +01:00

17 lines
590 B
Plaintext

syntax "json" "\.json$"
header "^\{$"
## Mac OSX users: If you use Mac OSX, it might be necessary to perform the following:
## 1. Replace \< by [[:<:]]
## 2. Replace \> by [[:>:]]
## 3. Replace \' by \\'
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 " +"