Skip to content

Commit 8b3071b

Browse files
committed
Fix standardTokenType scopeName strings from disabling brackets
1 parent a74d95c commit 8b3071b

6 files changed

+6
-6
lines changed

syntaxes/JSON.tmLanguage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
{
6565
"begin": "(?=\"((?>[^\\\\\"]++|\\\\.)*+)\")",
6666
"end": "(?!\\G)(?<=,)|(?=})",
67-
"name": ".$1.",
67+
"name": ".meta.embedded.$1.",
6868
"patterns": [ { "include": "#objectpair" } ]
6969
},
7070
{ "include": "#objectpair" }

syntaxes/JSONC.tmLanguage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
{
6565
"begin": "(?=\"((?>[^\\\\\"]++|\\\\.)*+)\")",
6666
"end": "(?!\\G)(?<=,)|(?=})",
67-
"name": ".$1.",
67+
"name": ".meta.embedded.$1.",
6868
"patterns": [ { "include": "#objectpair" } ]
6969
},
7070
{ "include": "#objectpair" }

syntaxes/language-configuration.tmLanguage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"comment": "https://github.com/wraith13/vscode-schemas/blob/master/en/latest/schemas/language-configuration.json#L237-L258",
44
"name": "language-configuration",
55
"scopeName": "source.json.comments.language-configuration",
6-
"injectionSelector": "L:source.json.comments .wordPattern. meta.structure.dictionary.value.json.comments -(meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments) -meta.structure.array.json.comments -string -comment, L:source.json.comments .wordPattern. .pattern. meta.structure.dictionary.value.json.comments -(meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments) -meta.structure.array.json.comments -string -comment",
6+
"injectionSelector": "L:source.json.comments .meta.embedded.wordPattern. meta.structure.dictionary.value.json.comments -(meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments) -meta.structure.array.json.comments -string -comment, L:source.json.comments .meta.embedded.wordPattern. .meta.embedded.pattern. meta.structure.dictionary.value.json.comments -(meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments) -meta.structure.array.json.comments -string -comment",
77
"patterns": [
88
{ "include": "#wordPattern" }
99
],

syntaxes/legacy_tox_ini.tmLanguage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"comment": "https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/pyproject.json",
44
"name": "json.legacy_tox_ini",
55
"scopeName": "source.json.legacy_tox_ini",
6-
"injectionSelector": "L:source.json .tool. .tox. .legacy_tox_ini. meta.structure.dictionary.value.json -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -meta.structure.array.json -string -comment",
6+
"injectionSelector": "L:source.json .meta.embedded.tool. .meta.embedded.tox. .meta.embedded.legacy_tox_ini. meta.structure.dictionary.value.json -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -meta.structure.array.json -string -comment",
77
"patterns": [
88
{ "include": "#legacy_tox_ini" }
99
],

syntaxes/scripts.tmLanguage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
33
"name": "package.json",
44
"scopeName": "source.json.shellscript",
5-
"injectionSelector": "L:source.json .scripts. meta.structure.dictionary.json meta.structure.dictionary.value.json -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -meta.structure.array.json -string -comment",
5+
"injectionSelector": "L:source.json .meta.embedded.scripts. meta.structure.dictionary.json meta.structure.dictionary.value.json -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -meta.structure.array.json -string -comment",
66
"patterns": [
77
{ "include": "#scripts" }
88
],

syntaxes/test.query.sql.tmLanguage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"comment": "https://github.com/omnigres/omnigres/blob/master/pg_yregress/schema.json#L190",
44
"name": "json.query",
55
"scopeName": "source.json.sql",
6-
"injectionSelector": "L:source.json .test. .query. meta.structure.dictionary.value.json -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -meta.structure.array.json -string -comment",
6+
"injectionSelector": "L:source.json .meta.embedded.test. .meta.embedded.query. meta.structure.dictionary.value.json -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -meta.structure.array.json -string -comment",
77
"patterns": [
88
{ "include": "#query" }
99
],

0 commit comments

Comments
 (0)