Skip to content

Commit a96e31d

Browse files
committed
refactor: Rename filenames and scopeNames
1 parent 14f7a65 commit a96e31d

10 files changed

Lines changed: 30 additions & 23 deletions

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@
4949
"path": "./syntaxes/JSONC.tmLanguage.json"
5050
},
5151
{
52-
"scopeName": "source.json.package.scopes",
53-
"path": "./syntaxes/package-scopes.tmLanguage.json",
52+
"scopeName": "source.json.textmate.scopes",
53+
"path": "./syntaxes/scopes.tmLanguage.json",
5454
"injectTo": [
5555
"source.json.embedded"
5656
]
5757
},
5858
{
5959
"scopeName": "source.json.shellscript",
60-
"path": "./syntaxes/package-scripts.tmLanguage.json",
60+
"path": "./syntaxes/shellscript.tmLanguage.json",
6161
"embeddedLanguages": {
6262
"meta.embedded.shellscript": "shellscript"
6363
},
@@ -66,8 +66,8 @@
6666
]
6767
},
6868
{
69-
"scopeName": "source.shellscript.json.escaped",
70-
"path": "./syntaxes/package-shellscript.json.escaped.tmLanguage.json",
69+
"scopeName": "source.json.shellscript.escaped",
70+
"path": "./syntaxes/shellscript-escaped.tmLanguage.json",
7171
"injectTo": [
7272
"source.json.embedded"
7373
]
@@ -84,7 +84,7 @@
8484
]
8585
},
8686
{
87-
"scopeName": "source.json.package.when",
87+
"scopeName": "source.json.when",
8888
"path": "./syntaxes/when.tmLanguage.json",
8989
"embeddedLanguages": {
9090
"meta.embedded.when.json": "javascript"
@@ -95,7 +95,7 @@
9595
]
9696
},
9797
{
98-
"scopeName": "source.json.package.glob",
98+
"scopeName": "source.json.glob",
9999
"path": "./syntaxes/glob.tmLanguage.json",
100100
"injectTo": [
101101
"source.json.comments.embedded",

syntaxes/glob.tmLanguage.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
3-
"name": "\"filenamePatterns\", \"fileMatch\" & \"workspaces\" inside `package.json` and \"include\", \"exclude\" & \"moduleTypes\" inside `tsconfig.json`",
4-
"comment": "https://code.visualstudio.com/docs/editor/glob-patterns",
5-
"scopeName": "source.json.package.glob",
3+
"comment": "\"filenamePatterns\", \"fileMatch\" & \"workspaces\" inside `package.json` and \"include\", \"exclude\" & \"moduleTypes\" inside `tsconfig.json`",
4+
"//": "https://code.visualstudio.com/docs/editor/glob-patterns",
5+
"name": "JSON Embedded Glob Patterns",
6+
"scopeName": "source.json.glob",
67
"injectionSelector": [
78
"L:source.json.embedded .meta.embedded.contributes. .meta.embedded.languages. meta.structure.array.json .meta.embedded.filenamePatterns. meta.structure.array.json string.quoted.double.json -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -(meta.structure.array.json meta.structure.array.json meta.structure.array.json) -meta.embedded.glob.json -comment",
89
"L:source.json.embedded .meta.embedded.contributes. .meta.embedded.jsonValidation. meta.structure.array.json .meta.embedded.fileMatch. string.quoted.double.json -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -(meta.structure.array.json meta.structure.array.json) -meta.embedded.glob.json -comment",

syntaxes/regexp.tmLanguage.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
3-
"comment": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions https://github.com/wraith13/vscode-schemas/blob/master/en/latest/schemas/language-configuration.json#L237-L258",
4-
"name": "JSON escaped JavaScript Regexp. package.json, language-configuration.json & task.json",
3+
"comment": "`package.json`, `language-configuration.json`, `*.schema.json` & `task.json`",
4+
"//": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions https://github.com/wraith13/vscode-schemas/blob/master/en/latest/schemas/language-configuration.json#L237-L258",
5+
"name": "JSON Embedded JavaScript Regexp",
56
"scopeName": "source.json.regexp",
67
"injectionSelector": [
78
"L:source.json.embedded .meta.embedded.patternProperties. meta.structure.dictionary.json support.type.property-name.json -(.meta.embedded.patternProperties. meta.structure.dictionary.json meta.structure.dictionary.json) -(.meta.embedded.patternProperties. meta.structure.array.json) -meta.embedded.json.regexp -comment",

syntaxes/schema-defaultSnippets.tmLanguage.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
3-
"name": "Schema \"defaultSnippets\" Snippets",
3+
"comment": "\"defaultSnippets\" in `*.schema.json`",
4+
"name": "JSON Embedded Snippets",
45
"scopeName": "source.json.snippets",
56
"injectionSelector": [
67
"L:source.json.embedded .meta.embedded.defaultSnippets. meta.structure.array.json .meta.embedded.bodyText. string.quoted.double.json -(.meta.embedded.bodyText. meta.structure.dictionary.json) -(.meta.embedded.bodyText. meta.structure.array.json) -(.meta.embedded.defaultSnippets. meta.structure.array.json meta.structure.array.json .meta.embedded.bodyText.) -(.meta.embedded.defaultSnippets. meta.structure.dictionary.json meta.structure.dictionary.json .meta.embedded.bodyText.) -meta.embedded.json.comments.snippets.snippets -comment",

syntaxes/schema-markdown-escape.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
3-
"name": "Schema \"markdownDescription\" and \"patternProperties\" Escapes",
3+
"name": "JSON Escaped Markdown",
44
"scopeName": "source.json.markdown.escape",
55
"injectionSelector": "L:source.json.embedded meta.embedded.text.html.markdown",
66
"patterns": [

syntaxes/schema-markdown.tmLanguage.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
3-
"name": "Schema \"markdownDescription\" and \"patternProperties\" Markdown",
3+
"comment": "\"markdownDescription\" & \"patternProperties\" inside `*.schema.json`",
4+
"name": "JSON Embedded Markdown",
45
"scopeName": "source.json.markdown",
56
"injectionSelector": [
67
"L:source.json.embedded .meta.embedded.markdownDescription. string.quoted.double.json -(.meta.embedded.markdownDescription. meta.structure.dictionary.json) -(.meta.embedded.markdownDescription. meta.structure.array.json) -meta.embedded.text.html.markdown -comment",
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
3-
"name": "`package.json` embeddedLanguages & tokenTypes & balancedBracketScopes & unbalancedBracketScopes & injectTo & scopeName",
4-
"scopeName": "source.json.package.scopes",
3+
"comment": "\"embeddedLanguages\" & \"tokenTypes\" & \"balancedBracketScopes\" & \"unbalancedBracketScopes\" & \"injectTo\" & \"scopeName\" inside `package.json`, \"editor.tokenColorCustomizations\" inside \"settings.json\" and \"t\" inside `colorize-results.json`",
4+
"name": "JSON Embedded TextMate Scopes",
5+
"scopeName": "source.json.textmate.scopes",
56
"injectionSelector": [
67
"L:source.json.embedded .meta.embedded.contributes. .meta.embedded.grammars. meta.structure.array.json (.meta.embedded.embeddedLanguages. meta.structure.dictionary.json | .meta.embedded.tokenTypes. meta.structure.dictionary.json) -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -(meta.structure.array.json meta.structure.array.json) -meta.embedded.json.textmate.source -comment",
78
"L:source.json.embedded .meta.embedded.contributes. .meta.embedded.grammars. meta.structure.array.json (.meta.embedded.balancedBracketScopes. meta.structure.array.json | .meta.embedded.unbalancedBracketScopes. meta.structure.array.json | .meta.embedded.injectTo. meta.structure.array.json ) -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -(meta.structure.array.json meta.structure.array.json meta.structure.array.json) -meta.embedded.json.textmate.source -comment",

syntaxes/package-shellscript.json.escaped.tmLanguage.json renamed to syntaxes/shellscript-escaped.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
3-
"name": "Shellscript JSON escaped",
43
"comment": "Double quotes requiring escaping when embedded inside JSON",
5-
"scopeName": "source.shellscript.json.escaped",
4+
"name": "JSON Escaped ShellScript Strings",
5+
"scopeName": "source.json.shellscript.escaped",
66
"injectionSelector": "L:source.json.embedded meta.embedded.shellscript.json -string.quoted.double.shell",
77
"patterns": [
88
{ "include": "#string" }
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
3-
"name": "`package.json` \"scripts\": {}",
3+
"comment": "\"scripts\" in `package.json` and \"command\" in `tasks.json`",
4+
"name": "JSON Embedded ShellScript",
45
"scopeName": "source.json.shellscript",
56
"injectionSelector": "L:source.json.embedded .meta.embedded.scripts. meta.structure.dictionary.json string.quoted.double.json -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -meta.structure.array.json -meta.embedded.shellscript.json -comment",
67
"patterns": [

syntaxes/when.tmLanguage.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
3-
"name": "\"when\" & \"enablement\" inside package.json and keybindings.json",
4-
"comment": "https://code.visualstudio.com/api/references/when-clause-contexts",
5-
"scopeName": "source.json.package.when",
3+
"//": "https://code.visualstudio.com/api/references/when-clause-contexts",
4+
"comment": "\"when\" & \"enablement\" inside `package.json` & `keybindings.json`",
5+
"name": "JSON Embedded When Clause",
6+
"scopeName": "source.json.when",
67
"injectionSelector": [
78
"L:source.json.embedded .meta.embedded.contributes. meta.structure.array.json .meta.embedded.when. string.quoted.double.json (.meta.embedded.continueEditSession. | .meta.embedded.keybindings. | .meta.embedded.viewsWelcome. | .meta.embedded.taskDefinitions. | .meta.embedded.chatParticipants. | .meta.embedded.languageModelTools. | .meta.embedded.debuggers. | .meta.embedded.debugVisualizers. | .meta.embedded.walkthroughs. | .meta.embedded.chatViewsWelcome. | .meta.embedded.breakpoints.) -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -(meta.structure.array.json meta.structure.array.json) -meta.embedded.when.json -comment",
89
"L:source.json.embedded .meta.embedded.contributes. meta.structure.array.json .meta.embedded.when. string.quoted.double.json (.meta.embedded.walkthroughs. meta.structure.array.json .meta.embedded.steps. | .meta.embedded.chatParticipants. meta.structure.array.json .meta.embedded.commands.) -(meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json) -(meta.structure.array.json meta.structure.array.json meta.structure.array.json) -meta.embedded.when.json -comment",

0 commit comments

Comments
 (0)