tm-grammars 1.21.11 → 1.22.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/NOTICE CHANGED
@@ -2191,14 +2191,14 @@ SPDX: MIT
2191
2191
  MIT License
2192
2192
 
2193
2193
  Copyright (c) 2015-2020 Stephen Gennard
2194
- Copyright (c) 2021-2023 Stephen Paul Gennard
2194
+ Copyright (c) 2021-2025 Stephen Paul Gennard
2195
2195
 
2196
2196
  All rights reserved.
2197
2197
 
2198
2198
  Permission is hereby granted, free of charge, to any person obtaining a copy
2199
2199
  of this software and associated documentation files (the "Software"), to deal
2200
2200
  in the Software without restriction, including without limitation the rights
2201
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2201
+ to use, copy, modify, merge, publish, distribute, sub-license, and/or sell
2202
2202
  copies of the Software, and to permit persons to whom the Software is
2203
2203
  furnished to do so, subject to the following conditions:
2204
2204
 
@@ -2207,7 +2207,7 @@ copies or substantial portions of the Software.
2207
2207
 
2208
2208
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2209
2209
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2210
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2210
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
2211
2211
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2212
2212
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2213
2213
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
@@ -6410,6 +6410,213 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6410
6410
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6411
6411
  SOFTWARE.
6412
6412
 
6413
+ =========================================================================================================
6414
+ Files: polar.json
6415
+ License: https://raw.githubusercontent.com/osohq/polar-grammar/main/LICENSE
6416
+ SPDX: Apache-2.0
6417
+ ---------------------------------------------------------------------------------------------------------
6418
+ Apache License
6419
+ Version 2.0, January 2004
6420
+ http://www.apache.org/licenses/
6421
+
6422
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6423
+
6424
+ 1. Definitions.
6425
+
6426
+ "License" shall mean the terms and conditions for use, reproduction,
6427
+ and distribution as defined by Sections 1 through 9 of this document.
6428
+
6429
+ "Licensor" shall mean the copyright owner or entity authorized by
6430
+ the copyright owner that is granting the License.
6431
+
6432
+ "Legal Entity" shall mean the union of the acting entity and all
6433
+ other entities that control, are controlled by, or are under common
6434
+ control with that entity. For the purposes of this definition,
6435
+ "control" means (i) the power, direct or indirect, to cause the
6436
+ direction or management of such entity, whether by contract or
6437
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
6438
+ outstanding shares, or (iii) beneficial ownership of such entity.
6439
+
6440
+ "You" (or "Your") shall mean an individual or Legal Entity
6441
+ exercising permissions granted by this License.
6442
+
6443
+ "Source" form shall mean the preferred form for making modifications,
6444
+ including but not limited to software source code, documentation
6445
+ source, and configuration files.
6446
+
6447
+ "Object" form shall mean any form resulting from mechanical
6448
+ transformation or translation of a Source form, including but
6449
+ not limited to compiled object code, generated documentation,
6450
+ and conversions to other media types.
6451
+
6452
+ "Work" shall mean the work of authorship, whether in Source or
6453
+ Object form, made available under the License, as indicated by a
6454
+ copyright notice that is included in or attached to the work
6455
+ (an example is provided in the Appendix below).
6456
+
6457
+ "Derivative Works" shall mean any work, whether in Source or Object
6458
+ form, that is based on (or derived from) the Work and for which the
6459
+ editorial revisions, annotations, elaborations, or other modifications
6460
+ represent, as a whole, an original work of authorship. For the purposes
6461
+ of this License, Derivative Works shall not include works that remain
6462
+ separable from, or merely link (or bind by name) to the interfaces of,
6463
+ the Work and Derivative Works thereof.
6464
+
6465
+ "Contribution" shall mean any work of authorship, including
6466
+ the original version of the Work and any modifications or additions
6467
+ to that Work or Derivative Works thereof, that is intentionally
6468
+ submitted to Licensor for inclusion in the Work by the copyright owner
6469
+ or by an individual or Legal Entity authorized to submit on behalf of
6470
+ the copyright owner. For the purposes of this definition, "submitted"
6471
+ means any form of electronic, verbal, or written communication sent
6472
+ to the Licensor or its representatives, including but not limited to
6473
+ communication on electronic mailing lists, source code control systems,
6474
+ and issue tracking systems that are managed by, or on behalf of, the
6475
+ Licensor for the purpose of discussing and improving the Work, but
6476
+ excluding communication that is conspicuously marked or otherwise
6477
+ designated in writing by the copyright owner as "Not a Contribution."
6478
+
6479
+ "Contributor" shall mean Licensor and any individual or Legal Entity
6480
+ on behalf of whom a Contribution has been received by Licensor and
6481
+ subsequently incorporated within the Work.
6482
+
6483
+ 2. Grant of Copyright License. Subject to the terms and conditions of
6484
+ this License, each Contributor hereby grants to You a perpetual,
6485
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
6486
+ copyright license to reproduce, prepare Derivative Works of,
6487
+ publicly display, publicly perform, sublicense, and distribute the
6488
+ Work and such Derivative Works in Source or Object form.
6489
+
6490
+ 3. Grant of Patent License. Subject to the terms and conditions of
6491
+ this License, each Contributor hereby grants to You a perpetual,
6492
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
6493
+ (except as stated in this section) patent license to make, have made,
6494
+ use, offer to sell, sell, import, and otherwise transfer the Work,
6495
+ where such license applies only to those patent claims licensable
6496
+ by such Contributor that are necessarily infringed by their
6497
+ Contribution(s) alone or by combination of their Contribution(s)
6498
+ with the Work to which such Contribution(s) was submitted. If You
6499
+ institute patent litigation against any entity (including a
6500
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
6501
+ or a Contribution incorporated within the Work constitutes direct
6502
+ or contributory patent infringement, then any patent licenses
6503
+ granted to You under this License for that Work shall terminate
6504
+ as of the date such litigation is filed.
6505
+
6506
+ 4. Redistribution. You may reproduce and distribute copies of the
6507
+ Work or Derivative Works thereof in any medium, with or without
6508
+ modifications, and in Source or Object form, provided that You
6509
+ meet the following conditions:
6510
+
6511
+ (a) You must give any other recipients of the Work or
6512
+ Derivative Works a copy of this License; and
6513
+
6514
+ (b) You must cause any modified files to carry prominent notices
6515
+ stating that You changed the files; and
6516
+
6517
+ (c) You must retain, in the Source form of any Derivative Works
6518
+ that You distribute, all copyright, patent, trademark, and
6519
+ attribution notices from the Source form of the Work,
6520
+ excluding those notices that do not pertain to any part of
6521
+ the Derivative Works; and
6522
+
6523
+ (d) If the Work includes a "NOTICE" text file as part of its
6524
+ distribution, then any Derivative Works that You distribute must
6525
+ include a readable copy of the attribution notices contained
6526
+ within such NOTICE file, excluding those notices that do not
6527
+ pertain to any part of the Derivative Works, in at least one
6528
+ of the following places: within a NOTICE text file distributed
6529
+ as part of the Derivative Works; within the Source form or
6530
+ documentation, if provided along with the Derivative Works; or,
6531
+ within a display generated by the Derivative Works, if and
6532
+ wherever such third-party notices normally appear. The contents
6533
+ of the NOTICE file are for informational purposes only and
6534
+ do not modify the License. You may add Your own attribution
6535
+ notices within Derivative Works that You distribute, alongside
6536
+ or as an addendum to the NOTICE text from the Work, provided
6537
+ that such additional attribution notices cannot be construed
6538
+ as modifying the License.
6539
+
6540
+ You may add Your own copyright statement to Your modifications and
6541
+ may provide additional or different license terms and conditions
6542
+ for use, reproduction, or distribution of Your modifications, or
6543
+ for any such Derivative Works as a whole, provided Your use,
6544
+ reproduction, and distribution of the Work otherwise complies with
6545
+ the conditions stated in this License.
6546
+
6547
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
6548
+ any Contribution intentionally submitted for inclusion in the Work
6549
+ by You to the Licensor shall be under the terms and conditions of
6550
+ this License, without any additional terms or conditions.
6551
+ Notwithstanding the above, nothing herein shall supersede or modify
6552
+ the terms of any separate license agreement you may have executed
6553
+ with Licensor regarding such Contributions.
6554
+
6555
+ 6. Trademarks. This License does not grant permission to use the trade
6556
+ names, trademarks, service marks, or product names of the Licensor,
6557
+ except as required for reasonable and customary use in describing the
6558
+ origin of the Work and reproducing the content of the NOTICE file.
6559
+
6560
+ 7. Disclaimer of Warranty. Unless required by applicable law or
6561
+ agreed to in writing, Licensor provides the Work (and each
6562
+ Contributor provides its Contributions) on an "AS IS" BASIS,
6563
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
6564
+ implied, including, without limitation, any warranties or conditions
6565
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
6566
+ PARTICULAR PURPOSE. You are solely responsible for determining the
6567
+ appropriateness of using or redistributing the Work and assume any
6568
+ risks associated with Your exercise of permissions under this License.
6569
+
6570
+ 8. Limitation of Liability. In no event and under no legal theory,
6571
+ whether in tort (including negligence), contract, or otherwise,
6572
+ unless required by applicable law (such as deliberate and grossly
6573
+ negligent acts) or agreed to in writing, shall any Contributor be
6574
+ liable to You for damages, including any direct, indirect, special,
6575
+ incidental, or consequential damages of any character arising as a
6576
+ result of this License or out of the use or inability to use the
6577
+ Work (including but not limited to damages for loss of goodwill,
6578
+ work stoppage, computer failure or malfunction, or any and all
6579
+ other commercial damages or losses), even if such Contributor
6580
+ has been advised of the possibility of such damages.
6581
+
6582
+ 9. Accepting Warranty or Additional Liability. While redistributing
6583
+ the Work or Derivative Works thereof, You may choose to offer,
6584
+ and charge a fee for, acceptance of support, warranty, indemnity,
6585
+ or other liability obligations and/or rights consistent with this
6586
+ License. However, in accepting such obligations, You may act only
6587
+ on Your own behalf and on Your sole responsibility, not on behalf
6588
+ of any other Contributor, and only if You agree to indemnify,
6589
+ defend, and hold each Contributor harmless for any liability
6590
+ incurred by, or claims asserted against, such Contributor by reason
6591
+ of your accepting any such warranty or additional liability.
6592
+
6593
+ END OF TERMS AND CONDITIONS
6594
+
6595
+ APPENDIX: How to apply the Apache License to your work.
6596
+
6597
+ To apply the Apache License to your work, attach the following
6598
+ boilerplate notice, with the fields enclosed by brackets "[]"
6599
+ replaced with your own identifying information. (Don't include
6600
+ the brackets!) The text should be enclosed in the appropriate
6601
+ comment syntax for the file format. We also recommend that a
6602
+ file or class name and description of purpose be included on the
6603
+ same "printed page" as the copyright notice for easier
6604
+ identification within third-party archives.
6605
+
6606
+ Copyright [yyyy] [name of copyright owner]
6607
+
6608
+ Licensed under the Apache License, Version 2.0 (the "License");
6609
+ you may not use this file except in compliance with the License.
6610
+ You may obtain a copy of the License at
6611
+
6612
+ http://www.apache.org/licenses/LICENSE-2.0
6613
+
6614
+ Unless required by applicable law or agreed to in writing, software
6615
+ distributed under the License is distributed on an "AS IS" BASIS,
6616
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
6617
+ See the License for the specific language governing permissions and
6618
+ limitations under the License.
6619
+
6413
6620
  =========================================================================================================
6414
6621
  Files: postcss.json, vue-html.json
6415
6622
  License: https://raw.githubusercontent.com/vuejs/vetur/master/LICENSE
package/README.md CHANGED
@@ -22,7 +22,7 @@ import { grammars } from 'tm-grammars'
22
22
  | ---- | ----- | ------ | ------- | ------- | --------- |
23
23
  | `abap` | | [pvl/abap.tmbundle](https://github.com/pvl/abap.tmbundle/blob/92e17e62a9449d2a6f87bfb30b4f920986c24018/Syntaxes/ABAP.tmLanguage) | | | 15.44 kB |
24
24
  | `actionscript-3` | | [BowlerHatLLC/vscode-as3mxml](https://github.com/BowlerHatLLC/vscode-as3mxml/blob/77075cd9a439ecd87815cecb1f1c2bb1ff44a2e5/distribution/src/assembly/syntaxes/AS3.tmLanguage) | [Apache-2.0](https://raw.githubusercontent.com/BowlerHatLLC/vscode-as3mxml/main/LICENSE) | | 13.64 kB |
25
- | `ada` | | [AdaCore/ada_language_server](https://github.com/AdaCore/ada_language_server/blob/75c0d0c22b3f3dbf559946331c7aca6fc5b84065/integration/vscode/ada/advanced/ada.tmLanguage.json) | [GPL-3.0](https://raw.githubusercontent.com/AdaCore/ada_language_server/master/LICENSE) | | 45.71 kB |
25
+ | `ada` | | [AdaCore/ada_language_server](https://github.com/AdaCore/ada_language_server/blob/9329f709cf1aef897bfca679c54e0c3d17f2205f/integration/vscode/ada/advanced/ada.tmLanguage.json) | [GPL-3.0](https://raw.githubusercontent.com/AdaCore/ada_language_server/master/LICENSE) | | 45.71 kB |
26
26
  | `angular-html` | | [onivim/vscode-exthost](https://github.com/onivim/vscode-exthost/blob/cfc2a2212de9ea10943af58ebd1817a5ad196463/extensions/html/syntaxes/html-derivative.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/onivim/vscode-exthost/master/LICENSE.txt) | `html` `angular-expression` `angular-let-declaration` `angular-template` `angular-template-blocks` | 772.00 B |
27
27
  | `angular-ts` | | [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) | `angular-expression` `angular-inline-style` `angular-inline-template` `angular-let-declaration` `angular-template` `angular-template-blocks` | 165.40 kB |
28
28
  | `apache` | | [colinta/ApacheConf.tmLanguage](https://github.com/colinta/ApacheConf.tmLanguage/blob/1fdb47b6fe2cea20cfedbc522bff3ff1ed656c07/ApacheConf.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/colinta/ApacheConf.tmLanguage/main/LICENSE) | | 12.57 kB |
@@ -129,7 +129,7 @@ import { grammars } from 'tm-grammars'
129
129
  | `lean` | `lean4` | [leanprover/vscode-lean4](https://github.com/leanprover/vscode-lean4/blob/2255bc20c9d28d868d04fb91428652a95cc87a92/vscode-lean4/syntaxes/lean4.json) | [Apache-2.0](https://raw.githubusercontent.com/leanprover/vscode-lean4/master/LICENSE) | | 3.92 kB |
130
130
  | `less` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/03dc55030b3b2b5c4779d4ac1e2e46cd1f5a6b7c/extensions/less/syntaxes/less.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 96.43 kB |
131
131
  | `liquid` | | [Shopify/liquid-tm-grammar](https://github.com/Shopify/liquid-tm-grammar/blob/aa58eab9a09a764b10864aa8d1d48f1d5f3aac2e/grammars/liquid.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/Shopify/liquid-tm-grammar/main/LICENSE.md) | `html` `css` `json` `javascript` | 16.13 kB |
132
- | `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.50 kB |
132
+ | `log` | | [emilast/vscode-logfile-highlighter](https://github.com/emilast/vscode-logfile-highlighter/blob/fc571bd87b33bb69d3bdc0052f94face723ee4f7/syntaxes/log.tmLanguage) | [MIT](https://raw.githubusercontent.com/emilast/vscode-logfile-highlighter/master/LICENSE) | | 2.61 kB |
133
133
  | `logo` | | [textmate/logo.tmbundle](https://github.com/textmate/logo.tmbundle/blob/3205e987ed2a2aa11accdd55a7d094832441f89c/Syntaxes/Logo.tmLanguage) | | | 3.02 kB |
134
134
  | `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.24 kB |
135
135
  | `luau` | | [JohnnyMorganz/Luau.tmLanguage](https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/050f326bc904342c9344b6e1ece96b9143b57086/Luau.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md) | | 11.93 kB |
@@ -157,6 +157,7 @@ import { grammars } from 'tm-grammars'
157
157
  | `php` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/06401b39b18c5e7d1c021a619fa387d654033606/extensions/php/syntaxes/php.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html` `xml` `sql` `javascript` `json` `css` | 103.66 kB |
158
158
  | `plsql` | | [zabel-xyz/plsql-language](https://github.com/zabel-xyz/plsql-language/blob/256a6b8f04f2bdc5e60ce921646a5068957078d7/syntaxes/plsql.tmLanguage) | [MIT](https://raw.githubusercontent.com/zabel-xyz/plsql-language/master/LICENSE) | | 7.99 kB |
159
159
  | `po` | `pot` `potx` | [textmate/gettext.tmbundle](https://github.com/textmate/gettext.tmbundle/blob/08bb69558d82ada8d4f36b8869f871ce69014749/Syntaxes/Gettext.tmLanguage) | | | 3.09 kB |
160
+ | `polar` | | [osohq/polar-grammar](https://github.com/osohq/polar-grammar/blob/331521c2eca6acf89a87e7360d89ab715cc1daff/syntaxes/polar.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/osohq/polar-grammar/main/LICENSE) | | 4.25 kB |
160
161
  | `postcss` | | [vuejs/vetur](https://github.com/vuejs/vetur/blob/8ccae3ba50b65837d4cd4acc71a3b84cd3bee27c/syntaxes/vue-postcss.json) | [MIT](https://raw.githubusercontent.com/vuejs/vetur/master/LICENSE) | | 6.11 kB |
161
162
  | `powerquery` | | [microsoft/powerquery-language](https://github.com/microsoft/powerquery-language/blob/eed9810b5f78dfb63319bdbce80bca50419dfa50/PowerQuery.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/powerquery-language/master/LICENSE) | | 5.51 kB |
162
163
  | `powershell` | `ps` `ps1` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/9efc116de0ea4998616ebe3b17ee5b92f7dc1161/extensions/powershell/syntaxes/powershell.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 21.11 kB |
package/grammars/ada.json CHANGED
@@ -2610,7 +2610,7 @@
2610
2610
  "name": "keyword.ada"
2611
2611
  }
2612
2612
  },
2613
- "end": "(?=(;|\\))",
2613
+ "end": "(?=(;|\\)))",
2614
2614
  "patterns": [
2615
2615
  {
2616
2616
  "include": "#expression"
package/grammars/log.json CHANGED
@@ -66,7 +66,7 @@
66
66
  "name": "string.regexp, strong log.error"
67
67
  },
68
68
  {
69
- "match": "\\b\\d{4}-\\d{2}-\\d{2}(T|\\b)",
69
+ "match": "\\b\\d{4}-\\d{2}-\\d{2}(?=T|\\b)",
70
70
  "name": "comment log.date"
71
71
  },
72
72
  {
@@ -74,7 +74,11 @@
74
74
  "name": "comment log.date"
75
75
  },
76
76
  {
77
- "match": "\\d{1,2}:\\d{2}(:\\d{2}([.,]\\d{1,})?)?(Z| ?[+-]\\d{1,2}:\\d{2})?\\b",
77
+ "match": "T?\\d{1,2}:\\d{2}(:\\d{2}([.,]\\d{1,})?)?(Z| ?[+-]\\d{1,2}:\\d{2})?\\b",
78
+ "name": "comment log.date"
79
+ },
80
+ {
81
+ "match": "T\\d{2}\\d{2}(\\d{2}([.,]\\d{1,})?)?(Z| ?[+-]\\d{1,2}\\d{2})?\\b",
78
82
  "name": "comment log.date"
79
83
  },
80
84
  {
@@ -0,0 +1,375 @@
1
+ {
2
+ "displayName": "Polar",
3
+ "name": "polar",
4
+ "patterns": [
5
+ {
6
+ "include": "#comment"
7
+ },
8
+ {
9
+ "include": "#rule"
10
+ },
11
+ {
12
+ "include": "#rule-type"
13
+ },
14
+ {
15
+ "include": "#inline-query"
16
+ },
17
+ {
18
+ "include": "#resource-block"
19
+ },
20
+ {
21
+ "include": "#test-block"
22
+ },
23
+ {
24
+ "include": "#fixture"
25
+ }
26
+ ],
27
+ "repository": {
28
+ "boolean": {
29
+ "match": "\\b(true|false)\\b",
30
+ "name": "constant.language.boolean"
31
+ },
32
+ "comment": {
33
+ "match": "#.*",
34
+ "name": "comment.line.number-sign"
35
+ },
36
+ "fixture": {
37
+ "patterns": [
38
+ {
39
+ "match": "\\bfixture\\b",
40
+ "name": "keyword.control"
41
+ },
42
+ {
43
+ "begin": "\\btest\\b",
44
+ "beginCaptures": {
45
+ "0": {
46
+ "name": "keyword.control"
47
+ }
48
+ },
49
+ "end": "\\bfixture\\b",
50
+ "endCaptures": {
51
+ "0": {
52
+ "name": "keyword.control"
53
+ }
54
+ }
55
+ }
56
+ ]
57
+ },
58
+ "inline-query": {
59
+ "begin": "\\?=",
60
+ "beginCaptures": {
61
+ "0": {
62
+ "name": "keyword.control"
63
+ }
64
+ },
65
+ "end": ";",
66
+ "name": "meta.inline-query",
67
+ "patterns": [
68
+ {
69
+ "include": "#term"
70
+ }
71
+ ]
72
+ },
73
+ "keyword": {
74
+ "patterns": [
75
+ {
76
+ "match": "\\b(cut|or|debug|print|in|forall|if|and|of|not|matches|type|on|global)\\b",
77
+ "name": "constant.character"
78
+ }
79
+ ]
80
+ },
81
+ "number": {
82
+ "patterns": [
83
+ {
84
+ "match": "\\b[+-]?\\d+(?:(\\.)\\d+(?:e[+-]?\\d+)?|(?:e[+-]?\\d+))\\b",
85
+ "name": "constant.numeric.float"
86
+ },
87
+ {
88
+ "match": "\\b(\\+|-)[\\d]+\\b",
89
+ "name": "constant.numeric.integer"
90
+ },
91
+ {
92
+ "match": "\\b[\\d]+\\b",
93
+ "name": "constant.numeric.natural"
94
+ }
95
+ ]
96
+ },
97
+ "object-literal": {
98
+ "begin": "([a-zA-Z_]\\w*(?:::\\w+)*)\\s*\\{",
99
+ "beginCaptures": {
100
+ "1": {
101
+ "name": "entity.name.type.resource"
102
+ }
103
+ },
104
+ "end": "\\}",
105
+ "name": "constant.other.object-literal",
106
+ "patterns": [
107
+ {
108
+ "include": "#string"
109
+ },
110
+ {
111
+ "include": "#number"
112
+ },
113
+ {
114
+ "include": "#boolean"
115
+ }
116
+ ]
117
+ },
118
+ "operator": {
119
+ "captures": {
120
+ "1": {
121
+ "name": "keyword.control"
122
+ }
123
+ },
124
+ "match": "(\\+|-|\\*|\\/|<|>|=|!)"
125
+ },
126
+ "resource-block": {
127
+ "begin": "(?<resourceType>[a-zA-Z_]\\w*(?:::\\w+)*){0}((?:(resource|actor)\\s+(\\g<resourceType>)(?:\\s+(extends)\\s+(\\g<resourceType>(?:\\s*,\\s*\\g<resourceType>)*)\\s*,?\\s*)?)|(global))\\s*{",
128
+ "beginCaptures": {
129
+ "3": {
130
+ "comment": "actor|resource",
131
+ "name": "keyword.control"
132
+ },
133
+ "4": {
134
+ "comment": "declared resource type",
135
+ "name": "entity.name.type"
136
+ },
137
+ "5": {
138
+ "comment": "extends",
139
+ "name": "keyword.control"
140
+ },
141
+ "6": {
142
+ "comment": "list of extended resources",
143
+ "patterns": [
144
+ {
145
+ "match": "([a-zA-Z_]\\w*(?:::\\w+)*)",
146
+ "name": "entity.name.type"
147
+ }
148
+ ]
149
+ },
150
+ "7": {
151
+ "comment": "global",
152
+ "name": "keyword.control"
153
+ }
154
+ },
155
+ "end": "\\}",
156
+ "name": "meta.resource-block",
157
+ "patterns": [
158
+ {
159
+ "match": ";",
160
+ "name": "punctuation.separator.sequence.declarations"
161
+ },
162
+ {
163
+ "begin": "\\{",
164
+ "end": "\\}",
165
+ "name": "meta.relation-declaration",
166
+ "patterns": [
167
+ {
168
+ "include": "#specializer"
169
+ },
170
+ {
171
+ "include": "#comment"
172
+ },
173
+ {
174
+ "match": ",",
175
+ "name": "punctuation.separator.sequence.dict"
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "include": "#term"
181
+ }
182
+ ]
183
+ },
184
+ "rule": {
185
+ "name": "meta.rule",
186
+ "patterns": [
187
+ {
188
+ "include": "#rule-functor"
189
+ },
190
+ {
191
+ "begin": "\\bif\\b",
192
+ "beginCaptures": {
193
+ "0": {
194
+ "name": "keyword.control.if"
195
+ }
196
+ },
197
+ "end": ";",
198
+ "patterns": [
199
+ {
200
+ "include": "#term"
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "match": ";"
206
+ }
207
+ ]
208
+ },
209
+ "rule-functor": {
210
+ "begin": "([a-zA-Z_]\\w*(?:::\\w+)*)\\s*\\(",
211
+ "beginCaptures": {
212
+ "1": {
213
+ "name": "support.function.rule"
214
+ }
215
+ },
216
+ "end": "\\)",
217
+ "patterns": [
218
+ {
219
+ "include": "#specializer"
220
+ },
221
+ {
222
+ "match": ",",
223
+ "name": "punctuation.separator.sequence.list"
224
+ },
225
+ {
226
+ "include": "#term"
227
+ }
228
+ ]
229
+ },
230
+ "rule-type": {
231
+ "begin": "\\btype\\b",
232
+ "beginCaptures": {
233
+ "0": {
234
+ "name": "keyword.other.type-decl"
235
+ }
236
+ },
237
+ "end": ";",
238
+ "name": "meta.rule-type",
239
+ "patterns": [
240
+ {
241
+ "include": "#rule-functor"
242
+ }
243
+ ]
244
+ },
245
+ "specializer": {
246
+ "captures": {
247
+ "1": {
248
+ "name": "entity.name.type.resource"
249
+ }
250
+ },
251
+ "match": "[a-zA-Z_]\\w*(?:::\\w+)*\\s*:\\s*([a-zA-Z_]\\w*(?:::\\w+)*)"
252
+ },
253
+ "string": {
254
+ "begin": "\"",
255
+ "end": "\"",
256
+ "name": "string.quoted.double",
257
+ "patterns": [
258
+ {
259
+ "match": "\\\\.",
260
+ "name": "constant.character.escape"
261
+ }
262
+ ]
263
+ },
264
+ "term": {
265
+ "patterns": [
266
+ {
267
+ "include": "#comment"
268
+ },
269
+ {
270
+ "include": "#string"
271
+ },
272
+ {
273
+ "include": "#number"
274
+ },
275
+ {
276
+ "include": "#keyword"
277
+ },
278
+ {
279
+ "include": "#operator"
280
+ },
281
+ {
282
+ "include": "#boolean"
283
+ },
284
+ {
285
+ "include": "#object-literal"
286
+ },
287
+ {
288
+ "begin": "\\[",
289
+ "end": "\\]",
290
+ "name": "meta.bracket.list",
291
+ "patterns": [
292
+ {
293
+ "include": "#term"
294
+ },
295
+ {
296
+ "match": ",",
297
+ "name": "punctuation.separator.sequence.list"
298
+ }
299
+ ]
300
+ },
301
+ {
302
+ "begin": "\\{",
303
+ "end": "\\}",
304
+ "name": "meta.bracket.dict",
305
+ "patterns": [
306
+ {
307
+ "include": "#term"
308
+ },
309
+ {
310
+ "match": ",",
311
+ "name": "punctuation.separator.sequence.dict"
312
+ }
313
+ ]
314
+ },
315
+ {
316
+ "begin": "\\(",
317
+ "end": "\\)",
318
+ "name": "meta.parens",
319
+ "patterns": [
320
+ {
321
+ "include": "#term"
322
+ }
323
+ ]
324
+ }
325
+ ]
326
+ },
327
+ "test-block": {
328
+ "begin": "(test)\\s+(\"[^\"]*\")\\s*\\{",
329
+ "beginCaptures": {
330
+ "1": {
331
+ "name": "keyword.control"
332
+ },
333
+ "2": {
334
+ "name": "string.quoted.double"
335
+ }
336
+ },
337
+ "end": "\\}",
338
+ "name": "meta.test-block",
339
+ "patterns": [
340
+ {
341
+ "begin": "(setup)\\s*\\{",
342
+ "beginCaptures": {
343
+ "1": {
344
+ "name": "keyword.control"
345
+ }
346
+ },
347
+ "end": "\\}",
348
+ "name": "meta.test-setup",
349
+ "patterns": [
350
+ {
351
+ "include": "#rule"
352
+ },
353
+ {
354
+ "include": "#comment"
355
+ },
356
+ {
357
+ "include": "#fixture"
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ "include": "#rule"
363
+ },
364
+ {
365
+ "match": "\\b(assert|assert_not)\\b",
366
+ "name": "keyword.other"
367
+ },
368
+ {
369
+ "include": "#comment"
370
+ }
371
+ ]
372
+ }
373
+ },
374
+ "scopeName": "source.polar"
375
+ }
package/index.js CHANGED
@@ -30,16 +30,16 @@ export const grammars = [
30
30
  source: 'https://github.com/BowlerHatLLC/vscode-as3mxml/blob/77075cd9a439ecd87815cecb1f1c2bb1ff44a2e5/distribution/src/assembly/syntaxes/AS3.tmLanguage',
31
31
  },
32
32
  {
33
- byteSize: 46810,
33
+ byteSize: 46811,
34
34
  displayName: 'Ada',
35
- hash: 'WzJWwdRWUl',
36
- lastUpdate: '2023-06-01T16:49:44Z',
35
+ hash: 'gy2232UiiU',
36
+ lastUpdate: '2024-12-20T16:34:23Z',
37
37
  license: 'GPL-3.0',
38
38
  licenseUrl: 'https://raw.githubusercontent.com/AdaCore/ada_language_server/master/LICENSE',
39
39
  name: 'ada',
40
40
  scopeName: 'source.ada',
41
- sha: '75c0d0c22b3f3dbf559946331c7aca6fc5b84065',
42
- source: 'https://github.com/AdaCore/ada_language_server/blob/75c0d0c22b3f3dbf559946331c7aca6fc5b84065/integration/vscode/ada/advanced/ada.tmLanguage.json',
41
+ sha: '9329f709cf1aef897bfca679c54e0c3d17f2205f',
42
+ source: 'https://github.com/AdaCore/ada_language_server/blob/9329f709cf1aef897bfca679c54e0c3d17f2205f/integration/vscode/ada/advanced/ada.tmLanguage.json',
43
43
  },
44
44
  {
45
45
  byteSize: 772,
@@ -1846,19 +1846,19 @@ export const grammars = [
1846
1846
  source: 'https://github.com/Shopify/liquid-tm-grammar/blob/aa58eab9a09a764b10864aa8d1d48f1d5f3aac2e/grammars/liquid.tmLanguage.json',
1847
1847
  },
1848
1848
  {
1849
- byteSize: 2563,
1849
+ byteSize: 2670,
1850
1850
  categories: [
1851
1851
  'utility',
1852
1852
  ],
1853
1853
  displayName: 'Log file',
1854
- hash: 'cLVL4Fdjqr',
1855
- lastUpdate: '2024-01-28T12:15:03Z',
1854
+ hash: 'Am2G1AubIr',
1855
+ lastUpdate: '2025-01-01T17:10:31Z',
1856
1856
  license: 'MIT',
1857
1857
  licenseUrl: 'https://raw.githubusercontent.com/emilast/vscode-logfile-highlighter/master/LICENSE',
1858
1858
  name: 'log',
1859
1859
  scopeName: 'text.log',
1860
- sha: 'eb50e785c27b4b4f7dbf6c0e801c58fe91baef5d',
1861
- source: 'https://github.com/emilast/vscode-logfile-highlighter/blob/eb50e785c27b4b4f7dbf6c0e801c58fe91baef5d/syntaxes/log.tmLanguage',
1860
+ sha: 'fc571bd87b33bb69d3bdc0052f94face723ee4f7',
1861
+ source: 'https://github.com/emilast/vscode-logfile-highlighter/blob/fc571bd87b33bb69d3bdc0052f94face723ee4f7/syntaxes/log.tmLanguage',
1862
1862
  },
1863
1863
  {
1864
1864
  byteSize: 3096,
@@ -2392,6 +2392,18 @@ export const grammars = [
2392
2392
  sha: '08bb69558d82ada8d4f36b8869f871ce69014749',
2393
2393
  source: 'https://github.com/textmate/gettext.tmbundle/blob/08bb69558d82ada8d4f36b8869f871ce69014749/Syntaxes/Gettext.tmLanguage',
2394
2394
  },
2395
+ {
2396
+ byteSize: 4350,
2397
+ displayName: 'Polar',
2398
+ hash: 'rTp3rqMGfX',
2399
+ lastUpdate: '2024-09-23T15:37:02Z',
2400
+ license: 'Apache-2.0',
2401
+ licenseUrl: 'https://raw.githubusercontent.com/osohq/polar-grammar/main/LICENSE',
2402
+ name: 'polar',
2403
+ scopeName: 'source.polar',
2404
+ sha: '331521c2eca6acf89a87e7360d89ab715cc1daff',
2405
+ source: 'https://github.com/osohq/polar-grammar/blob/331521c2eca6acf89a87e7360d89ab715cc1daff/syntaxes/polar.tmLanguage.json',
2406
+ },
2395
2407
  {
2396
2408
  byteSize: 6252,
2397
2409
  categories: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.21.11",
4
+ "version": "1.22.1",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",