tm-grammars 1.7.0 → 1.7.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 CHANGED
@@ -57,7 +57,7 @@ import { grammars } from 'tm-grammars'
57
57
  | `cue` | | [cue-sh/vscode-cue](https://github.com/cue-sh/vscode-cue/blob/0734615a2607fe03f5d6c1816f8f7435179659fc/syntaxes/cue.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/cue-sh/vscode-cue/master/LICENSE) | | 15.93 kB |
58
58
  | `cypher` | `cql` | [adam-cowley/neo4j-vscode](https://github.com/adam-cowley/neo4j-vscode/blob/ad90d275ac76c740018e78f78722343f730270e0/cypher/cypher.tmLanguage) | [MIT](https://raw.githubusercontent.com/adam-cowley/neo4j-vscode/main/LICENSE) | | 6.35 kB |
59
59
  | `d` | | [Pure-D/code-d](https://github.com/Pure-D/code-d/blob/466ac04dcc1f6d3fea50ef5ae7a920a121efd09c/syntaxes/d.json) | [MIT](https://raw.githubusercontent.com/Pure-D/code-d/master/LICENSE.md) | | 40.24 kB |
60
- | `dart` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e9a8b6add5329f8124f23ff7143d95c22ce39f76/extensions/dart/syntaxes/dart.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 6.78 kB |
60
+ | `dart` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/dart/syntaxes/dart.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 6.95 kB |
61
61
  | `dax` | | [huyza/dax-language](https://github.com/huyza/dax-language/blob/7fd39aa84552617daa258189b2550dcdbd14149a/syntaxes/dax.grammer.json) | | | 5.37 kB |
62
62
  | `desktop` | | [nico-castell/desktop-file-support](https://github.com/nico-castell/desktop-file-support/blob/63720f5f05313de22b68ecbd0ca3d3ed8ba57e7e/syntaxes/desktop.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nico-castell/desktop-file-support/main/LICENSE) | | 1.81 kB |
63
63
  | `diff` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/4549bd26c7b799284e0ebd8dc1e0310e6a8707a1/extensions/diff/syntaxes/diff.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 2.45 kB |
@@ -83,7 +83,7 @@ import { grammars } from 'tm-grammars'
83
83
  | `glimmer-ts` | `gts` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/76fce7b360ce09a78789e7d5217b8955d1a5d95f/syntaxes/source.gts.json) | [MIT](https://raw.githubusercontent.com/lifeart/vsc-ember-syntax/master/LICENSE) | `typescript` `css` `javascript` `html` | 19.08 kB |
84
84
  | `glsl` | | [polym0rph/GLSL.tmbundle](https://github.com/polym0rph/GLSL.tmbundle/blob/6998d3bbd204e26746a5ca580cda4c650b9057b1/Syntaxes/GLSL.tmLanguage) | | `c` | 3.69 kB |
85
85
  | `gnuplot` | | [MarioSchwalbe/vscode-gnuplot](https://github.com/MarioSchwalbe/vscode-gnuplot/blob/c62c1a61c9b6b4658b43d76c397dc2ad43523b6a/syntaxes/gnuplot.tmLanguage) | [GPL-3.0](https://raw.githubusercontent.com/MarioSchwalbe/vscode-gnuplot/master/LICENSE) | | 16.46 kB |
86
- | `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/go/syntaxes/go.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 45.14 kB |
86
+ | `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/go/syntaxes/go.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 45.25 kB |
87
87
  | `graphql` | `gql` | [prisma-labs/vscode-graphql](https://github.com/prisma-labs/vscode-graphql/blob/4569aef2364b42b6acd8188e4a6ca9b0ba3c6a1d/grammars/graphql.json) | [MIT](https://raw.githubusercontent.com/graphql/vscode-graphql/master/LICENSE) | `javascript` `typescript` `jsx` `tsx` | 17.11 kB |
88
88
  | `groovy` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/groovy/syntaxes/groovy.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 18.63 kB |
89
89
  | `hack` | | [slackhq/vscode-hack](https://github.com/slackhq/vscode-hack/blob/b997653188b127a7261b0d26e7808217f3eb47bb/syntaxes/hack.json) | [MIT](https://raw.githubusercontent.com/slackhq/vscode-hack/master/LICENSE.md) | `html` `sql` | 80.66 kB |
@@ -110,15 +110,15 @@ import { grammars } from 'tm-grammars'
110
110
  | `jsonnet` | | [heptio/vscode-jsonnet](https://github.com/heptio/vscode-jsonnet/blob/39088f9cde9f483c8e0efeb67a3fd561cd873aad/syntaxes/jsonnet.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/heptio/vscode-jsonnet/master/LICENSE) | | 3.32 kB |
111
111
  | `jssm` | `fsl` | [StoneCypher/sublime-jssm](https://github.com/StoneCypher/sublime-jssm/blob/2be02a59d284229bbbfb3dc6c2bdcec9b2c263ef/jssm.tmLanguage) | [MIT](https://raw.githubusercontent.com/StoneCypher/sublime-jssm/master/LICENSE) | | 2.79 kB |
112
112
  | `jsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 173.35 kB |
113
- | `julia` | `jl` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/julia/syntaxes/julia.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp` `python` `javascript` `r` `sql` | 32.83 kB |
113
+ | `julia` | `jl` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/julia/syntaxes/julia.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp` `python` `javascript` `r` `sql` | 32.82 kB |
114
114
  | `kotlin` | `kt` `kts` | [fwcd/vscode-kotlin](https://github.com/fwcd/vscode-kotlin/blob/bb71d917dd97b756d45f2594346efe3d70a15060/syntaxes/kotlin.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fwcd/vscode-kotlin/main/LICENSE) | | 8.22 kB |
115
115
  | `kusto` | `kql` | [rosshamish/kuskus](https://github.com/rosshamish/kuskus/blob/638b8a9249c2c423bc263726661cde534b25adc7/kusto-syntax-highlighting/syntaxes/kusto.tmLanguage.json) | | | 19.23 kB |
116
- | `latex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/latex/syntaxes/LaTeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `tex` `shellscript` `css` `gnuplot` `haskell` `html` `java` `julia` `javascript` `lua` `python` `ruby` `rust` `typescript` `xml` `yaml` `scala` | 53.26 kB |
117
- | `less` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b0d60e8e2e90bc9d7913611c176d14b8eb91b532/extensions/less/syntaxes/less.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 79.56 kB |
116
+ | `latex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/latex/syntaxes/LaTeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `tex` `shellscript` `css` `gnuplot` `haskell` `html` `java` `julia` `javascript` `lua` `python` `ruby` `rust` `typescript` `xml` `yaml` `scala` | 53.88 kB |
117
+ | `less` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/less/syntaxes/less.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 79.57 kB |
118
118
  | `liquid` | | [Shopify/liquid-tm-grammar](https://github.com/Shopify/liquid-tm-grammar/blob/909aab5b1d8be374585bd02ef46e0e38d65f2f89/grammars/liquid.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/Shopify/liquid-tm-grammar/main/LICENSE.md) | `html` `css` `json` `javascript` | 15.31 kB |
119
119
  | `log` | | [emilast/vscode-logfile-highlighter](https://github.com/emilast/vscode-logfile-highlighter/blob/eb50e785c27b4b4f7dbf6c0e801c58fe91baef5d/syntaxes/log.tmLanguage) | [MIT](https://raw.githubusercontent.com/emilast/vscode-logfile-highlighter/master/LICENSE) | | 2.51 kB |
120
120
  | `logo` | | [textmate/logo.tmbundle](https://github.com/textmate/logo.tmbundle/blob/3205e987ed2a2aa11accdd55a7d094832441f89c/Syntaxes/Logo.tmLanguage) | | | 3.03 kB |
121
- | `lua` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/lua/syntaxes/lua.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `c` | 14.39 kB |
121
+ | `lua` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/lua/syntaxes/lua.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `c` | 14.41 kB |
122
122
  | `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.45 kB |
123
123
  | `markdown` | `md` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6b0a582e595fab7da09fcd267f4f8248e7ec437e/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` `less` `objective-c` `swift` `scss` `raku` `powershell` `python` `julia` `rust` `scala` `shellscript` `typescript` `tsx` `csharp` `fsharp` `dart` `handlebars` `log` `erlang` `elixir` `latex` `bibtex` `html-derivative` | 52.58 kB |
124
124
  | `marko` | | [marko-js/marko-tmbundle](https://github.com/marko-js/marko-tmbundle/blob/dd3a0c39e656bedd276d3bcbdea92a2d627755c7/Syntaxes/marko.tmLanguage) | [MIT](https://raw.githubusercontent.com/marko-js/marko-tmbundle/master/LICENSE) | `css` `less` `scss` `javascript` | 18.31 kB |
@@ -168,7 +168,7 @@ import { grammars } from 'tm-grammars'
168
168
  | `scheme` | | [sjhuangx/vscode-scheme](https://github.com/sjhuangx/vscode-scheme/blob/4e21683666e1e2edfa21d040ecd427f628e7b5ff/syntaxes/scheme.tmLanguage) | [MIT](https://raw.githubusercontent.com/sjhuangx/vscode-scheme/master/LICENSE.md) | | 8.35 kB |
169
169
  | `scss` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/cf8d61ebd2f022f4ce8280171f0360d1fe0a206d/extensions/scss/syntaxes/scss.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `css` | 26.21 kB |
170
170
  | `shaderlab` | `shader` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `hlsl` | 5.83 kB |
171
- | `shellscript` | `bash` `sh` `shell` `zsh` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 38.97 kB |
171
+ | `shellscript` | `bash` `sh` `shell` `zsh` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 40.03 kB |
172
172
  | `shellsession` | `console` | [hronro/sublime-linguist-syntax](https://github.com/hronro/sublime-linguist-syntax/blob/9c84f1d69dbe89bc23292f129cf2d408a9c7afe1/syntaxes/ShellSession.tmLanguage) | [MIT](https://raw.githubusercontent.com/hronro/sublime-linguist-syntax/master/LICENSE) | `shellscript` | 567.00 B |
173
173
  | `smalltalk` | | [leocamello/vscode-smalltalk](https://github.com/leocamello/vscode-smalltalk/blob/bc888519a21740b4dbd4edcf2f884c61855dc58b/syntaxes/smalltalk.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/leocamello/vscode-smalltalk/master/LICENSE) | | 3.91 kB |
174
174
  | `solidity` | | [juanfranblanco/vscode-solidity](https://github.com/juanfranblanco/vscode-solidity/blob/75531be0beda99b7293d778eb0b1c63f70d8ac59/syntaxes/solidity.json) | [MIT](https://raw.githubusercontent.com/juanfranblanco/vscode-solidity/master/License.txt) | | 15.15 kB |
@@ -185,7 +185,7 @@ import { grammars } from 'tm-grammars'
185
185
  | `tasl` | | [underlay/vscode-tasl](https://github.com/underlay/vscode-tasl/blob/dde4b7c0b762c2e667584095362dd49ebfacece7/syntaxes/tasl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/underlay/vscode-tasl/main/LICENSE) | | 3.21 kB |
186
186
  | `tcl` | | [sleutho/tcl](https://github.com/sleutho/tcl/blob/f18820ad14678bc033f0a35524820c90fe50f18b/syntaxes/tcl.tmLanguage) | | | 4.66 kB |
187
187
  | `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 12.58 kB |
188
- | `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `r` | 8.35 kB |
188
+ | `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `r` | 8.45 kB |
189
189
  | `toml` | | [textmate/toml.tmbundle](https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage) | | | 6.26 kB |
190
190
  | `tsv` | | [mechatroner/vscode_rainbow_csv](https://github.com/mechatroner/vscode_rainbow_csv/blob/00d4c947f1bbe6a4a73599bd97fb31bdfbe262f3/syntaxes/tsv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE) | | 633.00 B |
191
191
  | `tsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 171.16 kB |
@@ -7,7 +7,7 @@
7
7
  "name": "meta.preprocessor.script.dart"
8
8
  },
9
9
  {
10
- "begin": "^\\w*\\b(library|import|part of|part|export)\\b",
10
+ "begin": "^\\w*\\b(augment\\s+library|library|import\\s+augment|import|part\\s+of|part|export)\\b",
11
11
  "beginCaptures": {
12
12
  "0": {
13
13
  "name": "keyword.other.import.dart"
@@ -186,7 +186,7 @@
186
186
  "name": "constant.language.dart"
187
187
  },
188
188
  {
189
- "match": "(?<!\\$)\\b(this|super)\\b(?!\\$)",
189
+ "match": "(?<!\\$)\\b(this|super|augmented)\\b(?!\\$)",
190
190
  "name": "variable.language.dart"
191
191
  },
192
192
  {
@@ -242,6 +242,29 @@
242
242
  }
243
243
  ]
244
244
  },
245
+ "expression": {
246
+ "patterns": [
247
+ {
248
+ "include": "#constants-and-special-vars"
249
+ },
250
+ {
251
+ "include": "#strings"
252
+ },
253
+ {
254
+ "match": "[a-zA-Z0-9_]+",
255
+ "name": "variable.parameter.dart"
256
+ },
257
+ {
258
+ "begin": "\\{",
259
+ "end": "\\}",
260
+ "patterns": [
261
+ {
262
+ "include": "#expression"
263
+ }
264
+ ]
265
+ }
266
+ ]
267
+ },
245
268
  "function-identifier": {
246
269
  "patterns": [
247
270
  {
@@ -292,11 +315,11 @@
292
315
  "name": "keyword.control.return.dart"
293
316
  },
294
317
  {
295
- "match": "(?<!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension type|extension|external|factory|implements|get(?![(<])|mixin|native|operator|set(?![(<])|typedef|with|covariant)\\b(?!\\$)",
318
+ "match": "(?<!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension\\s+type|extension|external|factory|implements|get(?![(<])|mixin|native|operator|set(?![(<])|typedef|with|covariant)\\b(?!\\$)",
296
319
  "name": "keyword.declaration.dart"
297
320
  },
298
321
  {
299
- "match": "(?<!\\$)\\b(static|final|const|required|late)\\b(?!\\$)",
322
+ "match": "(?<!\\$)\\b(macro|augment|static|final|const|required|late)\\b(?!\\$)",
300
323
  "name": "storage.modifier.dart"
301
324
  },
302
325
  {
@@ -378,22 +401,15 @@
378
401
  }
379
402
  },
380
403
  "match": "\\$([a-zA-Z0-9_]+)",
381
- "name": "string.interpolated.expression.dart"
404
+ "name": "meta.embedded.expression.dart"
382
405
  },
383
406
  {
384
407
  "begin": "\\$\\{",
385
408
  "end": "\\}",
386
- "name": "string.interpolated.expression.dart",
409
+ "name": "meta.embedded.expression.dart",
387
410
  "patterns": [
388
411
  {
389
- "include": "#constants-and-special-vars"
390
- },
391
- {
392
- "include": "#strings"
393
- },
394
- {
395
- "match": "[a-zA-Z0-9_]+",
396
- "name": "variable.parameter.dart"
412
+ "include": "#expression"
397
413
  }
398
414
  ]
399
415
  },
package/grammars/go.json CHANGED
@@ -1072,9 +1072,19 @@
1072
1072
  "match": "((?:^\\s*\\w+:\\s*$)|(?:^\\s*(?:\\bbreak\\b|\\bgoto\\b|\\bcontinue\\b)\\s+\\w+(?:\\s*/(?:/|\\*)\\s*.*)?$))"
1073
1073
  },
1074
1074
  "language_constants": {
1075
+ "captures": {
1076
+ "1": {
1077
+ "name": "constant.language.boolean.go"
1078
+ },
1079
+ "2": {
1080
+ "name": "constant.language.null.go"
1081
+ },
1082
+ "3": {
1083
+ "name": "constant.language.iota.go"
1084
+ }
1085
+ },
1075
1086
  "comment": "Language constants",
1076
- "match": "\\b(true|false|nil|iota)\\b",
1077
- "name": "constant.language.go"
1087
+ "match": "\\b(?:(true|false)|(nil)|(iota))\\b"
1078
1088
  },
1079
1089
  "map_types": {
1080
1090
  "begin": "(?:(\\bmap\\b)(\\[))",
@@ -288,7 +288,7 @@
288
288
  "name": "keyword.control.export.julia"
289
289
  },
290
290
  {
291
- "match": "\\b(?<![:_])(?:public)\\b",
291
+ "match": "^(?:public)\\b",
292
292
  "name": "keyword.control.public.julia"
293
293
  },
294
294
  {
@@ -2897,6 +2897,32 @@
2897
2897
  "match": "((\\\\)(?:jl|julia)[cv]?)((?:\\[[^\\[]*?\\])?)(?:(?:([^a-zA-Z\\{])(.*?)(\\4))|(?:(\\{)(.*?)(\\})))",
2898
2898
  "name": "meta.function.verb.latex"
2899
2899
  },
2900
+ {
2901
+ "begin": "((\\\\)(?:directlua|luadirect))(\\{)",
2902
+ "beginCaptures": {
2903
+ "1": {
2904
+ "name": "support.function.verb.latex"
2905
+ },
2906
+ "2": {
2907
+ "name": "punctuation.definition.function.latex"
2908
+ },
2909
+ "3": {
2910
+ "name": "punctuation.definition.arguments.begin.latex"
2911
+ }
2912
+ },
2913
+ "contentName": "source.lua",
2914
+ "end": "\\}",
2915
+ "endCaptures": {
2916
+ "0": {
2917
+ "name": "punctuation.definition.arguments.end.latex"
2918
+ }
2919
+ },
2920
+ "patterns": [
2921
+ {
2922
+ "include": "source.lua"
2923
+ }
2924
+ ]
2925
+ },
2900
2926
  {
2901
2927
  "match": "\\\\(?:newline|pagebreak|clearpage|linebreak|pause)(?:\\b)",
2902
2928
  "name": "keyword.control.layout.latex"
@@ -3010,6 +3036,15 @@
3010
3036
  "match": "(\\\\)(text(s(terling|ixoldstyle|urd|e(ction|venoldstyle|rvicemark))|yen|n(ineoldstyle|umero|aira)|c(ircledP|o(py(left|right)|lonmonetary)|urrency|e(nt(oldstyle)?|lsius))|t(hree(superior|oldstyle|quarters(emdash)?)|i(ldelow|mes)|w(o(superior|oldstyle)|elveudash)|rademark)|interrobang(down)?|zerooldstyle|o(hm|ne(superior|half|oldstyle|quarter)|penbullet|rd(feminine|masculine))|d(i(scount|ed|v(orced)?)|o(ng|wnarrow|llar(oldstyle)?)|egree|agger(dbl)?|blhyphen(char)?)|uparrow|p(ilcrow|e(so|r(t(housand|enthousand)|iodcentered))|aragraph|m)|e(stimated|ightoldstyle|uro)|quotes(traight(dblbase|base)|ingle)|f(iveoldstyle|ouroldstyle|lorin|ractionsolidus)|won|l(not|ira|e(ftarrow|af)|quill|angle|brackdbl)|a(s(cii(caron|dieresis|acute|grave|macron|breve)|teriskcentered)|cutedbl)|r(ightarrow|e(cipe|ferencemark|gistered)|quill|angle|brackdbl)|g(uarani|ravedbl)|m(ho|inus|u(sicalnote)?|arried)|b(igcircle|orn|ullet|lank|a(ht|rdbl)|rokenbar)))\\b",
3011
3037
  "name": "constant.character.latex"
3012
3038
  },
3039
+ {
3040
+ "captures": {
3041
+ "1": {
3042
+ "name": "punctuation.definition.variable.latex"
3043
+ }
3044
+ },
3045
+ "match": "(\\\\)[cgl](?:[_\\p{Alphabetic}@]+)+_(?:bitset|clist|dim|fp|int|muskip|str|tl|bool|box|coffin|flag|fparray|intarray|ior|iow|prop|regex|seq)",
3046
+ "name": "variable.other.latex3.latex"
3047
+ },
3013
3048
  {
3014
3049
  "captures": {
3015
3050
  "1": {
@@ -3960,7 +3960,7 @@
3960
3960
  ]
3961
3961
  },
3962
3962
  {
3963
- "begin": "\\bfilter\\b",
3963
+ "begin": "\\b(?:backdrop-)?filter\\b",
3964
3964
  "beginCaptures": {
3965
3965
  "0": {
3966
3966
  "name": "support.type.property-name.less"
package/grammars/lua.json CHANGED
@@ -134,8 +134,8 @@
134
134
  },
135
135
  {
136
136
  "captures": {
137
- "1": {
138
- "name": "string.tag.lua"
137
+ "0": {
138
+ "name": "storage.type.attribute.lua"
139
139
  }
140
140
  },
141
141
  "match": "<\\s*(const|close)\\s*>"
@@ -149,7 +149,7 @@
149
149
  "name": "keyword.control.lua"
150
150
  },
151
151
  {
152
- "match": "\\b(local|global)\\b",
152
+ "match": "\\b(local)\\b",
153
153
  "name": "keyword.local.lua"
154
154
  },
155
155
  {
@@ -229,7 +229,7 @@
229
229
  "name": "punctuation.definition.comment.begin.lua"
230
230
  }
231
231
  },
232
- "end": "\\]\\1\\]",
232
+ "end": "(--)?\\]\\1\\]",
233
233
  "endCaptures": {
234
234
  "0": {
235
235
  "name": "punctuation.definition.comment.end.lua"
@@ -249,7 +249,7 @@
249
249
  "name": "punctuation.definition.comment.begin.lua"
250
250
  }
251
251
  },
252
- "end": "\\]\\1\\]",
252
+ "end": "(--)?\\]\\1\\]",
253
253
  "endCaptures": {
254
254
  "0": {
255
255
  "name": "punctuation.definition.comment.end.lua"
@@ -338,7 +338,7 @@
338
338
  "emmydoc": {
339
339
  "patterns": [
340
340
  {
341
- "begin": "(?<=---[ \\t]*)@class",
341
+ "begin": "(?<=---)[ \\t]*@class",
342
342
  "beginCaptures": {
343
343
  "0": {
344
344
  "name": "storage.type.annotation.lua"
@@ -357,7 +357,7 @@
357
357
  ]
358
358
  },
359
359
  {
360
- "begin": "(?<=---[ \\t]*)@enum",
360
+ "begin": "(?<=---)[ \\t]*@enum",
361
361
  "beginCaptures": {
362
362
  "0": {
363
363
  "name": "storage.type.annotation.lua"
@@ -377,7 +377,7 @@
377
377
  ]
378
378
  },
379
379
  {
380
- "begin": "(?<=---[ \\t]*)@type",
380
+ "begin": "(?<=---)[ \\t]*@type",
381
381
  "beginCaptures": {
382
382
  "0": {
383
383
  "name": "storage.type.annotation.lua"
@@ -391,7 +391,7 @@
391
391
  ]
392
392
  },
393
393
  {
394
- "begin": "(?<=---[ \\t]*)@alias",
394
+ "begin": "(?<=---)[ \\t]*@alias",
395
395
  "beginCaptures": {
396
396
  "0": {
397
397
  "name": "storage.type.annotation.lua"
@@ -416,7 +416,7 @@
416
416
  ]
417
417
  },
418
418
  {
419
- "begin": "(?<=---[ \\t]*)(@operator)\\s*(\\b[a-z]+)?",
419
+ "begin": "(?<=---)[ \\t]*(@operator)\\s*(\\b[a-z]+)?",
420
420
  "beginCaptures": {
421
421
  "1": {
422
422
  "name": "storage.type.annotation.lua"
@@ -433,7 +433,7 @@
433
433
  ]
434
434
  },
435
435
  {
436
- "begin": "(?<=---[ \\t]*)@cast",
436
+ "begin": "(?<=---)[ \\t]*@cast",
437
437
  "beginCaptures": {
438
438
  "0": {
439
439
  "name": "storage.type.annotation.lua"
@@ -462,7 +462,7 @@
462
462
  ]
463
463
  },
464
464
  {
465
- "begin": "(?<=---[ \\t]*)@param",
465
+ "begin": "(?<=---)[ \\t]*@param",
466
466
  "beginCaptures": {
467
467
  "0": {
468
468
  "name": "storage.type.annotation.lua"
@@ -490,7 +490,7 @@
490
490
  ]
491
491
  },
492
492
  {
493
- "begin": "(?<=---[ \\t]*)@return",
493
+ "begin": "(?<=---)[ \\t]*@return",
494
494
  "beginCaptures": {
495
495
  "0": {
496
496
  "name": "storage.type.annotation.lua"
@@ -508,7 +508,7 @@
508
508
  ]
509
509
  },
510
510
  {
511
- "begin": "(?<=---[ \\t]*)@field",
511
+ "begin": "(?<=---)[ \\t]*@field",
512
512
  "beginCaptures": {
513
513
  "0": {
514
514
  "name": "storage.type.annotation.lua"
@@ -543,7 +543,7 @@
543
543
  ]
544
544
  },
545
545
  {
546
- "begin": "(?<=---[ \\t]*)@generic",
546
+ "begin": "(?<=---)[ \\t]*@generic",
547
547
  "beginCaptures": {
548
548
  "0": {
549
549
  "name": "storage.type.annotation.lua"
@@ -577,7 +577,7 @@
577
577
  ]
578
578
  },
579
579
  {
580
- "begin": "(?<=---[ \\t]*)@vararg",
580
+ "begin": "(?<=---)[ \\t]*@vararg",
581
581
  "beginCaptures": {
582
582
  "0": {
583
583
  "name": "storage.type.annotation.lua"
@@ -591,7 +591,7 @@
591
591
  ]
592
592
  },
593
593
  {
594
- "begin": "(?<=---[ \\t]*)@overload",
594
+ "begin": "(?<=---)[ \\t]*@overload",
595
595
  "beginCaptures": {
596
596
  "0": {
597
597
  "name": "storage.type.annotation.lua"
@@ -605,7 +605,7 @@
605
605
  ]
606
606
  },
607
607
  {
608
- "begin": "(?<=---[ \\t]*)@deprecated",
608
+ "begin": "(?<=---)[ \\t]*@deprecated",
609
609
  "beginCaptures": {
610
610
  "0": {
611
611
  "name": "storage.type.annotation.lua"
@@ -614,7 +614,7 @@
614
614
  "end": "(?=[\\n@#])"
615
615
  },
616
616
  {
617
- "begin": "(?<=---[ \\t]*)@meta",
617
+ "begin": "(?<=---)[ \\t]*@meta",
618
618
  "beginCaptures": {
619
619
  "0": {
620
620
  "name": "storage.type.annotation.lua"
@@ -623,7 +623,7 @@
623
623
  "end": "(?=[\\n@#])"
624
624
  },
625
625
  {
626
- "begin": "(?<=---[ \\t]*)@private",
626
+ "begin": "(?<=---)[ \\t]*@private",
627
627
  "beginCaptures": {
628
628
  "0": {
629
629
  "name": "storage.type.annotation.lua"
@@ -632,7 +632,7 @@
632
632
  "end": "(?=[\\n@#])"
633
633
  },
634
634
  {
635
- "begin": "(?<=---[ \\t]*)@protected",
635
+ "begin": "(?<=---)[ \\t]*@protected",
636
636
  "beginCaptures": {
637
637
  "0": {
638
638
  "name": "storage.type.annotation.lua"
@@ -641,7 +641,7 @@
641
641
  "end": "(?=[\\n@#])"
642
642
  },
643
643
  {
644
- "begin": "(?<=---[ \\t]*)@package",
644
+ "begin": "(?<=---)[ \\t]*@package",
645
645
  "beginCaptures": {
646
646
  "0": {
647
647
  "name": "storage.type.annotation.lua"
@@ -650,7 +650,7 @@
650
650
  "end": "(?=[\\n@#])"
651
651
  },
652
652
  {
653
- "begin": "(?<=---[ \\t]*)@version",
653
+ "begin": "(?<=---)[ \\t]*@version",
654
654
  "beginCaptures": {
655
655
  "0": {
656
656
  "name": "storage.type.annotation.lua"
@@ -669,7 +669,7 @@
669
669
  ]
670
670
  },
671
671
  {
672
- "begin": "(?<=---[ \\t]*)@see",
672
+ "begin": "(?<=---)[ \\t]*@see",
673
673
  "beginCaptures": {
674
674
  "0": {
675
675
  "name": "storage.type.annotation.lua"
@@ -688,7 +688,7 @@
688
688
  ]
689
689
  },
690
690
  {
691
- "begin": "(?<=---[ \\t]*)@diagnostic",
691
+ "begin": "(?<=---)[ \\t]*@diagnostic",
692
692
  "beginCaptures": {
693
693
  "0": {
694
694
  "name": "storage.type.annotation.lua"
@@ -721,7 +721,7 @@
721
721
  ]
722
722
  },
723
723
  {
724
- "begin": "(?<=---[ \\t]*)@module",
724
+ "begin": "(?<=---)[ \\t]*@module",
725
725
  "beginCaptures": {
726
726
  "0": {
727
727
  "name": "storage.type.annotation.lua"
@@ -735,7 +735,7 @@
735
735
  ]
736
736
  },
737
737
  {
738
- "match": "(?<=---[ \\t]*)@(async|nodiscard)",
738
+ "match": "(?<=---)[ \\t]*@(async|nodiscard)",
739
739
  "name": "storage.type.annotation.lua"
740
740
  },
741
741
  {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "repository": {
10
10
  "alias_statement": {
11
- "begin": "(?:(alias)(?:[ \\t]*+)((?:(?:((?<!\\w)-\\w+\\b)(?:[ \\t]*+))*))(?:(?:[ \\t]*+)(?:((?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))(?:(?:(\\[)((?:(?:(?:(?:\\$?)(?:(?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))|@)|\\*)|(-?\\d+)))(\\]))?))(?:(?:(\\=)|(\\+\\=))|(\\-\\=))))",
11
+ "begin": "(?:(?:[ \\t]*+)(alias)(?:[ \\t]*+)((?:(?:((?<!\\w)-\\w+\\b)(?:[ \\t]*+))*))(?:(?:[ \\t]*+)(?:((?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))(?:(?:(\\[)((?:(?:(?:(?:\\$?)(?:(?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))|@)|\\*)|(-?\\d+)))(\\]))?))(?:(?:(\\=)|(\\+\\=))|(\\-\\=))))",
12
12
  "beginCaptures": {
13
13
  "1": {
14
14
  "name": "storage.type.alias.shell"
@@ -116,7 +116,7 @@
116
116
  ]
117
117
  }
118
118
  },
119
- "match": "(?:[ \\t]*+)((?:[^ \\t\\n'&;<>\\(\\)\\$`\\\\\"\\|]+)(?!>))"
119
+ "match": "(?:[ \\t]*+)((?:[^ \\t\\n>&;<>\\(\\)\\$`\\\\\"'<\\|]+)(?!>))"
120
120
  },
121
121
  {
122
122
  "include": "#normal_context"
@@ -313,7 +313,7 @@
313
313
  ]
314
314
  }
315
315
  },
316
- "match": "(?:(?:(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!nocorrect |nocorrect\t|nocorrect$|readonly |readonly\t|readonly$|function |function\t|function$|foreach |foreach\t|foreach$|coproc |coproc\t|coproc$|logout |logout\t|logout$|export |export\t|export$|select |select\t|select$|repeat |repeat\t|repeat$|pushd |pushd\t|pushd$|until |until\t|until$|while |while\t|while$|local |local\t|local$|case |case\t|case$|done |done\t|done$|elif |elif\t|elif$|else |else\t|else$|esac |esac\t|esac$|popd |popd\t|popd$|then |then\t|then$|time |time\t|time$|for |for\t|for$|end |end\t|end$|fi |fi\t|fi$|do |do\t|do$|in |in\t|in$|if |if\t|if$))(?:((?<=^|;|&|[ \\t])(?:readonly|declare|typeset|export|local)(?=[ \\t]|;|&|$))|((?!\"|'|\\\\\\n?$)(?:[^!'\" \\t\\n\\r]+?)))(?:(?= |\\t)|(?:(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))))",
316
+ "match": "(?:(?:(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!nocorrect |nocorrect\t|nocorrect$|readonly |readonly\t|readonly$|function |function\t|function$|foreach |foreach\t|foreach$|coproc |coproc\t|coproc$|logout |logout\t|logout$|export |export\t|export$|select |select\t|select$|repeat |repeat\t|repeat$|pushd |pushd\t|pushd$|until |until\t|until$|while |while\t|while$|local |local\t|local$|case |case\t|case$|done |done\t|done$|elif |elif\t|elif$|else |else\t|else$|esac |esac\t|esac$|popd |popd\t|popd$|then |then\t|then$|time |time\t|time$|for |for\t|for$|end |end\t|end$|fi |fi\t|fi$|do |do\t|do$|in |in\t|in$|if |if\t|if$))(?:((?<=^|;|&|[ \\t])(?:readonly|declare|typeset|export|local)(?=[ \\t]|;|&|$))|((?!\"|'|\\\\\\n?$)(?:[^!'\"<> \\t\\n\\r]+?)))(?:(?= |\\t)|(?:(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))))",
317
317
  "name": "meta.statement.command.name.basic.shell"
318
318
  },
319
319
  "block_comment": {
@@ -433,9 +433,17 @@
433
433
  "name": "keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"
434
434
  },
435
435
  {
436
- "begin": "\\(",
436
+ "match": "\\\\.",
437
+ "name": "constant.character.escape.shell"
438
+ },
439
+ {
440
+ "match": "(?<=\\tin| in| |\\t|;;)\\(",
441
+ "name": "keyword.operator.pattern.case.shell"
442
+ },
443
+ {
444
+ "begin": "(?<=\\S)(\\()",
437
445
  "beginCaptures": {
438
- "0": {
446
+ "1": {
439
447
  "name": "punctuation.definition.group.shell punctuation.definition.regex.group.shell"
440
448
  }
441
449
  },
@@ -486,7 +494,7 @@
486
494
  "begin": "\\G",
487
495
  "beginCaptures": {
488
496
  },
489
- "end": "(?= |\\t|;|\\||&|$|\\n|\\)|\\`)",
497
+ "end": "(?:(?= |\\t|;|\\||&|$|\\n|\\)|\\`)|(?=<))",
490
498
  "endCaptures": {
491
499
  },
492
500
  "name": "meta.statement.command.name.shell",
@@ -508,7 +516,7 @@
508
516
  "name": "entity.name.function.call.shell entity.name.command.shell"
509
517
  }
510
518
  },
511
- "match": "(?:(?<!\\w)(?<=\\G|'|\"|\\}|\\))([^ \\n\\t\\r\"'=;&\\|`\\)\\{]+))"
519
+ "match": "(?:(?<!\\w)(?<=\\G|'|\"|\\}|\\))([^ \\n\\t\\r\"'=;&\\|`\\)\\{<>]+))"
512
520
  },
513
521
  {
514
522
  "begin": "(?:(?:\\G|(?<! |\\t|;|\\||&|\\n|\\{|#))(?:(\\$?)((?:(\")|(')))))",
@@ -568,6 +576,9 @@
568
576
  },
569
577
  {
570
578
  "include": "#string"
579
+ },
580
+ {
581
+ "include": "#heredoc"
571
582
  }
572
583
  ]
573
584
  },
@@ -879,7 +890,7 @@
879
890
  "end": "(?:(?:^\\t*)(?:\\3)(?=\\s|;|&|$))",
880
891
  "endCaptures": {
881
892
  "0": {
882
- "name": "punctuation.definition.string.heredoc.delimiter.shell"
893
+ "name": "punctuation.definition.string.heredoc.$0.shell"
883
894
  }
884
895
  },
885
896
  "patterns": [
@@ -1514,6 +1525,30 @@
1514
1525
  }
1515
1526
  ]
1516
1527
  },
1528
+ "math_operators": {
1529
+ "patterns": [
1530
+ {
1531
+ "match": "\\+{1,2}|-{1,2}|!|~|\\*{1,2}|/|%|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|\\?|\\:|,|=|[*/%+\\-&^|]=|<<=|>>=",
1532
+ "name": "keyword.operator.arithmetic.shell"
1533
+ },
1534
+ {
1535
+ "match": "0[xX][0-9A-Fa-f]+",
1536
+ "name": "constant.numeric.hex.shell"
1537
+ },
1538
+ {
1539
+ "match": "0\\d+",
1540
+ "name": "constant.numeric.octal.shell"
1541
+ },
1542
+ {
1543
+ "match": "\\d{1,2}#[0-9a-zA-Z@_]+",
1544
+ "name": "constant.numeric.other.shell"
1545
+ },
1546
+ {
1547
+ "match": "\\d+",
1548
+ "name": "constant.numeric.integer.shell"
1549
+ }
1550
+ ]
1551
+ },
1517
1552
  "misc_ranges": {
1518
1553
  "patterns": [
1519
1554
  {
@@ -1941,7 +1976,7 @@
1941
1976
  "name": "string.unquoted.argument.shell"
1942
1977
  }
1943
1978
  },
1944
- "match": "(?:(>>?)(?:[ \\t]*+)([^ \\t\\n'&;<>\\(\\)\\$`\\\\\"\\|]+))"
1979
+ "match": "(?:(>>?)(?:[ \\t]*+)([^ \\t\\n>&;<>\\(\\)\\$`\\\\\"'<\\|]+))"
1945
1980
  },
1946
1981
  "redirect_number": {
1947
1982
  "captures": {
@@ -2017,7 +2052,7 @@
2017
2052
  "match": "(?:(?:[ \\t]++)\\-(?:\\w+))*"
2018
2053
  },
2019
2054
  "simple_unquoted": {
2020
- "match": "[^ \\t\\n'&;<>\\(\\)\\$`\\\\\"\\|]",
2055
+ "match": "[^ \\t\\n>&;<>\\(\\)\\$`\\\\\"'<\\|]",
2021
2056
  "name": "string.unquoted.shell"
2022
2057
  },
2023
2058
  "special_expansion": {
@@ -2156,6 +2191,9 @@
2156
2191
  {
2157
2192
  "include": "#for_statement"
2158
2193
  },
2194
+ {
2195
+ "include": "#while_statement"
2196
+ },
2159
2197
  {
2160
2198
  "include": "#function_definition"
2161
2199
  },
@@ -2296,6 +2334,42 @@
2296
2334
  "match": "(?:(\\$)((?:\\w+)(?!\\w)))"
2297
2335
  }
2298
2336
  ]
2337
+ },
2338
+ "while_statement": {
2339
+ "patterns": [
2340
+ {
2341
+ "begin": "(\\bwhile\\b)",
2342
+ "beginCaptures": {
2343
+ "1": {
2344
+ "name": "keyword.control.while.shell"
2345
+ }
2346
+ },
2347
+ "end": "(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\)",
2348
+ "endCaptures": {
2349
+ },
2350
+ "name": "meta.while.shell",
2351
+ "patterns": [
2352
+ {
2353
+ "include": "#line_continuation"
2354
+ },
2355
+ {
2356
+ "include": "#math_operators"
2357
+ },
2358
+ {
2359
+ "include": "#option"
2360
+ },
2361
+ {
2362
+ "include": "#simple_unquoted"
2363
+ },
2364
+ {
2365
+ "include": "#normal_context"
2366
+ },
2367
+ {
2368
+ "include": "#string"
2369
+ }
2370
+ ]
2371
+ }
2372
+ ]
2299
2373
  }
2300
2374
  },
2301
2375
  "scopeName": "source.shell"
package/grammars/tex.json CHANGED
@@ -3,22 +3,22 @@
3
3
  "name": "tex",
4
4
  "patterns": [
5
5
  {
6
- "begin": "(\\\\)iffalse",
6
+ "begin": "(?<=^\\s*)((\\\\)iffalse)",
7
7
  "beginCaptures": {
8
- "0": {
8
+ "1": {
9
9
  "name": "keyword.control.tex"
10
10
  },
11
- "1": {
11
+ "2": {
12
12
  "name": "punctuation.definition.keyword.tex"
13
13
  }
14
14
  },
15
15
  "contentName": "comment.line.percentage.tex",
16
- "end": "(\\\\)(else|fi)",
16
+ "end": "(?<=^\\s*)((\\\\)(?:else|fi))",
17
17
  "endCaptures": {
18
- "0": {
18
+ "1": {
19
19
  "name": "keyword.control.tex"
20
20
  },
21
- "1": {
21
+ "2": {
22
22
  "name": "punctuation.definition.keyword.tex"
23
23
  }
24
24
  },
@@ -102,7 +102,7 @@
102
102
  "name": "punctuation.definition.function.tex"
103
103
  }
104
104
  },
105
- "match": "(\\\\)(?:[\\p{Alphabetic}@]+|[,;])",
105
+ "match": "(\\\\)(?:[,;]|(?:[\\p{Alphabetic}@]+(?:(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*)?))",
106
106
  "name": "support.function.general.tex"
107
107
  },
108
108
  {
@@ -168,8 +168,8 @@
168
168
  ]
169
169
  },
170
170
  "conditionals": {
171
- "begin": "\\\\(if[a-z]*)",
172
- "end": "\\\\fi",
171
+ "begin": "(?<=^\\s*)\\\\if[a-z]*",
172
+ "end": "(?<=^\\s*)\\\\fi",
173
173
  "patterns": [
174
174
  {
175
175
  "include": "#comment"
package/index.js CHANGED
@@ -557,18 +557,18 @@ export const grammars = [
557
557
  source: 'https://github.com/Pure-D/code-d/blob/466ac04dcc1f6d3fea50ef5ae7a920a121efd09c/syntaxes/d.json',
558
558
  },
559
559
  {
560
- byteSize: 6940,
560
+ byteSize: 7116,
561
561
  categories: [
562
562
  'general',
563
563
  ],
564
564
  displayName: 'Dart',
565
- lastUpdate: '2024-02-27T11:14:40Z',
565
+ lastUpdate: '2024-04-26T11:52:52Z',
566
566
  license: 'MIT',
567
567
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
568
568
  name: 'dart',
569
569
  scopeName: 'source.dart',
570
- sha: 'e9a8b6add5329f8124f23ff7143d95c22ce39f76',
571
- source: 'https://github.com/microsoft/vscode/blob/e9a8b6add5329f8124f23ff7143d95c22ce39f76/extensions/dart/syntaxes/dart.tmLanguage.json',
570
+ sha: '5c213a1e84928c7a7d11ca5b282ca602d40c1352',
571
+ source: 'https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/dart/syntaxes/dart.tmLanguage.json',
572
572
  },
573
573
  {
574
574
  byteSize: 5498,
@@ -931,18 +931,18 @@ export const grammars = [
931
931
  source: 'https://github.com/MarioSchwalbe/vscode-gnuplot/blob/c62c1a61c9b6b4658b43d76c397dc2ad43523b6a/syntaxes/gnuplot.tmLanguage',
932
932
  },
933
933
  {
934
- byteSize: 46222,
934
+ byteSize: 46339,
935
935
  categories: [
936
936
  'general',
937
937
  ],
938
938
  displayName: 'Go',
939
- lastUpdate: '2024-04-09T10:20:39Z',
939
+ lastUpdate: '2024-04-26T11:52:52Z',
940
940
  license: 'MIT',
941
941
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
942
942
  name: 'go',
943
943
  scopeName: 'source.go',
944
- sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
945
- source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/go/syntaxes/go.tmLanguage.json',
944
+ sha: '5c213a1e84928c7a7d11ca5b282ca602d40c1352',
945
+ source: 'https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/go/syntaxes/go.tmLanguage.json',
946
946
  },
947
947
  {
948
948
  aliases: [
@@ -1378,7 +1378,7 @@ export const grammars = [
1378
1378
  aliases: [
1379
1379
  'jl',
1380
1380
  ],
1381
- byteSize: 33620,
1381
+ byteSize: 33609,
1382
1382
  categories: [
1383
1383
  'web',
1384
1384
  'data',
@@ -1391,13 +1391,13 @@ export const grammars = [
1391
1391
  'r',
1392
1392
  'sql',
1393
1393
  ],
1394
- lastUpdate: '2024-04-09T10:20:39Z',
1394
+ lastUpdate: '2024-04-26T11:52:52Z',
1395
1395
  license: 'MIT',
1396
1396
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
1397
1397
  name: 'julia',
1398
1398
  scopeName: 'source.julia',
1399
- sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
1400
- source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/julia/syntaxes/julia.tmLanguage.json',
1399
+ sha: '5c213a1e84928c7a7d11ca5b282ca602d40c1352',
1400
+ source: 'https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/julia/syntaxes/julia.tmLanguage.json',
1401
1401
  },
1402
1402
  {
1403
1403
  aliases: [
@@ -1430,7 +1430,7 @@ export const grammars = [
1430
1430
  source: 'https://github.com/rosshamish/kuskus/blob/638b8a9249c2c423bc263726661cde534b25adc7/kusto-syntax-highlighting/syntaxes/kusto.tmLanguage.json',
1431
1431
  },
1432
1432
  {
1433
- byteSize: 54540,
1433
+ byteSize: 55169,
1434
1434
  categories: [
1435
1435
  'markup',
1436
1436
  ],
@@ -1454,27 +1454,27 @@ export const grammars = [
1454
1454
  'yaml',
1455
1455
  'scala',
1456
1456
  ],
1457
- lastUpdate: '2024-04-09T10:20:39Z',
1457
+ lastUpdate: '2024-04-26T11:52:52Z',
1458
1458
  license: 'MIT',
1459
1459
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
1460
1460
  name: 'latex',
1461
1461
  scopeName: 'text.tex.latex',
1462
- sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
1463
- source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/latex/syntaxes/LaTeX.tmLanguage.json',
1462
+ sha: '5c213a1e84928c7a7d11ca5b282ca602d40c1352',
1463
+ source: 'https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/latex/syntaxes/LaTeX.tmLanguage.json',
1464
1464
  },
1465
1465
  {
1466
- byteSize: 81466,
1466
+ byteSize: 81480,
1467
1467
  categories: [
1468
1468
  'web',
1469
1469
  ],
1470
1470
  displayName: 'Less',
1471
- lastUpdate: '2023-12-05T14:17:02Z',
1471
+ lastUpdate: '2024-04-26T11:52:52Z',
1472
1472
  license: 'MIT',
1473
1473
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
1474
1474
  name: 'less',
1475
1475
  scopeName: 'source.css.less',
1476
- sha: 'b0d60e8e2e90bc9d7913611c176d14b8eb91b532',
1477
- source: 'https://github.com/microsoft/vscode/blob/b0d60e8e2e90bc9d7913611c176d14b8eb91b532/extensions/less/syntaxes/less.tmLanguage.json',
1476
+ sha: '5c213a1e84928c7a7d11ca5b282ca602d40c1352',
1477
+ source: 'https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/less/syntaxes/less.tmLanguage.json',
1478
1478
  },
1479
1479
  {
1480
1480
  byteSize: 15680,
@@ -1517,7 +1517,7 @@ export const grammars = [
1517
1517
  source: 'https://github.com/textmate/logo.tmbundle/blob/3205e987ed2a2aa11accdd55a7d094832441f89c/Syntaxes/Logo.tmLanguage',
1518
1518
  },
1519
1519
  {
1520
- byteSize: 14739,
1520
+ byteSize: 14754,
1521
1521
  categories: [
1522
1522
  'scripting',
1523
1523
  ],
@@ -1525,13 +1525,13 @@ export const grammars = [
1525
1525
  embedded: [
1526
1526
  'c',
1527
1527
  ],
1528
- lastUpdate: '2023-12-13T12:08:01Z',
1528
+ lastUpdate: '2024-04-26T11:52:52Z',
1529
1529
  license: 'MIT',
1530
1530
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
1531
1531
  name: 'lua',
1532
1532
  scopeName: 'source.lua',
1533
- sha: '3c86ede5f554f6e196c832394e126b291a1de606',
1534
- source: 'https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/lua/syntaxes/lua.tmLanguage.json',
1533
+ sha: '5c213a1e84928c7a7d11ca5b282ca602d40c1352',
1534
+ source: 'https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/lua/syntaxes/lua.tmLanguage.json',
1535
1535
  },
1536
1536
  {
1537
1537
  aliases: [
@@ -2384,18 +2384,18 @@ export const grammars = [
2384
2384
  'shell',
2385
2385
  'zsh',
2386
2386
  ],
2387
- byteSize: 39910,
2387
+ byteSize: 40993,
2388
2388
  categories: [
2389
2389
  'scripting',
2390
2390
  ],
2391
2391
  displayName: 'Shell',
2392
- lastUpdate: '2024-04-09T10:20:39Z',
2392
+ lastUpdate: '2024-04-26T11:52:52Z',
2393
2393
  license: 'MIT',
2394
2394
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
2395
2395
  name: 'shellscript',
2396
2396
  scopeName: 'source.shell',
2397
- sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
2398
- source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json',
2397
+ sha: '5c213a1e84928c7a7d11ca5b282ca602d40c1352',
2398
+ source: 'https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json',
2399
2399
  },
2400
2400
  {
2401
2401
  aliases: [
@@ -2624,7 +2624,7 @@ export const grammars = [
2624
2624
  source: 'https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/terraform.tmGrammar.json',
2625
2625
  },
2626
2626
  {
2627
- byteSize: 8555,
2627
+ byteSize: 8651,
2628
2628
  categories: [
2629
2629
  'markup',
2630
2630
  ],
@@ -2632,13 +2632,13 @@ export const grammars = [
2632
2632
  embedded: [
2633
2633
  'r',
2634
2634
  ],
2635
- lastUpdate: '2024-04-09T10:20:39Z',
2635
+ lastUpdate: '2024-04-26T11:52:52Z',
2636
2636
  license: 'MIT',
2637
2637
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
2638
2638
  name: 'tex',
2639
2639
  scopeName: 'text.tex',
2640
- sha: 'b557947e50a068bdcc927ffd31ee555dbb232558',
2641
- source: 'https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/latex/syntaxes/TeX.tmLanguage.json',
2640
+ sha: '5c213a1e84928c7a7d11ca5b282ca602d40c1352',
2641
+ source: 'https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/latex/syntaxes/TeX.tmLanguage.json',
2642
2642
  },
2643
2643
  {
2644
2644
  byteSize: 6411,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.7.0",
4
+ "version": "1.7.1",
5
5
  "packageManager": "pnpm@8.15.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",