Skip to content

Commit 0184491

Browse files
committed
feat: Additions to glob
1 parent 8d3504e commit 0184491

18 files changed

+1624
-65
lines changed

syntaxes/JSON.tmLanguage.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,22 @@
6767
"endCaptures": { "0": { "name": "punctuation.definition.dictionary.end.json" } },
6868
"name": "meta.structure.dictionary.json",
6969
"patterns": [
70+
{
71+
"comment": "Apply a targetable scopeName to the entire object. Attempt to remove all non-scope characters; as they are not targetable",
72+
"begin": "(?x)(?=\"\n\\g<separator>\\.++(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>\n(?<scope>[0-9A-Za-z_.:-]*+)\n\\g<separator>\n(?<string>(?>[^\\\\\"]++|\\\\.)*+)\n(?<separator>(?>[^\\\\\"0-9A-Za-z_.:-]++|\\\\u\\h{,4}|\\\\.?)*+){0}\n\")",
73+
"end": "(?!\\G)(?<=,)|(?=})",
74+
"name": ".meta..$1$2$3$4$5$6$7$8$9.",
75+
"patterns": [
76+
{
77+
"comment": "Resets standard token type back to other",
78+
"begin": "(?=\\G\"(?>[^crs\\\\\"]++|\\\\.|(?!\\bcomment\\b)c+|(?!\\bregex\\b)r+|(?!\\bstring\\b)s+)*\\b(?>comment|regex|string)\\b)",
79+
"end": "(?!\\G)(?<=,)|(?=})",
80+
"name": "meta.embedded",
81+
"patterns": [ { "include": "#objectpair" } ]
82+
},
83+
{ "include": "#objectpair" }
84+
]
85+
},
7086
{
7187
"comment": "Apply a targetable scopeName to the entire object. Attempt to remove all non-scope characters; as they are not targetable",
7288
"begin": "(?x)(?=\"\n\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>(\\g<scope>)\\g<separator>\n(?<scope>[0-9A-Za-z_.:-]*+)\n\\g<separator>\n(?<string>(?>[^\\\\\"]++|\\\\.)*+)\n(?<separator>(?>[^\\\\\"0-9A-Za-z_.:-]++|\\\\u\\h{,4}|\\\\.?)*+){0}\n\")",

syntaxes/glob.tmLanguage.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@
1111
"L:source.json.embedded .meta.workspaces. .meta.packages. meta.structure.array.json string.quoted.double.json\n-meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json meta.structure.array.json\n-meta.embedded.glob.json -comment",
1212
"L:source.json.embedded meta.structure.dictionary.json meta.structure.array.json string.quoted.double.json\n(.meta.files. | .meta.workspaces.)\n-meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json meta.structure.array.json\n-meta.embedded.glob.json -comment",
1313
"R:source.json.embedded .meta.activationEvents. meta.structure.array.json\n-meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json meta.structure.array.json\n-string.quoted.double.json\n-meta.embedded.glob.json -comment",
14-
"L:source.json.comments.embedded .meta.configurations. meta.structure.array.json.comments meta.structure.dictionary.json.comments string.quoted.double.json.comments\n(.meta.skipFiles. | .meta.outFiles | .meta.resolveSourceMapLocations.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
15-
"L:source.json.comments.embedded .meta.launch. .meta.configurations. meta.structure.array.json.comments meta.structure.dictionary.json.comments string.quoted.double.json.comments\n(.meta.skipFiles. | .meta.outFiles | .meta.resolveSourceMapLocations.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
16-
"L:source.json.comments.embedded meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.include. | .meta.exclude.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
14+
"R:source.json.embedded .meta.exports. .meta. meta.structure.dictionary.json string.quoted.double.json\n-meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json\n-meta.embedded.glob.json -comment",
15+
"R:source.json.embedded .meta.exports. .meta. support.type.property-name.json\n-meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json\n-meta.embedded.glob.json -comment",
16+
"L:source.json.comments.embedded .meta.configurations. meta.structure.array.json.comments meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.skipFiles. | .meta.outFiles | .meta.resolveSourceMapLocations. | .meta.vueComponentPaths.)\n(.meta.launch. .meta.configurations. -meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments |\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments)\n-meta.structure.array.json.comments meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
1717
"L:source.json.comments.embedded .meta.ts-node. .meta.moduleTypes. meta.structure.dictionary.json.comments support.type.property-name.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
18-
"L:source.json.comments.embedded .meta.settings. .meta.cSpell.ignorePaths. meta.structure.array.json.comments string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
19-
"L:source.json.comments.embedded .meta.cSpell.ignorePaths. meta.structure.array.json.comments string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
20-
"L:source.json.comments.embedded .meta.settings. meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments support.type.property-name.json.comments\n(.meta.files.associations. meta.structure.dictionary.json.comments | .meta.files.exclude. meta.structure.dictionary.json.comments | .meta.files.readonlyExclude. meta.structure.dictionary.json.comments | .meta.workbench.editorAssociations. meta.structure.dictionary.json.comments | .meta.workbench.localHistory.exclude. meta.structure.dictionary.json.comments)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
21-
"L:source.json.comments.embedded meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments support.type.property-name.json.comments\n(.meta.files.associations. meta.structure.dictionary.json.comments | .meta.files.exclude. meta.structure.dictionary.json.comments | .meta.files.readonlyExclude. meta.structure.dictionary.json.comments | .meta.workbench.editorAssociations. meta.structure.dictionary.json.comments | .meta.workbench.localHistory.exclude. meta.structure.dictionary.json.comments)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment"
18+
"L:source.json.comments.embedded meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.include. | .meta.exclude. | .meta.cSpell.files. | .meta.cSpell.ignorePaths. | .meta.git.worktreeIncludeFiles. | .meta.markdown.validate.ignoredLinks. | .meta.markdown.updateLinksOnFileMove.include. | .meta.npm.exclude. | .meta.debug.javascript.autoAttachSmartPattern. | .meta.javascript.preferences.autoImportFileExcludePatterns. | .meta.typescript.preferences.autoImportFileExcludePatterns.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
19+
"L:source.json.comments.embedded .meta.settings. meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.cSpell.files. | .meta.cSpell.ignorePaths. | .meta.git.worktreeIncludeFiles. | .meta.markdown.validate.ignoredLinks. | .meta.markdown.updateLinksOnFileMove.include. | .meta.npm.exclude. | .meta.debug.javascript.autoAttachSmartPattern. | .meta.javascript.preferences.autoImportFileExcludePatterns. | .meta.typescript.preferences.autoImportFileExcludePatterns.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
20+
"L:source.json.comments.embedded .meta.settings. meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments support.type.property-name.json.comments\n(.meta.chat.editorAssociations. meta.structure.dictionary.json.comments | .meta.explorer.autoRevealExclude. meta.structure.dictionary.json.comments | .meta.files.associations. meta.structure.dictionary.json.comments | .meta.files.exclude. meta.structure.dictionary.json.comments | .meta.files.readonlyExclude. meta.structure.dictionary.json.comments | .meta.files.readonlyInclude. meta.structure.dictionary.json.comments | .meta.files.watcherExclude. meta.structure.dictionary.json.comments | .meta.search.exclude. meta.structure.dictionary.json.comments | .meta.workbench.editorAssociations. meta.structure.dictionary.json.comments | .meta.workbench.localHistory.exclude. meta.structure.dictionary.json.comments)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
21+
"L:source.json.comments.embedded meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments support.type.property-name.json.comments\n(.meta.chat.editorAssociations. meta.structure.dictionary.json.comments | .meta.explorer.autoRevealExclude. meta.structure.dictionary.json.comments | .meta.files.associations. meta.structure.dictionary.json.comments | .meta.files.exclude. meta.structure.dictionary.json.comments | .meta.files.readonlyExclude. meta.structure.dictionary.json.comments | .meta.files.readonlyInclude. meta.structure.dictionary.json.comments | .meta.files.watcherExclude. meta.structure.dictionary.json.comments | .meta.search.exclude. meta.structure.dictionary.json.comments | .meta.workbench.editorAssociations. meta.structure.dictionary.json.comments | .meta.workbench.localHistory.exclude. meta.structure.dictionary.json.comments)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
22+
"L:source.json.comments.embedded .meta.group. .meta.isDefault. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
23+
"L:source.json.comments.embedded .meta.tasks. .meta.group. .meta.isDefault. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.structure.array.json.comments .meta.tasks.\n-.meta.group. meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
24+
"L:source.json.comments.embedded .meta.tasks. .meta.tasks. meta.structure.array.json.comments .meta.group. .meta.isDefault. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
25+
"L:source.json.comments.embedded .meta.servers. meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments .meta.dev. .meta.watch. string.quoted.double.json.comments\n(.meta.mcp. .meta.servers. -meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments | -meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments)\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment"
2226
],
2327
"patterns": [
2428
{

syntaxes/tests/JSON/package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,36 @@
77
"workspaceContains:**/*.bxm",
88
"workspaceContains:**/*.bxs"
99
],
10+
"exports": {
11+
".": {
12+
"development": "./src/components/index.ts",
13+
"types": "./dist/components/index.d.ts",
14+
"import": "./dist/components/index.js",
15+
"require": "./dist/components/index.js",
16+
"default": "./dist/components/index.js"
17+
},
18+
"./lib/*": {
19+
"development": "./src/lib/*.ts",
20+
"types": "./dist/lib/*.d.ts",
21+
"import": "./dist/lib/*.js",
22+
"require": "./dist/lib/*.js",
23+
"default": "./dist/lib/*.js"
24+
},
25+
"./cucumber/step_definitions": {
26+
"import": "./dist/cucumber/step_definitions/**/*.js",
27+
"require": "./dist/cucumber/step_definitions/**/*.js",
28+
"types": "./dist/cucumber/step_definitions/**/*.d.ts"
29+
},
30+
"./*": {
31+
"require": "./dist/cjs/**/*.cjs",
32+
"import": "./dist/esm/**/*.js"
33+
},
34+
"./**/*": {
35+
"require": "./dist/**/*/index.js",
36+
"import": "./dist/**/*/index.js",
37+
"types": "./dist/@types/**/*/index.d.ts"
38+
}
39+
},
1040
"files": [
1141
"dist/api.*",
1242
"dist/syntax.*",

0 commit comments

Comments
 (0)