tm-grammars 1.32.4 → 1.32.5

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
@@ -142,7 +142,7 @@ import { grammars } from 'tm-grammars'
142
142
  | `log` | | [emilast/vscode-logfile-highlighter](https://github.com/emilast/vscode-logfile-highlighter/blob/396c8552ff99d0e07142fdd940d75dae212dd28c/syntaxes/log.tmLanguage) | [MIT](https://raw.githubusercontent.com/emilast/vscode-logfile-highlighter/master/LICENSE) | | | 2.52 kB |
143
143
  | `logo` | | [textmate/logo.tmbundle](https://github.com/textmate/logo.tmbundle/blob/3205e987ed2a2aa11accdd55a7d094832441f89c/Syntaxes/Logo.tmLanguage) | | | | 2.95 kB |
144
144
  | `lua` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c8fdd1650c06321d687ddfd1eff06aae4b616256/extensions/lua/syntaxes/lua.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `c` | 14.47 kB |
145
- | `luau` | | [JohnnyMorganz/Luau.tmLanguage](https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/a50533f59f4369bbc742f867b90248f6c342ca17/Luau.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md) | | | 15.12 kB |
145
+ | `luau` | | [JohnnyMorganz/Luau.tmLanguage](https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/2565337787d6d4df5cdfdc14bfb25521d55b7c4e/Luau.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md) | | | 15.29 kB |
146
146
  | `make` | `makefile` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/91db8ea85fee30ebb3c7a5e7939aa2a8d79811c5/extensions/make/syntaxes/make.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 8.41 kB |
147
147
  | `markdown` | `md` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6d8ab9737d58fc5eaf07e2ae6553b38183a5de47/extensions/markdown-basics/syntaxes/markdown.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `css` `html` `ini` `java` `lua` `make` `perl` `r` `ruby` `php` `sql` `vb` `xml` `xsl` `yaml` `bat` `clojure` `coffee` `c` `cpp` `diff` `docker` `git-commit` `git-rebase` `go` `groovy` `pug` `javascript` `json` `jsonc` `jsonl` `less` `objective-c` `swift` `scss` `raku` `powershell` `python` `julia` `regexp` `rust` `scala` `shellscript` `typescript` `tsx` `csharp` `fsharp` `dart` `handlebars` `log` `erlang` `elixir` `latex` `bibtex` `abap` `rst` `html-derivative` | 55.03 kB |
148
148
  | `marko` | | [marko-js/language-server](https://github.com/marko-js/language-server/blob/9b627df21b63f9aeecd04780b9336ac3b734fa17/packages/vscode/syntaxes/marko.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/marko-js/language-server/main/LICENSE) | | `css` `less` `scss` `typescript` | 24.23 kB |
@@ -140,9 +140,12 @@
140
140
  ]
141
141
  },
142
142
  "const-declaration": {
143
- "begin": "\\b(const)\\b",
143
+ "begin": "\\b(?:(export)\\s+)?(const)\\b",
144
144
  "beginCaptures": {
145
145
  "1": {
146
+ "name": "storage.modifier.visibility.luau"
147
+ },
148
+ "2": {
146
149
  "name": "storage.modifier.const.luau"
147
150
  }
148
151
  },
@@ -235,7 +238,7 @@
235
238
  ]
236
239
  },
237
240
  "function-definition": {
238
- "begin": "\\b(?:(local)\\s+|(const)\\s+)?(function)\\b(?![,:])",
241
+ "begin": "\\b(?:(local)\\s+|(const)\\s+|(export)\\s+)?(function)\\b(?![,:])",
239
242
  "beginCaptures": {
240
243
  "1": {
241
244
  "name": "storage.modifier.local.luau"
@@ -244,6 +247,9 @@
244
247
  "name": "storage.modifier.const.luau"
245
248
  },
246
249
  "3": {
250
+ "name": "storage.modifier.visibility.luau"
251
+ },
252
+ "4": {
247
253
  "name": "keyword.control.luau"
248
254
  }
249
255
  },
@@ -445,9 +451,12 @@
445
451
  ]
446
452
  },
447
453
  "local-declaration": {
448
- "begin": "\\b(local)\\b",
454
+ "begin": "\\b(?:(export)\\s+)?(local)\\b",
449
455
  "beginCaptures": {
450
456
  "1": {
457
+ "name": "storage.modifier.visibility.luau"
458
+ },
459
+ "2": {
451
460
  "name": "storage.modifier.local.luau"
452
461
  }
453
462
  },
@@ -486,15 +495,19 @@
486
495
  "number": {
487
496
  "patterns": [
488
497
  {
489
- "match": "\\b0_*[Xx]_*[A-F_a-f\\d]*(?:i|[Ee][-+]?_*\\d[_\\d]*(?:\\.[_\\d]*)?)?",
498
+ "match": "\\b0_*[Xx]_*[A-Fa-f\\d][A-F_a-f\\d]*i?",
490
499
  "name": "constant.numeric.hex.luau"
491
500
  },
492
501
  {
493
- "match": "\\b0_*[Bb][01_]+(?:i|[Ee][-+]?_*\\d[_\\d]*(?:\\.[_\\d]*)?)?",
502
+ "match": "\\b0_*[Bb]_*[01][01_]*i?",
494
503
  "name": "constant.numeric.binary.luau"
495
504
  },
496
505
  {
497
- "match": "(?:\\d[_\\d]*(?:\\.[_\\d]*)?|\\.\\d[_\\d]*)(?:i|[Ee][-+]?_*\\d[_\\d]*(?:\\.[_\\d]*)?)?",
506
+ "match": "\\d[_\\d]*i",
507
+ "name": "constant.numeric.decimal.luau"
508
+ },
509
+ {
510
+ "match": "(?:\\d[_\\d]*(?:\\.[_\\d]*)?|\\.\\d[_\\d]*)(?:[Ee][-+]?_*\\d[_\\d]*)?",
498
511
  "name": "constant.numeric.decimal.luau"
499
512
  }
500
513
  ]
package/index.js CHANGED
@@ -2554,19 +2554,19 @@ export const grammars = [
2554
2554
  sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/lua/syntaxes/lua.tmLanguage.json?ref=c8fdd1650c06321d687ddfd1eff06aae4b616256',
2555
2555
  },
2556
2556
  {
2557
- byteSize: 15480,
2557
+ byteSize: 15652,
2558
2558
  displayName: 'Luau',
2559
2559
  funding: [
2560
2560
  ],
2561
- hash: 'Gs2ihYJLKwr_48gWvgGYwLqyJIF83nq6cH4Lfi_sEr4',
2562
- lastUpdate: '2026-07-12T21:21:29Z',
2561
+ hash: 'qXeOAQpoYCsFtiX8SUZ2QWxmkZ_ZI5wPOcZqW18zd-U',
2562
+ lastUpdate: '2026-08-12T18:01:50Z',
2563
2563
  license: 'NOASSERTION',
2564
2564
  licenseUrl: 'https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md',
2565
2565
  name: 'luau',
2566
2566
  scopeName: 'source.luau',
2567
- sha: 'a50533f59f4369bbc742f867b90248f6c342ca17',
2568
- source: 'https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/a50533f59f4369bbc742f867b90248f6c342ca17/Luau.tmLanguage',
2569
- sourceApi: 'https://api.github.com/repos/JohnnyMorganz/Luau.tmLanguage/contents/Luau.tmLanguage?ref=a50533f59f4369bbc742f867b90248f6c342ca17',
2567
+ sha: '2565337787d6d4df5cdfdc14bfb25521d55b7c4e',
2568
+ source: 'https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/2565337787d6d4df5cdfdc14bfb25521d55b7c4e/Luau.tmLanguage',
2569
+ sourceApi: 'https://api.github.com/repos/JohnnyMorganz/Luau.tmLanguage/contents/Luau.tmLanguage?ref=2565337787d6d4df5cdfdc14bfb25521d55b7c4e',
2570
2570
  },
2571
2571
  {
2572
2572
  aliases: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.32.4",
4
+ "version": "1.32.5",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",