tm-grammars 1.0.6 → 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.d.ts CHANGED
@@ -9,7 +9,8 @@ export interface GrammarInfo {
9
9
  aliases?: string[]
10
10
  licenseUrl?: string
11
11
  license?: string
12
- sha?: string
12
+ sha: string
13
+ lastUpdate: string
13
14
  embedded?: string[]
14
15
  embeddedIn?: string[]
15
16
  byteSize: number