You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.6 KiB
JSON
59 lines
1.6 KiB
JSON
{
|
|
"illegal": "[!@#$^&',?+~`|:]",
|
|
"keywords": "ALPHA BIT CHAR CR CRLF CTL DIGIT DQUOTE HEXDIG HTAB LF LWSP OCTET SP VCHAR WSP",
|
|
"contains": [
|
|
{
|
|
"className": "attribute",
|
|
"begin": "^[a-zA-Z][a-zA-Z0-9\\-]*(?=\\s*=)"
|
|
},
|
|
{
|
|
"className": "comment",
|
|
"begin": ";",
|
|
"end": "$",
|
|
"contains": [
|
|
{
|
|
"begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"
|
|
},
|
|
{
|
|
"className": "doctag",
|
|
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
|
|
"relevance": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"className": "symbol",
|
|
"begin": "%b[0-1]+(-[0-1]+|(\\.[0-1]+)+){0,1}"
|
|
},
|
|
{
|
|
"className": "symbol",
|
|
"begin": "%d[0-9]+(-[0-9]+|(\\.[0-9]+)+){0,1}"
|
|
},
|
|
{
|
|
"className": "symbol",
|
|
"begin": "%x[0-9A-F]+(-[0-9A-F]+|(\\.[0-9A-F]+)+){0,1}"
|
|
},
|
|
{
|
|
"className": "symbol",
|
|
"begin": "%[si]"
|
|
},
|
|
{
|
|
"className": "string",
|
|
"begin": "\"",
|
|
"end": "\"",
|
|
"illegal": "\\n",
|
|
"contains": [
|
|
{
|
|
"begin": "\\\\[\\s\\S]",
|
|
"relevance": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"className": "number",
|
|
"begin": "\\b\\d+(\\.\\d+)?",
|
|
"relevance": 0
|
|
}
|
|
]
|
|
}
|