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.

229 lines
7.4 KiB
JSON

{
"aliases": [
"qt"
],
"case_insensitive": false,
"keywords": {
"keyword": "in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",
"literal": "true false null undefined NaN Infinity",
"built_in": "eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4dPromise"
},
"contains": [
{
"className": "meta",
"begin": "^\\s*['\"]use (strict|asm)['\"]"
},
{
"className": "string",
"begin": "'",
"end": "'",
"illegal": "\\n",
"contains": [
{
"begin": "\\\\[\\s\\S]",
"relevance": 0
}
]
},
{
"className": "string",
"begin": "\"",
"end": "\"",
"illegal": "\\n",
"contains": [
{
"$ref": "#contains.1.contains.0"
}
]
},
{
"className": "string",
"begin": "`",
"end": "`",
"contains": [
{
"$ref": "#contains.1.contains.0"
},
{
"className": "subst",
"begin": "\\$\\{",
"end": "\\}"
}
]
},
{
"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.4.contains.0"
},
{
"className": "doctag",
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
"relevance": 0
}
]
},
{
"className": "number",
"variants": [
{
"begin": "\\b(0[bB][01]+)"
},
{
"begin": "\\b(0[oO][0-7]+)"
},
{
"begin": "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)"
}
],
"relevance": 0
},
{
"begin": "(!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|\/=|\/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~|\\b(case|return|throw)\\b)\\s*",
"keywords": "return throw case",
"contains": [
{
"$ref": "#contains.4"
},
{
"$ref": "#contains.5"
},
{
"className": "regexp",
"begin": "\\\/",
"end": "\\\/[gimuy]*",
"illegal": "\\n",
"contains": [
{
"$ref": "#contains.1.contains.0"
},
{
"begin": "\\[",
"end": "\\]",
"relevance": 0,
"contains": [
{
"$ref": "#contains.1.contains.0"
}
]
}
]
},
{
"begin": "<",
"end": ">\\s*[);\\]]",
"relevance": 0,
"subLanguage": "xml"
}
],
"relevance": 0
},
{
"className": "keyword",
"begin": "\\bsignal\\b",
"starts": {
"className": "string",
"end": "(\\(|:|=|;|,|\/\/|\/\\*|$)",
"returnEnd": true
}
},
{
"className": "keyword",
"begin": "\\bproperty\\b",
"starts": {
"className": "string",
"end": "(:|=|;|,|\/\/|\/\\*|$)",
"returnEnd": true
}
},
{
"className": "function",
"beginKeywords": "function",
"end": "\\{",
"excludeEnd": true,
"contains": [
{
"className": "title",
"begin": "[A-Za-z$_][0-9A-Za-z$_]*",
"relevance": 0
},
{
"className": "params",
"begin": "\\(",
"end": "\\)",
"excludeBegin": true,
"excludeEnd": true,
"contains": [
{
"$ref": "#contains.4"
},
{
"$ref": "#contains.5"
}
]
}
],
"illegal": "\\[|%"
},
{
"begin": "\\.[a-zA-Z]\\w*",
"relevance": 0
},
{
"className": "attribute",
"begin": "\\bid\\s*:",
"starts": {
"className": "string",
"end": "[a-zA-Z_][a-zA-Z0-9\\._]*",
"returnEnd": false
}
},
{
"begin": "[a-zA-Z_][a-zA-Z0-9\\._]*\\s*:",
"returnBegin": true,
"contains": [
{
"className": "attribute",
"begin": "[a-zA-Z_][a-zA-Z0-9\\._]*",
"end": "\\s*:",
"excludeEnd": true,
"relevance": 0
}
],
"relevance": 0
},
{
"begin": "[a-zA-Z_][a-zA-Z0-9\\._]*\\s*{",
"end": "{",
"returnBegin": true,
"relevance": 0,
"contains": [
{
"className": "title",
"begin": "[a-zA-Z_][a-zA-Z0-9\\._]*",
"relevance": 0
}
]
}
],
"illegal": "#"
}