Skip to content

Commit f1d6428

Browse files
committed
Swap TextMate and JSON order
1 parent 4dc0c73 commit f1d6428

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

documentation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Atom supports [CSON](https://github.com/lifthrasiir/cson).
1515
TextMate is a top down line based lexer. This was done for performance reasons.
1616
Meaning you cant match new lines `\n`.
1717

18-
The rest of this file will be in the context of VSCode's TextMate JSON.
18+
The rest of this file will be in the context of VSCode's JSON TextMate.
1919

2020
* Todo: Improve layout of this file. Split each section into its own separate file?
2121

documentation/rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,14 @@ Nest them inside the [patterns](#patterns) array instead.
266266
`"comment": "..."`
267267
`"//": ...`
268268
VSCode's TextMate does NOT acknowledge `comment` but instead just ignores it like all other unsupported keys.
269-
C styled comments `//...` and `/* ... */` are NOT allowed in TextMate JSON files.
269+
C styled comments `//...` and `/* ... */` are NOT allowed in JSON TextMate files.
270270
VSCode's JSON validator ignores duplicate `"//"` keys.
271271

272272

273273
## schema
274274
`"$schema:" "..."`
275275
A link or relative file path to a json schema.
276-
[Schema](https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json) used to validate VSCode TextMate json files.
276+
[Schema](https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json) used to validate VSCode JSON TextMate files.
277277
Not supported by TextMate.
278278

279279
## uuid

src/Providers/CompletionItemProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const CompletionItemProvider: vscode.CompletionItemProvider = {
9797
label: cursorName == 'schema' ? schema : `"${schema}"`,
9898
range: cursorRange,
9999
kind: vscode.CompletionItemKind.Reference,
100-
documentation: "Schema for VSCode's TextMate JSON grammars",
100+
documentation: "Schema for VSCode's JSON TextMate grammars",
101101
sortText: ' ',
102102
});
103103
break;

vscode.tmLanguage.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"$id": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json",
4-
"title": "VSCode TextMate JSON",
4+
"title": "VSCode JSON TextMate",
55
"markdownDescription": "[Documentation](https://github.com/RedCMD/TmLanguage-Syntax-Highlighter/blob/main/documentation/index.md) | [Schema](https://github.com/RedCMD/TmLanguage-Syntax-Highlighter/blob/main/vscode.tmLanguage.schema.json)",
66
"$comment": "https://opis.io/json-schema/2.x/",
77
"allowComments": false,

0 commit comments

Comments
 (0)