Skip to content

Commit 6c2a410

Browse files
committed
Update scopes
1 parent 2e45be0 commit 6c2a410

File tree

3 files changed

+435
-13
lines changed

3 files changed

+435
-13
lines changed

syntaxes/package-scopes.tmLanguage.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414
"embeddedLanguages": {
1515
"begin": "(?<=\")\\G(?=(?>[^\\x00-\\x1F\"\\\\]++|\\\\.)++\")",
1616
"end": "(?=\"|$)",
17-
"name": "meta.embedded.json.textmate.source",
17+
"name": "meta.embedded.json.textmate.source string.quoted.double.json",
1818
"patterns": [
1919
{
2020
"begin": "(?>text|source|markdown)(?=\\.[\\w.:])",
2121
"end": "(?![\\w.:-])",
2222
"beginCaptures": { "0": { "name": "support.function.tm" } },
23-
"name": "string",
2423
"patterns": [
2524
{
2625
"match": "\\.",
@@ -30,7 +29,7 @@
3029
},
3130
{
3231
"match": "[\\w.:][\\w.:-]*",
33-
"name": "string $0"
32+
"name": "$0"
3433
},
3534
{
3635
"comment": "balancedBracketScopes ONLY",

syntaxes/tests/JSON/package.json

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://www.schemastore.org/package",
2+
"//$schema": "https://www.schemastore.org/package",
33
"scripts": {
44
"build": "npm run compile && npm run compile-web && npm run generate-wasm && node ./out/Onigmo/moveOnigmo",
55
"package": "vsce package",
@@ -84,6 +84,55 @@
8484
}
8585
}
8686
],
87+
"grammars": [
88+
{
89+
"language": "json-textmate",
90+
"scopeName": "source.json.textmate",
91+
"path": "./syntaxes/json.tmLanguage.json",
92+
"embeddedLanguages": {
93+
"meta.embedded.json.textmate.regexp": "json-textmate-regex"
94+
},
95+
"tokenTypes": {
96+
"abc.def": "string"
97+
},
98+
"unbalancedBracketScopes": [
99+
"invalid.illegal.expected-dictionary-separator.json",
100+
"invalid.illegal.expected-array-separator.json",
101+
"invalid.illegal.expected-value-separator.json"
102+
]
103+
},
104+
{
105+
"language": "json-textmate-regex",
106+
"scopeName": "source.json.textmate.regexp",
107+
"path": "./syntaxes/regex.tmLanguage.json"
108+
},
109+
{
110+
"language": "yaml-textmate",
111+
"scopeName": "source.yaml.textmate",
112+
"path": "./syntaxes/yaml.tmLanguage.json",
113+
"embeddedLanguages": {
114+
"meta.embedded.json.textmate.regexp": "json-textmate-regex",
115+
"meta.embedded.yaml.textmate.regexp": "json-textmate-regex"
116+
},
117+
"unbalancedBracketScopes": [
118+
"invalid.illegal",
119+
"storage.type.tag.shorthand.yaml",
120+
"keyword.control.flow"
121+
]
122+
},
123+
{
124+
"scopeName": "source.json.snippets",
125+
"path": "./syntaxes/schema-defaultSnippets.tmLanguage.json",
126+
"embeddedLanguages": {
127+
"meta.embedded.json.comments.snippets.snippets": "snippets-snippets",
128+
"meta.embedded.json.comments.snippets": "snippets",
129+
"meta.embedded.json.textmate.regexp": "json-textmate-regex"
130+
},
131+
"injectTo": [
132+
"source.json.embedded"
133+
]
134+
}
135+
],
87136
"breakpoints": [
88137
{
89138
"language": "",

0 commit comments

Comments
 (0)