add json syntax
This commit is contained in:
parent
7fa202ac5f
commit
1265796996
3 changed files with 64 additions and 3 deletions
17
static/syntax/json.json
Normal file
17
static/syntax/json.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"patterns": [
|
||||
{ "regex": "[a-zA-Z_][a-zA-Z0-9_]*", "is": "error" },
|
||||
{ "regex": "[0-9_]+(\\.[0-9_]*([eE][-+]?[0-9_]+)?)?", "is": "literal" },
|
||||
{
|
||||
"regex": "\"(\\\\\"|[^\"])*\"(:)",
|
||||
"is": { "default": "keyword2", "captures": ["keyword2", "punct"] }
|
||||
},
|
||||
{ "regex": "\"(\\\\\"|[^\"])*\"", "is": "string" },
|
||||
{ "regex": "[,]", "is": "punct" }
|
||||
],
|
||||
"keywords": {
|
||||
"null": { "into": "literal" },
|
||||
"true": { "into": "literal" },
|
||||
"false": { "into": "literal" }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue