tm-grammars 1.32.13 → 1.32.15

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/NOTICE CHANGED
@@ -8115,9 +8115,182 @@ Files: nsis.json
8115
8115
  License: https://raw.githubusercontent.com/idleberg/vscode-nsis/main/LICENSE
8116
8116
  SPDX: NOASSERTION
8117
8117
  ---------------------------------------------------------------------------------------------------------
8118
- If not otherwise specified, files in this repository fall under [The MIT License](https://opensource.org/licenses/MIT).
8118
+ Apache License
8119
+ Version 2.0, January 2004
8120
+ http://www.apache.org/licenses/
8121
+
8122
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8123
+
8124
+ 1. Definitions.
8125
+
8126
+ "License" shall mean the terms and conditions for use, reproduction,
8127
+ and distribution as defined by Sections 1 through 9 of this document.
8128
+
8129
+ "Licensor" shall mean the copyright owner or entity authorized by
8130
+ the copyright owner that is granting the License.
8131
+
8132
+ "Legal Entity" shall mean the union of the acting entity and all
8133
+ other entities that control, are controlled by, or are under common
8134
+ control with that entity. For the purposes of this definition,
8135
+ "control" means (i) the power, direct or indirect, to cause the
8136
+ direction or management of such entity, whether by contract or
8137
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
8138
+ outstanding shares, or (iii) beneficial ownership of such entity.
8139
+
8140
+ "You" (or "Your") shall mean an individual or Legal Entity
8141
+ exercising permissions granted by this License.
8142
+
8143
+ "Source" form shall mean the preferred form for making modifications,
8144
+ including but not limited to software source code, documentation
8145
+ source, and configuration files.
8146
+
8147
+ "Object" form shall mean any form resulting from mechanical
8148
+ transformation or translation of a Source form, including but
8149
+ not limited to compiled object code, generated documentation,
8150
+ and conversions to other media types.
8151
+
8152
+ "Work" shall mean the work of authorship, whether in Source or
8153
+ Object form, made available under the License, as indicated by a
8154
+ copyright notice that is included in or attached to the work
8155
+ (an example is provided in the Appendix below).
8156
+
8157
+ "Derivative Works" shall mean any work, whether in Source or Object
8158
+ form, that is based on (or derived from) the Work and for which the
8159
+ editorial revisions, annotations, elaborations, or other modifications
8160
+ represent, as a whole, an original work of authorship. For the purposes
8161
+ of this License, Derivative Works shall not include works that remain
8162
+ separable from, or merely link (or bind by name) to the interfaces of,
8163
+ the Work and Derivative Works thereof.
8164
+
8165
+ "Contribution" shall mean any work of authorship, including
8166
+ the original version of the Work and any modifications or additions
8167
+ to that Work or Derivative Works thereof, that is intentionally
8168
+ submitted to Licensor for inclusion in the Work by the copyright owner
8169
+ or by an individual or Legal Entity authorized to submit on behalf of
8170
+ the copyright owner. For the purposes of this definition, "submitted"
8171
+ means any form of electronic, verbal, or written communication sent
8172
+ to the Licensor or its representatives, including but not limited to
8173
+ communication on electronic mailing lists, source code control systems,
8174
+ and issue tracking systems that are managed by, or on behalf of, the
8175
+ Licensor for the purpose of discussing and improving the Work, but
8176
+ excluding communication that is conspicuously marked or otherwise
8177
+ designated in writing by the copyright owner as "Not a Contribution."
8178
+
8179
+ "Contributor" shall mean Licensor and any individual or Legal Entity
8180
+ on behalf of whom a Contribution has been received by Licensor and
8181
+ subsequently incorporated within the Work.
8182
+
8183
+ 2. Grant of Copyright License. Subject to the terms and conditions of
8184
+ this License, each Contributor hereby grants to You a perpetual,
8185
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
8186
+ copyright license to reproduce, prepare Derivative Works of,
8187
+ publicly display, publicly perform, sublicense, and distribute the
8188
+ Work and such Derivative Works in Source or Object form.
8189
+
8190
+ 3. Grant of Patent License. Subject to the terms and conditions of
8191
+ this License, each Contributor hereby grants to You a perpetual,
8192
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
8193
+ (except as stated in this section) patent license to make, have made,
8194
+ use, offer to sell, sell, import, and otherwise transfer the Work,
8195
+ where such license applies only to those patent claims licensable
8196
+ by such Contributor that are necessarily infringed by their
8197
+ Contribution(s) alone or by combination of their Contribution(s)
8198
+ with the Work to which such Contribution(s) was submitted. If You
8199
+ institute patent litigation against any entity (including a
8200
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
8201
+ or a Contribution incorporated within the Work constitutes direct
8202
+ or contributory patent infringement, then any patent licenses
8203
+ granted to You under this License for that Work shall terminate
8204
+ as of the date such litigation is filed.
8119
8205
 
8120
- An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”.
8206
+ 4. Redistribution. You may reproduce and distribute copies of the
8207
+ Work or Derivative Works thereof in any medium, with or without
8208
+ modifications, and in Source or Object form, provided that You
8209
+ meet the following conditions:
8210
+
8211
+ (a) You must give any other recipients of the Work or
8212
+ Derivative Works a copy of this License; and
8213
+
8214
+ (b) You must cause any modified files to carry prominent notices
8215
+ stating that You changed the files; and
8216
+
8217
+ (c) You must retain, in the Source form of any Derivative Works
8218
+ that You distribute, all copyright, patent, trademark, and
8219
+ attribution notices from the Source form of the Work,
8220
+ excluding those notices that do not pertain to any part of
8221
+ the Derivative Works; and
8222
+
8223
+ (d) If the Work includes a "NOTICE" text file as part of its
8224
+ distribution, then any Derivative Works that You distribute must
8225
+ include a readable copy of the attribution notices contained
8226
+ within such NOTICE file, excluding those notices that do not
8227
+ pertain to any part of the Derivative Works, in at least one
8228
+ of the following places: within a NOTICE text file distributed
8229
+ as part of the Derivative Works; within the Source form or
8230
+ documentation, if provided along with the Derivative Works; or,
8231
+ within a display generated by the Derivative Works, if and
8232
+ wherever such third-party notices normally appear. The contents
8233
+ of the NOTICE file are for informational purposes only and
8234
+ do not modify the License. You may add Your own attribution
8235
+ notices within Derivative Works that You distribute, alongside
8236
+ or as an addendum to the NOTICE text from the Work, provided
8237
+ that such additional attribution notices cannot be construed
8238
+ as modifying the License.
8239
+
8240
+ You may add Your own copyright statement to Your modifications and
8241
+ may provide additional or different license terms and conditions
8242
+ for use, reproduction, or distribution of Your modifications, or
8243
+ for any such Derivative Works as a whole, provided Your use,
8244
+ reproduction, and distribution of the Work otherwise complies with
8245
+ the conditions stated in this License.
8246
+
8247
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
8248
+ any Contribution intentionally submitted for inclusion in the Work
8249
+ by You to the Licensor shall be under the terms and conditions of
8250
+ this License, without any additional terms or conditions.
8251
+ Notwithstanding the above, nothing herein shall supersede or modify
8252
+ the terms of any separate license agreement you may have executed
8253
+ with Licensor regarding such Contributions.
8254
+
8255
+ 6. Trademarks. This License does not grant permission to use the trade
8256
+ names, trademarks, service marks, or product names of the Licensor,
8257
+ except as required for reasonable and customary use in describing the
8258
+ origin of the Work and reproducing the content of the NOTICE file.
8259
+
8260
+ 7. Disclaimer of Warranty. Unless required by applicable law or
8261
+ agreed to in writing, Licensor provides the Work (and each
8262
+ Contributor provides its Contributions) on an "AS IS" BASIS,
8263
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
8264
+ implied, including, without limitation, any warranties or conditions
8265
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
8266
+ PARTICULAR PURPOSE. You are solely responsible for determining the
8267
+ appropriateness of using or redistributing the Work and assume any
8268
+ risks associated with Your exercise of permissions under this License.
8269
+
8270
+ 8. Limitation of Liability. In no event and under no legal theory,
8271
+ whether in tort (including negligence), contract, or otherwise,
8272
+ unless required by applicable law (such as deliberate and grossly
8273
+ negligent acts) or agreed to in writing, shall any Contributor be
8274
+ liable to You for damages, including any direct, indirect, special,
8275
+ incidental, or consequential damages of any character arising as a
8276
+ result of this License or out of the use or inability to use the
8277
+ Work (including but not limited to damages for loss of goodwill,
8278
+ work stoppage, computer failure or malfunction, or any and all
8279
+ other commercial damages or losses), even if such Contributor
8280
+ has been advised of the possibility of such damages.
8281
+
8282
+ 9. Accepting Warranty or Additional Liability. While redistributing
8283
+ the Work or Derivative Works thereof, You may choose to offer,
8284
+ and charge a fee for, acceptance of support, warranty, indemnity,
8285
+ or other liability obligations and/or rights consistent with this
8286
+ License. However, in accepting such obligations, You may act only
8287
+ on Your own behalf and on Your sole responsibility, not on behalf
8288
+ of any other Contributor, and only if You agree to indemnify,
8289
+ defend, and hold each Contributor harmless for any liability
8290
+ incurred by, or claims asserted against, such Contributor by reason
8291
+ of your accepting any such warranty or additional liability.
8292
+
8293
+ END OF TERMS AND CONDITIONS
8121
8294
 
8122
8295
  =========================================================================================================
8123
8296
  Files: nushell.json
package/README.md CHANGED
@@ -237,10 +237,10 @@ import { grammars } from 'tm-grammars'
237
237
  | `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 |
238
238
  | `tsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/210541906e5a96ab39f9c753f921b1bd35f4138b/extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 156.31 kB |
239
239
  | `turtle` | | [stardog-union/stardog-vsc](https://github.com/stardog-union/stardog-vsc/blob/3f1364b08bdbf4b4d77f123682db7d2b708b2f6e/stardog-rdf-grammars/syntaxes/turtle.tmLanguage.json) | | | | 3.49 kB |
240
- | `twig` | | [mblode/vscode-twig-language-2](https://github.com/mblode/vscode-twig-language-2/blob/b4f2809d6f75850ee7350b03f8b1d439d741ebf5/src/syntaxes/twig.tmLanguage) | [MIT](https://raw.githubusercontent.com/mblode/vscode-twig-language-2/master/LICENSE.md) | [GitHub Sponsors: **@mblode**](https://github.com/sponsors/mblode) | `css` `javascript` `scss` `php` `python` `ruby` | 20.17 kB |
240
+ | `twig` | | [mblode/vscode-twig-language-2](https://github.com/mblode/vscode-twig-language-2/blob/73f4e2729ce5f490e294dd158c82c22a35cf96de/src/syntaxes/twig.tmLanguage) | [MIT](https://raw.githubusercontent.com/mblode/vscode-twig-language-2/master/LICENSE.md) | [GitHub Sponsors: **@mblode**](https://github.com/sponsors/mblode) | `javascript` `css` `scss` `php` `python` `ruby` | 23.40 kB |
241
241
  | `typescript` | `ts` `cts` `mts` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/210541906e5a96ab39f9c753f921b1bd35f4138b/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 160.03 kB |
242
242
  | `typespec` | `tsp` | [microsoft/typespec](https://github.com/microsoft/typespec/blob/64f7850fb6e6069965ba8774643241b6a74f881c/grammars/typespec.json) | [MIT](https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE) | | | 23.94 kB |
243
- | `typst` | `typ` | [Myriad-Dreamin/tinymist](https://github.com/Myriad-Dreamin/tinymist/blob/766f1ec0edcfef620c70baac7fd2790a01baa324/editors/vscode/package.json) | [Apache-2.0](https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/LICENSE) | | `bat` `bibtex` `c` `clojure` `coffee` `cpp` `css` `csharp` `dart` `diff` `docker` `elixir` `erlang` `fsharp` `git-commit` `git-rebase` `go` `groovy` `handlebars` `html` `ini` `java` `javascript` `jsonc` `json` `julia` `latex` `less` `log` `lua` `make` `markdown` `objective-c` `perl` `raku` `php` `powershell` `pug` `r` `regexp` `ruby` `scss` `sql` `swift` `xml` `xsl` `yaml` `python` `rust` `scala` `shellscript` `typescript` `tsx` `twig` `verilog` `system-verilog` `vb` | 151.64 kB |
243
+ | `typst` | `typ` | [Myriad-Dreamin/tinymist](https://github.com/Myriad-Dreamin/tinymist/blob/3040faef70f5598783e3aab779f961ba97cf7cfa/editors/vscode/package.json) | [Apache-2.0](https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/LICENSE) | | `bat` `bibtex` `c` `clojure` `coffee` `cpp` `css` `csharp` `dart` `diff` `docker` `elixir` `erlang` `fsharp` `git-commit` `git-rebase` `go` `groovy` `handlebars` `html` `ini` `java` `javascript` `jsonc` `json` `julia` `latex` `less` `log` `lua` `make` `markdown` `objective-c` `perl` `raku` `php` `powershell` `pug` `r` `regexp` `ruby` `scss` `sql` `swift` `xml` `xsl` `yaml` `python` `rust` `scala` `shellscript` `typescript` `tsx` `twig` `verilog` `system-verilog` `vb` | 151.64 kB |
244
244
  | `v` | | [vlang/vscode-vlang](https://github.com/vlang/vscode-vlang/blob/cc6dee79af1fc1332084a263b952489aaed7e884/syntaxes/v.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/vlang/vscode-vlang/master/LICENSE) | | | 12.56 kB |
245
245
  | `vala` | | [vala-lang/vala-vscode](https://github.com/vala-lang/vala-vscode/blob/8f825e95648326df2572d0522632251cdff4a43b/syntaxes/vala.YAML-tmLanguage) | [MIT](https://raw.githubusercontent.com/vala-lang/vala-vscode/master/LICENSE) | | | 3.12 kB |
246
246
  | `vb` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/vb/syntaxes/asp-vb-net.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 5.70 kB |
@@ -7,10 +7,112 @@
7
7
  "firstLineMatch": "<!(?i:DOCTYPE)|<(?i:html)|<\\?(?i:php)|\\{\\{|\\{%|\\{#",
8
8
  "foldingStartMarker": "(<(?i:body|div|dl|fieldset|form|head|li|ol|script|select|style|table|tbody|tfoot|thead|tr|ul)\\b.*?>|<!--(?!.*--\\s*>)|^<!-- #tminclude (?>.*?-->)$|\\{%\\s+(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))",
9
9
  "foldingStopMarker": "(</(?i:body|div|dl|fieldset|form|head|li|ol|script|select|style|table|tbody|tfoot|thead|tr|ul)>|^(?!.*?<!--).*?--\\s*>|^<!-- end tminclude -->$|\\{%\\s+end(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))",
10
+ "injections": {
11
+ "L:text.html.twig -meta.tag.template -comment.block.twig -string.unquoted.verbatim.twig": {
12
+ "patterns": [
13
+ {
14
+ "include": "#twig-verbatim"
15
+ },
16
+ {
17
+ "include": "#twig-embedded-blocks"
18
+ },
19
+ {
20
+ "include": "#twig-comment-tag"
21
+ },
22
+ {
23
+ "include": "#twig-print-tag"
24
+ },
25
+ {
26
+ "include": "#twig-injected-statement"
27
+ }
28
+ ]
29
+ }
30
+ },
10
31
  "name": "twig",
11
32
  "patterns": [
12
33
  {
13
- "begin": "(<)([0-:A-Za-z]++)(?=[^>]*></\\2>)",
34
+ "include": "#twig-verbatim"
35
+ },
36
+ {
37
+ "begin": "(\\{%[-~]?)\\s*(js|includejs|javascript)\\s*([-~]?%})",
38
+ "beginCaptures": {
39
+ "1": {
40
+ "name": "punctuation.section.tag.twig"
41
+ },
42
+ "2": {
43
+ "name": "keyword.control.twig"
44
+ },
45
+ "3": {
46
+ "name": "punctuation.section.tag.twig"
47
+ }
48
+ },
49
+ "contentName": "source.js.embedded.twig",
50
+ "end": "(\\{%[-~]?)\\s*end\\2\\s*([-~]?%})",
51
+ "endCaptures": {
52
+ "0": {
53
+ "name": "keyword.control.twig"
54
+ }
55
+ },
56
+ "patterns": [
57
+ {
58
+ "include": "source.js"
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "begin": "(\\{%[-~]?)\\s*((?:|include|includehires)css)\\s*([-~]?%})",
64
+ "beginCaptures": {
65
+ "1": {
66
+ "name": "punctuation.section.tag.twig"
67
+ },
68
+ "2": {
69
+ "name": "keyword.control.twig"
70
+ },
71
+ "3": {
72
+ "name": "punctuation.section.tag.twig"
73
+ }
74
+ },
75
+ "contentName": "source.css.embedded.twig",
76
+ "end": "(\\{%[-~]?)\\s*end\\2\\s*([-~]?%})",
77
+ "endCaptures": {
78
+ "0": {
79
+ "name": "keyword.control.twig"
80
+ }
81
+ },
82
+ "patterns": [
83
+ {
84
+ "include": "source.css"
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "begin": "(\\{%[-~]?)\\s*((?:|include|includehires)scss)\\s*([-~]?%})",
90
+ "beginCaptures": {
91
+ "1": {
92
+ "name": "punctuation.section.tag.twig"
93
+ },
94
+ "2": {
95
+ "name": "keyword.control.twig"
96
+ },
97
+ "3": {
98
+ "name": "punctuation.section.tag.twig"
99
+ }
100
+ },
101
+ "contentName": "source.css.scss.embedded.twig",
102
+ "end": "(\\{%[-~]?)\\s*end\\2\\s*([-~]?%})",
103
+ "endCaptures": {
104
+ "0": {
105
+ "name": "keyword.control.twig"
106
+ }
107
+ },
108
+ "patterns": [
109
+ {
110
+ "include": "source.css.scss"
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "begin": "(<)([-.0-:A-Za-z]++)(?=[^>]*></\\2>)",
14
116
  "beginCaptures": {
15
117
  "1": {
16
118
  "name": "punctuation.definition.tag.html"
@@ -233,36 +335,6 @@
233
335
  }
234
336
  ]
235
337
  },
236
- {
237
- "begin": "(?i)(?<=\\{%\\s(?:|include)js\\s%})",
238
- "end": "(?i)(?=\\{%\\send(?:|include)js\\s%})",
239
- "name": "source.js.embedded.twig",
240
- "patterns": [
241
- {
242
- "include": "source.js"
243
- }
244
- ]
245
- },
246
- {
247
- "begin": "(?i)(?<=\\{%\\s(?:|include|includehires)css\\s%})",
248
- "end": "(?i)(?=\\{%\\send(?:|include|includehires)css\\s%})",
249
- "name": "source.css.embedded.twig",
250
- "patterns": [
251
- {
252
- "include": "source.css"
253
- }
254
- ]
255
- },
256
- {
257
- "begin": "(?i)(?<=\\{%\\s(?:|include|includehires)scss\\s%})",
258
- "end": "(?i)(?=\\{%\\send(?:|include|includehires)scss\\s%})",
259
- "name": "source.css.scss.embedded.twig",
260
- "patterns": [
261
- {
262
- "include": "source.css.scss"
263
- }
264
- ]
265
- },
266
338
  {
267
339
  "begin": "(</?)((?i:body|head|html))\\b",
268
340
  "captures": {
@@ -328,7 +400,7 @@
328
400
  ]
329
401
  },
330
402
  {
331
- "begin": "(</?)([0-:A-Za-z]+)",
403
+ "begin": "(</?)([-.0-:A-Za-z]+)",
332
404
  "beginCaptures": {
333
405
  "1": {
334
406
  "name": "punctuation.definition.tag.begin.html"
@@ -377,6 +449,9 @@
377
449
  "repository": {
378
450
  "embedded-code": {
379
451
  "patterns": [
452
+ {
453
+ "include": "#twig-verbatim"
454
+ },
380
455
  {
381
456
  "include": "#ruby"
382
457
  },
@@ -613,6 +688,21 @@
613
688
  },
614
689
  "tag-stuff": {
615
690
  "patterns": [
691
+ {
692
+ "begin": "(=)\\s*(?=[^\"'<=>`\\s])",
693
+ "beginCaptures": {
694
+ "1": {
695
+ "name": "punctuation.separator.key-value.html"
696
+ }
697
+ },
698
+ "contentName": "string.unquoted.html",
699
+ "end": "(?=[>\\s])",
700
+ "patterns": [
701
+ {
702
+ "include": "#embedded-code"
703
+ }
704
+ ]
705
+ },
616
706
  {
617
707
  "include": "#tag-id-attribute"
618
708
  },
@@ -694,13 +784,13 @@
694
784
  ]
695
785
  },
696
786
  "twig-comment-tag": {
697
- "begin": "\\{#-?",
787
+ "begin": "\\{#[-~]?",
698
788
  "beginCaptures": {
699
789
  "0": {
700
790
  "name": "punctuation.definition.comment.begin.twig"
701
791
  }
702
792
  },
703
- "end": "-?#}",
793
+ "end": "[-~]?#}",
704
794
  "endCaptures": {
705
795
  "0": {
706
796
  "name": "punctuation.definition.comment.end.twig"
@@ -720,13 +810,95 @@
720
810
  }
721
811
  ]
722
812
  },
813
+ "twig-embedded-blocks": {
814
+ "patterns": [
815
+ {
816
+ "begin": "(\\{%[-~]?)\\s*(js|includejs|javascript)\\s*([-~]?%})",
817
+ "beginCaptures": {
818
+ "1": {
819
+ "name": "punctuation.section.tag.twig"
820
+ },
821
+ "2": {
822
+ "name": "keyword.control.twig"
823
+ },
824
+ "3": {
825
+ "name": "punctuation.section.tag.twig"
826
+ }
827
+ },
828
+ "contentName": "source.js.embedded.twig",
829
+ "end": "(\\{%[-~]?)\\s*end\\2\\s*([-~]?%})",
830
+ "endCaptures": {
831
+ "0": {
832
+ "name": "keyword.control.twig"
833
+ }
834
+ },
835
+ "patterns": [
836
+ {
837
+ "include": "source.js"
838
+ }
839
+ ]
840
+ },
841
+ {
842
+ "begin": "(\\{%[-~]?)\\s*((?:|include|includehires)css)\\s*([-~]?%})",
843
+ "beginCaptures": {
844
+ "1": {
845
+ "name": "punctuation.section.tag.twig"
846
+ },
847
+ "2": {
848
+ "name": "keyword.control.twig"
849
+ },
850
+ "3": {
851
+ "name": "punctuation.section.tag.twig"
852
+ }
853
+ },
854
+ "contentName": "source.css.embedded.twig",
855
+ "end": "(\\{%[-~]?)\\s*end\\2\\s*([-~]?%})",
856
+ "endCaptures": {
857
+ "0": {
858
+ "name": "keyword.control.twig"
859
+ }
860
+ },
861
+ "patterns": [
862
+ {
863
+ "include": "source.css"
864
+ }
865
+ ]
866
+ },
867
+ {
868
+ "begin": "(\\{%[-~]?)\\s*((?:|include|includehires)scss)\\s*([-~]?%})",
869
+ "beginCaptures": {
870
+ "1": {
871
+ "name": "punctuation.section.tag.twig"
872
+ },
873
+ "2": {
874
+ "name": "keyword.control.twig"
875
+ },
876
+ "3": {
877
+ "name": "punctuation.section.tag.twig"
878
+ }
879
+ },
880
+ "contentName": "source.css.scss.embedded.twig",
881
+ "end": "(\\{%[-~]?)\\s*end\\2\\s*([-~]?%})",
882
+ "endCaptures": {
883
+ "0": {
884
+ "name": "keyword.control.twig"
885
+ }
886
+ },
887
+ "patterns": [
888
+ {
889
+ "include": "source.css.scss"
890
+ }
891
+ ]
892
+ }
893
+ ]
894
+ },
723
895
  "twig-filters": {
724
896
  "captures": {
725
897
  "1": {
726
898
  "name": "support.function.twig"
727
899
  }
728
900
  },
729
- "match": "(?<=[]\"')0-9A-Z_a-z\\x7F-ÿ]\\||\\{%\\sfilter\\s)(abs|capitalize|e(?:scape)?|first|join|(?:json|url)_encode|keys|last|length|lower|nl2br|number_format|raw|reverse|round|sort|striptags|title|trim|upper)(?=[]),:|}\\s]|\\.\\.|\\*\\*)"
901
+ "match": "(?<=[]\"')0-9A-Z_a-z\\x7F-ÿ]\\||\\{%\\sfilter\\s)(default|abs|capitalize|e(?:scape)?|first|join|(?:json|url)_encode|keys|last|length|lower|nl2br|number_format|raw|reverse|round|sort|striptags|title|trim|upper)(?=[]),:|}\\s]|\\.\\.|\\*\\*)"
730
902
  },
731
903
  "twig-filters-ud": {
732
904
  "captures": {
@@ -991,8 +1163,70 @@
991
1163
  }
992
1164
  ]
993
1165
  },
1166
+ "twig-injected-statement": {
1167
+ "begin": "\\{%(?![-~]?\\s*end(?:js|javascript|includejs|css|includecss|includehirescss|scss|includescss|includehiresscss)\\b)[-~]?",
1168
+ "beginCaptures": {
1169
+ "0": {
1170
+ "name": "punctuation.section.tag.twig"
1171
+ }
1172
+ },
1173
+ "end": "[-~]?%}",
1174
+ "endCaptures": {
1175
+ "0": {
1176
+ "name": "punctuation.section.tag.twig"
1177
+ }
1178
+ },
1179
+ "name": "meta.tag.template.block.twig",
1180
+ "patterns": [
1181
+ {
1182
+ "include": "#twig-constants"
1183
+ },
1184
+ {
1185
+ "include": "#twig-keywords"
1186
+ },
1187
+ {
1188
+ "include": "#twig-operators"
1189
+ },
1190
+ {
1191
+ "include": "#twig-functions-warg"
1192
+ },
1193
+ {
1194
+ "include": "#twig-functions"
1195
+ },
1196
+ {
1197
+ "include": "#twig-macros"
1198
+ },
1199
+ {
1200
+ "include": "#twig-filters-warg"
1201
+ },
1202
+ {
1203
+ "include": "#twig-filters"
1204
+ },
1205
+ {
1206
+ "include": "#twig-filters-warg-ud"
1207
+ },
1208
+ {
1209
+ "include": "#twig-filters-ud"
1210
+ },
1211
+ {
1212
+ "include": "#twig-objects"
1213
+ },
1214
+ {
1215
+ "include": "#twig-properties"
1216
+ },
1217
+ {
1218
+ "include": "#twig-strings"
1219
+ },
1220
+ {
1221
+ "include": "#twig-arrays"
1222
+ },
1223
+ {
1224
+ "include": "#twig-hashes"
1225
+ }
1226
+ ]
1227
+ },
994
1228
  "twig-keywords": {
995
- "match": "(?<=\\s)((?:end)?(?:autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim)|as|do|else|elseif|extends|flush|from|ignore missing|import|include|only|types|use|with)(?=\\s)",
1229
+ "match": "\\b(?:(?:end)?(?:apply|autoescape|block|cache|deprecated|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim|with)|as|do|else|elseif|extends|flush|from|import|include|only|types|use)\\b",
996
1230
  "name": "keyword.control.twig"
997
1231
  },
998
1232
  "twig-macros": {
@@ -1073,6 +1307,10 @@
1073
1307
  },
1074
1308
  "twig-operators": {
1075
1309
  "patterns": [
1310
+ {
1311
+ "match": "\\?\\?|\\?:|\\?\\.|<=>|=>|===|!==",
1312
+ "name": "keyword.operator.twig"
1313
+ },
1076
1314
  {
1077
1315
  "captures": {
1078
1316
  "1": {
@@ -1132,13 +1370,13 @@
1132
1370
  ]
1133
1371
  },
1134
1372
  "twig-print-tag": {
1135
- "begin": "\\{\\{-?",
1373
+ "begin": "\\{\\{[-~]?",
1136
1374
  "beginCaptures": {
1137
1375
  "0": {
1138
1376
  "name": "punctuation.section.tag.twig"
1139
1377
  }
1140
1378
  },
1141
- "end": "-?}}",
1379
+ "end": "[-~]?}}",
1142
1380
  "endCaptures": {
1143
1381
  "0": {
1144
1382
  "name": "punctuation.section.tag.twig"
@@ -1297,13 +1535,13 @@
1297
1535
  ]
1298
1536
  },
1299
1537
  "twig-statement-tag": {
1300
- "begin": "\\{%-?",
1538
+ "begin": "\\{%[-~]?",
1301
1539
  "beginCaptures": {
1302
1540
  "0": {
1303
1541
  "name": "punctuation.section.tag.twig"
1304
1542
  }
1305
1543
  },
1306
- "end": "-?%}",
1544
+ "end": "[-~]?%}",
1307
1545
  "endCaptures": {
1308
1546
  "0": {
1309
1547
  "name": "punctuation.section.tag.twig"
@@ -1361,39 +1599,51 @@
1361
1599
  "twig-strings": {
1362
1600
  "patterns": [
1363
1601
  {
1364
- "begin": "(?:(?<!\\\\)|(?<=\\\\\\\\))'",
1602
+ "begin": "'",
1365
1603
  "beginCaptures": {
1366
1604
  "0": {
1367
1605
  "name": "punctuation.definition.string.begin.twig"
1368
1606
  }
1369
1607
  },
1370
- "end": "(?:(?<!\\\\)|(?<=\\\\\\\\))'",
1608
+ "end": "'",
1371
1609
  "endCaptures": {
1372
1610
  "0": {
1373
1611
  "name": "punctuation.definition.string.end.twig"
1374
1612
  }
1375
1613
  },
1376
- "name": "string.quoted.single.twig"
1614
+ "name": "string.quoted.single.twig",
1615
+ "patterns": [
1616
+ {
1617
+ "match": "\\\\.",
1618
+ "name": "constant.character.escape.twig"
1619
+ }
1620
+ ]
1377
1621
  },
1378
1622
  {
1379
- "begin": "(?:(?<!\\\\)|(?<=\\\\\\\\))\"",
1623
+ "begin": "\"",
1380
1624
  "beginCaptures": {
1381
1625
  "0": {
1382
1626
  "name": "punctuation.definition.string.begin.twig"
1383
1627
  }
1384
1628
  },
1385
- "end": "(?:(?<!\\\\)|(?<=\\\\\\\\))\"",
1629
+ "end": "\"",
1386
1630
  "endCaptures": {
1387
1631
  "0": {
1388
1632
  "name": "punctuation.definition.string.end.twig"
1389
1633
  }
1390
1634
  },
1391
- "name": "string.quoted.double.twig"
1635
+ "name": "string.quoted.double.twig",
1636
+ "patterns": [
1637
+ {
1638
+ "match": "\\\\.",
1639
+ "name": "constant.character.escape.twig"
1640
+ }
1641
+ ]
1392
1642
  }
1393
1643
  ]
1394
1644
  },
1395
1645
  "twig-verbatim": {
1396
- "begin": "(\\{%-?)\\s*(verbatim)\\s*(-?%})",
1646
+ "begin": "(\\{%[-~]?)\\s*(verbatim)\\s*([-~]?%})",
1397
1647
  "beginCaptures": {
1398
1648
  "1": {
1399
1649
  "name": "punctuation.definition.tag.twig"
@@ -1406,7 +1656,7 @@
1406
1656
  }
1407
1657
  },
1408
1658
  "contentName": "string.unquoted.verbatim.twig",
1409
- "end": "(\\{%-?)\\s*(endverbatim)\\s*(-?%})",
1659
+ "end": "(\\{%[-~]?)\\s*(endverbatim)\\s*([-~]?%})",
1410
1660
  "endCaptures": {
1411
1661
  "1": {
1412
1662
  "name": "punctuation.definition.tag.twig"
package/index.js CHANGED
@@ -4596,11 +4596,11 @@ export const grammars = [
4596
4596
  sourceApi: 'https://api.github.com/repos/stardog-union/stardog-vsc/contents/stardog-rdf-grammars/syntaxes/turtle.tmLanguage.json?ref=3f1364b08bdbf4b4d77f123682db7d2b708b2f6e',
4597
4597
  },
4598
4598
  {
4599
- byteSize: 20659,
4599
+ byteSize: 23963,
4600
4600
  displayName: 'Twig',
4601
4601
  embedded: [
4602
- 'css',
4603
4602
  'javascript',
4603
+ 'css',
4604
4604
  'scss',
4605
4605
  'php',
4606
4606
  'python',
@@ -4613,15 +4613,15 @@ export const grammars = [
4613
4613
  url: 'https://github.com/sponsors/mblode',
4614
4614
  },
4615
4615
  ],
4616
- hash: 'iYUAYAHc_ZeEM82sba06S9PQ2YmXSivgEg7AzwtllVU',
4617
- lastUpdate: '2026-06-12T06:29:41Z',
4616
+ hash: 'Aqgs4QkLBjiQWXjwblh057r9aoHMROoMV9ZJdw0y-ds',
4617
+ lastUpdate: '2026-09-07T22:27:57Z',
4618
4618
  license: 'MIT',
4619
4619
  licenseUrl: 'https://raw.githubusercontent.com/mblode/vscode-twig-language-2/master/LICENSE.md',
4620
4620
  name: 'twig',
4621
4621
  scopeName: 'text.html.twig',
4622
- sha: 'b4f2809d6f75850ee7350b03f8b1d439d741ebf5',
4623
- source: 'https://github.com/mblode/vscode-twig-language-2/blob/b4f2809d6f75850ee7350b03f8b1d439d741ebf5/src/syntaxes/twig.tmLanguage',
4624
- sourceApi: 'https://api.github.com/repos/mblode/vscode-twig-language-2/contents/src/syntaxes/twig.tmLanguage?ref=b4f2809d6f75850ee7350b03f8b1d439d741ebf5',
4622
+ sha: '73f4e2729ce5f490e294dd158c82c22a35cf96de',
4623
+ source: 'https://github.com/mblode/vscode-twig-language-2/blob/73f4e2729ce5f490e294dd158c82c22a35cf96de/src/syntaxes/twig.tmLanguage',
4624
+ sourceApi: 'https://api.github.com/repos/mblode/vscode-twig-language-2/contents/src/syntaxes/twig.tmLanguage?ref=73f4e2729ce5f490e294dd158c82c22a35cf96de',
4625
4625
  },
4626
4626
  {
4627
4627
  aliases: [
@@ -4733,15 +4733,15 @@ export const grammars = [
4733
4733
  ],
4734
4734
  funding: [
4735
4735
  ],
4736
- hash: 'WDSimVIgDFZbEUTdtpYkzf27C3676d4xbpuNO5n9pLs',
4737
- lastUpdate: '2026-09-04T07:26:36Z',
4736
+ hash: 'O-DMrddkD-0qqYKqVzxQZKi2yGXu_L_V1Ao4qADAXCU',
4737
+ lastUpdate: '2026-09-07T09:50:49Z',
4738
4738
  license: 'Apache-2.0',
4739
4739
  licenseUrl: 'https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/LICENSE',
4740
4740
  name: 'typst',
4741
4741
  scopeName: 'source.typst',
4742
- sha: '766f1ec0edcfef620c70baac7fd2790a01baa324',
4743
- source: 'https://github.com/Myriad-Dreamin/tinymist/blob/766f1ec0edcfef620c70baac7fd2790a01baa324/editors/vscode/package.json',
4744
- sourceApi: 'https://api.github.com/repos/Myriad-Dreamin/tinymist/contents/editors/vscode/package.json?ref=766f1ec0edcfef620c70baac7fd2790a01baa324',
4742
+ sha: '3040faef70f5598783e3aab779f961ba97cf7cfa',
4743
+ source: 'https://github.com/Myriad-Dreamin/tinymist/blob/3040faef70f5598783e3aab779f961ba97cf7cfa/editors/vscode/package.json',
4744
+ sourceApi: 'https://api.github.com/repos/Myriad-Dreamin/tinymist/contents/editors/vscode/package.json?ref=3040faef70f5598783e3aab779f961ba97cf7cfa',
4745
4745
  },
4746
4746
  {
4747
4747
  byteSize: 12858,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.32.13",
4
+ "version": "1.32.15",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",