summaryrefslogtreecommitdiff
path: root/deps/v8/tools/torque/vscode-torque/syntaxes/torque.tmLanguage.json
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/torque/vscode-torque/syntaxes/torque.tmLanguage.json')
-rw-r--r--deps/v8/tools/torque/vscode-torque/syntaxes/torque.tmLanguage.json350
1 files changed, 176 insertions, 174 deletions
diff --git a/deps/v8/tools/torque/vscode-torque/syntaxes/torque.tmLanguage.json b/deps/v8/tools/torque/vscode-torque/syntaxes/torque.tmLanguage.json
index cbbf381da8..dea5be517b 100644
--- a/deps/v8/tools/torque/vscode-torque/syntaxes/torque.tmLanguage.json
+++ b/deps/v8/tools/torque/vscode-torque/syntaxes/torque.tmLanguage.json
@@ -1,175 +1,177 @@
{
- "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
- "name": "Torque",
- "patterns": [
- {
- "name": "comment.line.double-slash.torque",
- "begin": "//",
- "end": "$"
- },
- {
- "name": "comment.block.torque",
- "begin": "/\\*",
- "end": "\\*/"
- },
- {
- "name": "support.function.torque",
- "match": "\\b(assert|check|debug|unreachable|Cast|Convert|FromConstexpr|UnsafeCast)\\b"
- },
- {
- "name": "constant.other.torque",
- "match": "\\b(true|True|false|False|Undefined|Hole|Null|k[A-Z][A-Za-z0-9]+)\\b"
- },
- {
- "begin": "\\b<(?=[A-Za-z][0-9A-Za-z_|, ]*>)",
- "end": ">",
- "patterns": [
- {
- "include": "#common"
- },
- {
- "name": "support.type.torque",
- "match": "([A-Za-z][0-9A-Za-z_]*)"
- }
- ]
- },
- {
- "begin": "\\b(?=extern\\b)",
- "end": ";",
- "patterns": [
- {
- "begin": "\\)\\(|(?=(\\b[a-zA-Z0-9_]+)\\((?!\\s*implicit))",
- "end": "\\)",
- "patterns": [
- {
- "include": "#common"
- },
- {
- "name": "support.type.torque",
- "match": "([A-Za-z][0-9A-Za-z_]*)"
- }
- ]
- },
- {
- "include": "#common"
- }
- ]
- },
- {
- "begin": "\\b(type)\\b",
- "end": ";",
- "captures": {
- "1": {
- "name": "keyword.other.torque"
- }
- },
- "patterns": [
- {
- "include": "#common"
- },
- {
- "name": "support.type.torque",
- "match": "\\b([A-Za-z][0-9A-Za-z_]*)\\b"
- }
- ]
- },
- {
- "name": "keyword.control.torque",
- "match": "#include"
- },
- {
- "include": "#common"
- }
- ],
- "repository": {
- "common": {
- "patterns": [
- {
- "match": "\\b(extends)\\s+([A-Za-z0-9]+)",
- "captures": {
- "1": {
- "name": "keyword.other.torque"
- },
- "2": {
- "name": "support.type.torque"
- }
- }
- },
- {
- "name": "keyword.control.torque",
- "match": "\\b(if|else|while|for|return|continue|break|goto|otherwise|try|label|catch)\\b"
- },
- {
- "name": "keyword.other.torque",
- "match": "\\b(constexpr|macro|builtin|runtime|intrinsic|javascript|implicit|deferred|label|labels|tail|let|generates|weak|extern|const|typeswitch|case|transient|transitioning|operator|namespace)\\b"
- },
- {
- "name": "keyword.operator.torque",
- "match": "\\b(=|\\*=)\\b"
- },
- {
- "match": "\\b(class)\\s+([A-Za-z0-9]+)",
- "captures": {
- "1": {
- "name": "keyword.other.torque"
- },
- "2": {
- "name": "support.type.torque"
- }
- }
- },
- {
- "match": "\\b(struct)\\s+([A-Za-z0-9]+)",
- "captures": {
- "1": {
- "name": "keyword.other.torque"
- },
- "2": {
- "name": "support.type.torque"
- }
- }
- },
- {
- "name": "string.quoted.double.torque",
- "begin": "\"",
- "end": "\"",
- "patterns": [
- {
- "name": "constant.character.escape.torque",
- "match": "\\\\."
- }
- ]
- },
- {
- "name": "string.quoted.single.torque",
- "begin": "'",
- "end": "'",
- "patterns": [
- {
- "name": "constant.character.escape.torque",
- "match": "\\\\."
- }
- ]
- },
- {
- "begin": ":(\\s*)?",
- "end": "(?=(generates|[^0-9A-Za-z_| ]))",
- "patterns": [
- {
- "include": "#common"
- },
- {
- "name": "support.type.torque",
- "match": "([A-Za-z][0-9A-Za-z_]*)"
- }
- ]
- },
- {
- "name": "support.function.torque",
- "match": "\\b[A-Za-z0-9_]+\\b(?=(<[ ,:A-Za-z0-9_]+>)?\\()"
- }
- ]
- }
- },
- "scopeName": "source.torque"
-} \ No newline at end of file
+ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
+ "name": "Torque",
+ "patterns": [
+ {
+ "name": "comment.line.double-slash.torque",
+ "begin": "//",
+ "end": "$"
+ },
+ {
+ "name": "comment.block.torque",
+ "begin": "/\\*",
+ "end": "\\*/"
+ },
+ {
+ "name": "support.function.torque",
+ "match": "\\b(assert|check|debug|unreachable|Cast|Convert|FromConstexpr|UnsafeCast)\\b"
+ },
+ {
+ "name": "constant.other.torque",
+ "match": "\\b(true|True|false|False|Undefined|Hole|Null|k[A-Z][A-Za-z0-9]+)\\b"
+ },
+ {
+ "begin": "\\b<(?=[A-Za-z][0-9A-Za-z_|, ]*>)",
+ "end": ">",
+ "patterns": [
+ {
+ "include": "#common"
+ },
+ {
+ "name": "support.type.torque",
+ "match": "([A-Za-z][0-9A-Za-z_]*)"
+ }
+ ]
+ },
+ {
+ "begin": "\\b(?=(macro|runtime|builtin)\\b)",
+ "end": ";|\\{",
+ "patterns": [
+ {
+ "begin": "\\(",
+ "end": "\\)",
+ "patterns": [
+ {
+ "include": "#common"
+ },
+ {
+ "match": "(([A-Za-z][0-9A-Za-z_]*):\\s*)?([A-Za-z][0-9A-Za-z_]*)",
+ "captures":{
+ "3": {"name": "support.type.torque"}
+ }
+ }
+ ]
+ },
+ {
+ "include": "#common"
+ }
+ ]
+ },
+ {
+ "begin": "\\b(type)\\b",
+ "end": ";",
+ "captures": {
+ "1": {
+ "name": "keyword.other.torque"
+ }
+ },
+ "patterns": [
+ {
+ "include": "#common"
+ },
+ {
+ "name": "support.type.torque",
+ "match": "\\b([A-Za-z][0-9A-Za-z_]*)\\b"
+ }
+ ]
+ },
+ {
+ "name": "keyword.control.torque",
+ "match": "#include"
+ },
+ {
+ "include": "#common"
+ }
+ ],
+ "repository": {
+ "common": {
+ "patterns": [
+ {
+ "match": "\\b(extends)\\s+([A-Za-z0-9]+)",
+ "captures": {
+ "1": {
+ "name": "keyword.other.torque"
+ },
+ "2": {
+ "name": "support.type.torque"
+ }
+ }
+ },
+ {
+ "name": "keyword.control.torque",
+ "match": "\\b(if|else|while|for|return|continue|break|goto|otherwise|try|label|catch)\\b"
+ },
+ {
+ "name": "keyword.other.torque",
+ "match": "\\b(constexpr|macro|builtin|runtime|intrinsic|javascript|implicit|deferred|label|labels|tail|let|generates|weak|extern|const|typeswitch|case|transient|transitioning|operator|namespace|export)\\b"
+ },
+ {
+ "name": "keyword.operator.torque",
+ "match": "\\b(=|\\*=)\\b"
+ },
+ {
+ "match": "\\b(class|new)\\s+([A-Za-z0-9]+)",
+ "captures": {
+ "1": {
+ "name": "keyword.other.torque"
+ },
+ "2": {
+ "name": "support.type.torque"
+ }
+ }
+ },
+ {
+ "match": "\\b(struct)\\s+([A-Za-z0-9]+)",
+ "captures": {
+ "1": {
+ "name": "keyword.other.torque"
+ },
+ "2": {
+ "name": "support.type.torque"
+ }
+ }
+ },
+ {
+ "name": "string.quoted.double.torque",
+ "begin": "\"",
+ "end": "\"",
+ "patterns": [
+ {
+ "name": "constant.character.escape.torque",
+ "match": "\\\\."
+ }
+ ]
+ },
+ {
+ "name": "string.quoted.single.torque",
+ "begin": "'",
+ "end": "'",
+ "patterns": [
+ {
+ "name": "constant.character.escape.torque",
+ "match": "\\\\."
+ }
+ ]
+ },
+ {
+ "begin": ":(\\s*)?",
+ "end": "(?=(generates|[^0-9A-Za-z_| ]))",
+ "patterns": [
+ {
+ "include": "#common"
+ },
+ {
+ "name": "support.type.torque",
+ "match": "([A-Za-z][0-9A-Za-z_]*)"
+ }
+ ]
+ },
+ {
+ "name": "support.function.torque",
+ "match": "\\b[A-Za-z0-9_]+\\b(?=(<[ ,:A-Za-z0-9_]+>)?\\()"
+ }
+ ]
+ }
+ },
+ "scopeName": "source.torque"
+}