tm-grammars 1.0.7 → 1.0.8

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 CHANGED
@@ -68,7 +68,7 @@ import { grammars } from 'tm-grammars'
68
68
  | `fish` | | [bmalehorn/vscode-fish](https://github.com/bmalehorn/vscode-fish/blob/2fe4ccc72fdcd9b9f54fbb2c05fe9b350c32d718/syntaxes/fish.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/bmalehorn/vscode-fish/master/LICENSE) | | 5.13 kB |
69
69
  | `fsharp` | `f#` `fs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/fsharp/syntaxes/fsharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `markdown` | 24.01 kB |
70
70
  | `gdresource` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDResource.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | `gdshader` `gdscript` | 4.90 kB |
71
- | `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/0a794ebc1b09b334c5f77816bc708d1cc330bf8f/syntaxes/GDScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 15.45 kB |
71
+ | `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/34916becd6a67af294000d15844c2daaf7f69bc2/syntaxes/GDScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 15.84 kB |
72
72
  | `gdshader` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDShader.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 5.95 kB |
73
73
  | `gherkin` | | [alexkrechik/VSCucumberAutoComplete](https://github.com/alexkrechik/VSCucumberAutoComplete/blob/fc8da969b1c83e13ef5124b1ec90ba5211bc1e5f/gclient/syntaxes/feature.tmLanguage) | [MIT](https://raw.githubusercontent.com/alexkrechik/VSCucumberAutoComplete/master/LICENSE) | | 12.13 kB |
74
74
  | `git-commit` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/f8c3f89468fea14103d8790d59ea8594d6e644eb/extensions/git-base/syntaxes/git-commit.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `diff` | 1.36 kB |
@@ -69,7 +69,7 @@
69
69
  "name": "variable.other.property.gdscript"
70
70
  }
71
71
  },
72
- "match": "\\b(\\.)\\s*(?<![@\\$#%])(?:(\\b[A-Z_][A-Z_0-9]*\\b)|([A-Za-z_]\\w*))\\b(?![(])"
72
+ "match": "\\b(\\.)\\s*(?<![@\\$#%])(?:([A-Z_][A-Z_0-9]*)|([A-Za-z_]\\w*))\\b(?![(])"
73
73
  },
74
74
  "any_variable": {
75
75
  "match": "\\b(?<![@\\$#%])([A-Za-z_]\\w*)\\b(?![(])",
@@ -182,11 +182,29 @@
182
182
  },
183
183
  {
184
184
  "include": "#builtin_get_node_shorthand_bare"
185
+ },
186
+ {
187
+ "include": "#builtin_get_node_shorthand_bare_multi"
185
188
  }
186
189
  ]
187
190
  },
188
191
  "builtin_get_node_shorthand_bare": {
189
- "begin": "(\\$|%|\\$%)([a-zA-Z_]\\w*/?)",
192
+ "captures": {
193
+ "1": {
194
+ "name": "keyword.control.flow.gdscript"
195
+ },
196
+ "2": {
197
+ "name": "constant.character.escape.gdscript"
198
+ },
199
+ "3": {
200
+ "name": "constant.character.escape.gdscript"
201
+ }
202
+ },
203
+ "match": "(?<!/\\s*)(\\$|%|\\$%)([a-zA-Z_]\\w*)\\b(?!\\s*/)",
204
+ "name": "meta.literal.nodepath.gdscript"
205
+ },
206
+ "builtin_get_node_shorthand_bare_multi": {
207
+ "begin": "(\\$|%|\\$%)([a-zA-Z_]\\w*)",
190
208
  "beginCaptures": {
191
209
  "1": {
192
210
  "name": "keyword.control.flow.gdscript"
@@ -195,19 +213,22 @@
195
213
  "name": "constant.character.escape.gdscript"
196
214
  }
197
215
  },
198
- "end": "(?!%?\\s*[a-zA-Z_]\\w*)\\s*/?*",
216
+ "end": "(?!\\s*/\\s*%?\\s*[a-zA-Z_]\\w*)",
199
217
  "name": "meta.literal.nodepath.gdscript",
200
218
  "patterns": [
201
219
  {
202
220
  "captures": {
203
221
  "1": {
204
- "name": "keyword.control.flow.gdscript"
222
+ "name": "constant.character.escape.gdscript"
205
223
  },
206
224
  "2": {
225
+ "name": "keyword.control.flow.gdscript"
226
+ },
227
+ "3": {
207
228
  "name": "constant.character.escape.gdscript"
208
229
  }
209
230
  },
210
- "match": "(%)?\\s*([a-zA-Z_]\\w*)\\s*/?"
231
+ "match": "(/)\\s*(%)?\\s*([a-zA-Z_]\\w*)\\s*"
211
232
  }
212
233
  ]
213
234
  },
package/index.js CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * This file is generated, DO NOT MODIFY directly.
3
+ * Check README.md#contribute for instructions.
4
+ */
5
+
1
6
  export const grammars = [
2
7
  {
3
8
  byteSize: 17305,
@@ -657,15 +662,15 @@ export const grammars = [
657
662
  source: 'https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDResource.tmLanguage.json',
658
663
  },
659
664
  {
660
- byteSize: 15818,
665
+ byteSize: 16220,
661
666
  displayName: 'GDScript',
662
- lastUpdate: '2023-12-22T11:04:02Z',
667
+ lastUpdate: '2024-01-02T08:02:30Z',
663
668
  license: 'MIT',
664
669
  licenseUrl: 'https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE',
665
670
  name: 'gdscript',
666
671
  scopeName: 'source.gdscript',
667
- sha: '0a794ebc1b09b334c5f77816bc708d1cc330bf8f',
668
- source: 'https://github.com/godotengine/godot-vscode-plugin/blob/0a794ebc1b09b334c5f77816bc708d1cc330bf8f/syntaxes/GDScript.tmLanguage.json',
672
+ sha: '34916becd6a67af294000d15844c2daaf7f69bc2',
673
+ source: 'https://github.com/godotengine/godot-vscode-plugin/blob/34916becd6a67af294000d15844c2daaf7f69bc2/syntaxes/GDScript.tmLanguage.json',
669
674
  },
670
675
  {
671
676
  byteSize: 6096,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.0.7",
5
- "packageManager": "pnpm@8.11.0",
4
+ "version": "1.0.8",
5
+ "packageManager": "pnpm@8.13.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
8
8
  "license": "MIT",