tm-grammars 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/grammars/crystal.json +8 -3
- package/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ import { grammars } from 'tm-grammars'
|
|
|
49
49
|
| `codeql` | `ql` | [github/vscode-codeql](https://github.com/github/vscode-codeql/blob/47fa163cb9fffce379458962eb391c9ef9082dcb/syntaxes/ql.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/github/vscode-codeql/main/LICENSE.md) | | 32.73 kB |
|
|
50
50
|
| `coffee` | `coffeescript` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ff58f5083f57b50e6a100ab60454dfb72fe21e80/extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `javascript` | 26.34 kB |
|
|
51
51
|
| `cpp` | `c++` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp-macro` `glsl` `sql` | 411.01 kB |
|
|
52
|
-
| `crystal` | | [crystal-lang-tools/vscode-crystal-lang](https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/
|
|
52
|
+
| `crystal` | | [crystal-lang-tools/vscode-crystal-lang](https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/592999d041bdc59b0127dee68bd225330eb9bc41/syntaxes/crystal.json) | [MIT](https://raw.githubusercontent.com/crystal-lang-tools/vscode-crystal-lang/master/LICENSE) | `html` `sql` `css` `c` `javascript` `shellscript` | 31.59 kB |
|
|
53
53
|
| `csharp` | `c#` `cs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/csharp/syntaxes/csharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 83.23 kB |
|
|
54
54
|
| `css` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ae23e73ba0690ae82614d585e10a88d608ccdda0/extensions/css/syntaxes/css.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 48.60 kB |
|
|
55
55
|
| `csv` | | [mechatroner/vscode_rainbow_csv](https://github.com/mechatroner/vscode_rainbow_csv/blob/3bdafafa12940a75166089b64bdd80b1d3b071db/syntaxes/csv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE) | | 1.07 kB |
|
package/grammars/crystal.json
CHANGED
|
@@ -124,15 +124,20 @@
|
|
|
124
124
|
"name": "meta.lib.type.crystal"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
"comment": "everything being a reserved word, not a value and needing a 'end' is a..",
|
|
127
|
+
"comment": "everything being a reserved word, not a value, and needing a 'end' is a..",
|
|
128
128
|
"match": "(?<!\\.)\\b(fun|begin|case|class|else|elsif|end|ensure|enum|for|if|macro|module|rescue|struct|then|union|unless|until|when|while)\\b(?![?!:])",
|
|
129
129
|
"name": "keyword.control.crystal"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
|
-
"comment": "everything being a reserved word, not a value and not needing a 'end' is a..",
|
|
132
|
+
"comment": "everything being a reserved word, not a value, and not needing a 'end' is a..",
|
|
133
133
|
"match": "(?<!\\.)\\b(abstract|alias|asm|break|extend|in|include|next|of|private|protected|struct|return|select|super|with|yield)\\b(?![?!:])",
|
|
134
134
|
"name": "keyword.control.primary.crystal"
|
|
135
135
|
},
|
|
136
|
+
{
|
|
137
|
+
"comment": "everything being a spec keyword, not a value, and needing a block is a..",
|
|
138
|
+
"match": "(?<!\\.)\\b(describe|context|it|expect_raises)\\b(?![?!:])",
|
|
139
|
+
"name": "keyword.control.crystal"
|
|
140
|
+
},
|
|
136
141
|
{
|
|
137
142
|
"comment": "contextual smart pair support for block parameters",
|
|
138
143
|
"match": "(?<!\\.)\\bdo\\b\\s*",
|
|
@@ -1030,7 +1035,7 @@
|
|
|
1030
1035
|
"name": "comment.line.number-sign.crystal"
|
|
1031
1036
|
},
|
|
1032
1037
|
{
|
|
1033
|
-
"match": "\\b_([\\w]+[?!]?)",
|
|
1038
|
+
"match": "\\b_([\\w]+[?!]?)\\b(?!\\()",
|
|
1034
1039
|
"name": "comment.unused.crystal"
|
|
1035
1040
|
},
|
|
1036
1041
|
{
|
package/index.js
CHANGED
|
@@ -434,7 +434,7 @@ export const grammars = [
|
|
|
434
434
|
source: 'https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.tmLanguage.json',
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
|
-
byteSize:
|
|
437
|
+
byteSize: 32352,
|
|
438
438
|
displayName: 'Crystal',
|
|
439
439
|
embedded: [
|
|
440
440
|
'html',
|
|
@@ -444,13 +444,13 @@ export const grammars = [
|
|
|
444
444
|
'javascript',
|
|
445
445
|
'shellscript',
|
|
446
446
|
],
|
|
447
|
-
lastUpdate: '
|
|
447
|
+
lastUpdate: '2024-02-20T17:46:33Z',
|
|
448
448
|
license: 'MIT',
|
|
449
449
|
licenseUrl: 'https://raw.githubusercontent.com/crystal-lang-tools/vscode-crystal-lang/master/LICENSE',
|
|
450
450
|
name: 'crystal',
|
|
451
451
|
scopeName: 'source.crystal',
|
|
452
|
-
sha: '
|
|
453
|
-
source: 'https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/
|
|
452
|
+
sha: '592999d041bdc59b0127dee68bd225330eb9bc41',
|
|
453
|
+
source: 'https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/592999d041bdc59b0127dee68bd225330eb9bc41/syntaxes/crystal.json',
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
456
|
aliases: [
|
package/package.json
CHANGED