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.
82 lines
2.4 KiB
JSON
82 lines
2.4 KiB
JSON
{
|
|
"keywords": {
|
|
"keyword": "actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",
|
|
"meta": "iso val tag trn box ref",
|
|
"literal": "this false true"
|
|
},
|
|
"contains": [
|
|
{
|
|
"className": "type",
|
|
"begin": "\\b_?[A-Z][\\w]*",
|
|
"relevance": 0
|
|
},
|
|
{
|
|
"className": "string",
|
|
"begin": "\"\"\"",
|
|
"end": "\"\"\"",
|
|
"relevance": 10
|
|
},
|
|
{
|
|
"className": "string",
|
|
"begin": "\"",
|
|
"end": "\"",
|
|
"contains": [
|
|
{
|
|
"begin": "\\\\[\\s\\S]",
|
|
"relevance": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"className": "string",
|
|
"begin": "'",
|
|
"end": "'",
|
|
"contains": [
|
|
{
|
|
"$ref": "#contains.2.contains.0"
|
|
}
|
|
],
|
|
"relevance": 0
|
|
},
|
|
{
|
|
"begin": "[a-zA-Z]\\w*'",
|
|
"relevance": 0
|
|
},
|
|
{
|
|
"className": "number",
|
|
"begin": "(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",
|
|
"relevance": 0
|
|
},
|
|
{
|
|
"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": "comment",
|
|
"begin": "\/\\*",
|
|
"end": "\\*\/",
|
|
"contains": [
|
|
{
|
|
"$ref": "#contains.6.contains.0"
|
|
},
|
|
{
|
|
"className": "doctag",
|
|
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
|
|
"relevance": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|