tm-grammars 1.28.1 → 1.29.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 +28 -1
- package/README.md +2 -1
- package/grammars/actionscript-3.json +131 -34
- package/grammars/odin.json +1166 -0
- package/index.js +24 -6
- package/package.json +1 -1
package/NOTICE
CHANGED
|
@@ -4323,7 +4323,7 @@ Files: hcl.json, terraform.json
|
|
|
4323
4323
|
License: https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE
|
|
4324
4324
|
SPDX: MPL-2.0
|
|
4325
4325
|
---------------------------------------------------------------------------------------------------------
|
|
4326
|
-
Copyright
|
|
4326
|
+
Copyright IBM Corp. 2020, 2025
|
|
4327
4327
|
|
|
4328
4328
|
Mozilla Public License Version 2.0
|
|
4329
4329
|
==================================
|
|
@@ -7293,6 +7293,33 @@ SPDX: Apache-2.0
|
|
|
7293
7293
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
7294
7294
|
See the License for the specific language governing permissions and
|
|
7295
7295
|
limitations under the License.
|
|
7296
|
+
=========================================================================================================
|
|
7297
|
+
Files: odin.json
|
|
7298
|
+
License: https://raw.githubusercontent.com/DanielGavin/ols/master/LICENSE
|
|
7299
|
+
SPDX: MIT
|
|
7300
|
+
---------------------------------------------------------------------------------------------------------
|
|
7301
|
+
MIT License
|
|
7302
|
+
|
|
7303
|
+
Copyright (c) 2021 Daniel Gavin
|
|
7304
|
+
|
|
7305
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7306
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7307
|
+
in the Software without restriction, including without limitation the rights
|
|
7308
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7309
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
7310
|
+
furnished to do so, subject to the following conditions:
|
|
7311
|
+
|
|
7312
|
+
The above copyright notice and this permission notice shall be included in all
|
|
7313
|
+
copies or substantial portions of the Software.
|
|
7314
|
+
|
|
7315
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
7316
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
7317
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
7318
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
7319
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
7320
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
7321
|
+
SOFTWARE.
|
|
7322
|
+
|
|
7296
7323
|
=========================================================================================================
|
|
7297
7324
|
Files: openscad.json
|
|
7298
7325
|
License: https://raw.githubusercontent.com/tbuser/openscad.tmbundle/master/LICENSE
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ import { grammars } from 'tm-grammars'
|
|
|
21
21
|
| Name | Alias | Source | License | Sponsor | Deps On | File Size |
|
|
22
22
|
| ---- | ----- | ------ | ------- | ------- | ------- | --------- |
|
|
23
23
|
| `abap` | | [pvl/abap.tmbundle](https://github.com/pvl/abap.tmbundle/blob/92e17e62a9449d2a6f87bfb30b4f920986c24018/Syntaxes/ABAP.tmLanguage) | | | | 15.12 kB |
|
|
24
|
-
| `actionscript-3` | | [BowlerHatLLC/vscode-as3mxml](https://github.com/BowlerHatLLC/vscode-as3mxml/blob/
|
|
24
|
+
| `actionscript-3` | | [BowlerHatLLC/vscode-as3mxml](https://github.com/BowlerHatLLC/vscode-as3mxml/blob/42f895fa03d4a71f590e2631b5e215cade7da1db/distribution/src/assembly/syntaxes/AS3.tmLanguage) | [Apache-2.0](https://raw.githubusercontent.com/BowlerHatLLC/vscode-as3mxml/main/LICENSE) | [Patreon: **josht**](https://patreon.com/josht) | | 14.44 kB |
|
|
25
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.39 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` | 701.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` | 160.04 kB |
|
|
@@ -158,6 +158,7 @@ import { grammars } from 'tm-grammars'
|
|
|
158
158
|
| `objective-c` | `objc` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/bd1abe08c38bb5deccf65610f8f3c03d2338d20d/extensions/objective-c/syntaxes/objective-c.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 100.65 kB |
|
|
159
159
|
| `objective-cpp` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/bd1abe08c38bb5deccf65610f8f3c03d2338d20d/extensions/objective-c/syntaxes/objective-c++.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 163.50 kB |
|
|
160
160
|
| `ocaml` | | [reasonml-editor/vscode-reasonml](https://github.com/reasonml-editor/vscode-reasonml/blob/14af625ec50ed9968b957b4d6336c5338d81af45/syntaxes/ocaml.json) | [Apache-2.0](https://raw.githubusercontent.com/reasonml-editor/vscode-reasonml/master/LICENSE) | | | 58.98 kB |
|
|
161
|
+
| `odin` | | [DanielGavin/ols](https://github.com/DanielGavin/ols/blob/d26a19b38c581e28f67609cbb2d5ac933a9373d1/editors/vscode/syntaxes/odin.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/DanielGavin/ols/master/LICENSE) | | | 15.63 kB |
|
|
161
162
|
| `openscad` | `scad` | [tbuser/openscad.tmbundle](https://github.com/tbuser/openscad.tmbundle/blob/5962175ed355c2d58dc1991801c229809363e999/Syntaxes/OpenSCAD.tmLanguage) | [MIT](https://raw.githubusercontent.com/tbuser/openscad.tmbundle/master/LICENSE) | | | 2.58 kB |
|
|
162
163
|
| `pascal` | | [alefragnani/vscode-language-pascal](https://github.com/alefragnani/vscode-language-pascal/blob/f2d6345bd9fe83932f4d04fcacf98ce7d74b8034/syntaxes/pascal.tmLanguage) | [MIT](https://raw.githubusercontent.com/alefragnani/vscode-language-pascal/master/LICENSE.md) | [GitHub Sponsors: **@alefragnani**](https://github.com/sponsors/alefragnani) [Patreon: **alefragnani**](https://patreon.com/alefragnani) [paypal.com](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EP57F3B6FXKTU&lc=US&item_name=Alessandro%20Fragnani&item_number=vscode%20extensions¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) | | 3.89 kB |
|
|
163
164
|
| `perl` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e637ff1bf7f481134849625e982ec80df9b35bc8/extensions/perl/syntaxes/perl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `html` `xml` `css` `javascript` `sql` | 40.89 kB |
|
|
@@ -118,6 +118,9 @@
|
|
|
118
118
|
{
|
|
119
119
|
"include": "#class_declaration"
|
|
120
120
|
},
|
|
121
|
+
{
|
|
122
|
+
"include": "#declaration_code_block"
|
|
123
|
+
},
|
|
121
124
|
{
|
|
122
125
|
"include": "#metadata"
|
|
123
126
|
},
|
|
@@ -183,6 +186,9 @@
|
|
|
183
186
|
},
|
|
184
187
|
{
|
|
185
188
|
"include": "#object_literal"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"include": "#conditional_compilation"
|
|
186
192
|
}
|
|
187
193
|
]
|
|
188
194
|
},
|
|
@@ -210,13 +216,56 @@
|
|
|
210
216
|
}
|
|
211
217
|
]
|
|
212
218
|
},
|
|
213
|
-
"
|
|
219
|
+
"comments": {
|
|
220
|
+
"patterns": [
|
|
221
|
+
{
|
|
222
|
+
"begin": "/\\*\\*(?!/)",
|
|
223
|
+
"end": "\\*/",
|
|
224
|
+
"name": "comment.block.documentation.actionscript.3",
|
|
225
|
+
"patterns": [
|
|
226
|
+
{
|
|
227
|
+
"match": "@(copy|default|eventType|example|exampleText|includeExample|inheritDoc|internal|param|private|return|see|since|throws)\\b",
|
|
228
|
+
"name": "keyword.other.documentation.actionscript.3.asdoc"
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"begin": "/\\*",
|
|
234
|
+
"end": "\\*/",
|
|
235
|
+
"name": "comment.block.actionscript.3"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"match": "//.*",
|
|
239
|
+
"name": "comment.line.actionscript.3"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"conditional_compilation": {
|
|
244
|
+
"captures": {
|
|
245
|
+
"2": {
|
|
246
|
+
"name": "constant.other.actionscript.3"
|
|
247
|
+
},
|
|
248
|
+
"3": {
|
|
249
|
+
"name": "constant.other.actionscript.3"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"match": "(^|\\s+|;)\\b(\\w+)\\b::\\b(\\w+)\\b",
|
|
253
|
+
"name": "meta.conditional.actionscript.3"
|
|
254
|
+
},
|
|
255
|
+
"control_keywords": {
|
|
256
|
+
"match": "\\b(if|else|do|while|for|each|continue|return|switch|case|default|break|try|catch|finally|throw|with)\\b",
|
|
257
|
+
"name": "keyword.control.actionscript.3"
|
|
258
|
+
},
|
|
259
|
+
"declaration_code_block": {
|
|
214
260
|
"begin": "\\{",
|
|
215
261
|
"end": "}",
|
|
216
262
|
"name": "meta.code_block.actionscript.3",
|
|
217
263
|
"patterns": [
|
|
218
264
|
{
|
|
219
|
-
"include": "#
|
|
265
|
+
"include": "#method"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"include": "#variable_declaration"
|
|
220
269
|
},
|
|
221
270
|
{
|
|
222
271
|
"include": "#comments"
|
|
@@ -227,9 +276,6 @@
|
|
|
227
276
|
{
|
|
228
277
|
"include": "#regexp"
|
|
229
278
|
},
|
|
230
|
-
{
|
|
231
|
-
"include": "#variable_declaration"
|
|
232
|
-
},
|
|
233
279
|
{
|
|
234
280
|
"include": "#numbers"
|
|
235
281
|
},
|
|
@@ -289,34 +335,6 @@
|
|
|
289
335
|
}
|
|
290
336
|
]
|
|
291
337
|
},
|
|
292
|
-
"comments": {
|
|
293
|
-
"patterns": [
|
|
294
|
-
{
|
|
295
|
-
"begin": "/\\*\\*(?!/)",
|
|
296
|
-
"end": "\\*/",
|
|
297
|
-
"name": "comment.block.documentation.actionscript.3",
|
|
298
|
-
"patterns": [
|
|
299
|
-
{
|
|
300
|
-
"match": "@(copy|default|eventType|example|exampleText|includeExample|inheritDoc|internal|param|private|return|see|since|throws)\\b",
|
|
301
|
-
"name": "keyword.other.documentation.actionscript.3.asdoc"
|
|
302
|
-
}
|
|
303
|
-
]
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"begin": "/\\*",
|
|
307
|
-
"end": "\\*/",
|
|
308
|
-
"name": "comment.block.actionscript.3"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"match": "//.*",
|
|
312
|
-
"name": "comment.line.actionscript.3"
|
|
313
|
-
}
|
|
314
|
-
]
|
|
315
|
-
},
|
|
316
|
-
"control_keywords": {
|
|
317
|
-
"match": "\\b(if|else|do|while|for|each|continue|return|switch|case|default|break|try|catch|finally|throw|with)\\b",
|
|
318
|
-
"name": "keyword.control.actionscript.3"
|
|
319
|
-
},
|
|
320
338
|
"dynamic_type": {
|
|
321
339
|
"captures": {
|
|
322
340
|
"1": {
|
|
@@ -480,6 +498,85 @@
|
|
|
480
498
|
"match": "\\b(super|this|arguments)\\b",
|
|
481
499
|
"name": "variable.language.actionscript.3"
|
|
482
500
|
},
|
|
501
|
+
"local_code_block": {
|
|
502
|
+
"begin": "\\{",
|
|
503
|
+
"end": "}",
|
|
504
|
+
"name": "meta.code_block.actionscript.3",
|
|
505
|
+
"patterns": [
|
|
506
|
+
{
|
|
507
|
+
"include": "#local_code_block"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"include": "#comments"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"include": "#strings"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"include": "#regexp"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"include": "#variable_declaration"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"include": "#numbers"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"include": "#primitive_types"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"include": "#primitive_error_types"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"include": "#dynamic_type"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"include": "#primitive_functions"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"include": "#language_constants"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"include": "#language_variables"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"include": "#guess_type"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"include": "#guess_constant"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"include": "#other_operators"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"include": "#arithmetic_operators"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"include": "#logical_operators"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"include": "#array_access_operators"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"include": "#vector_creation_operators"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"include": "#control_keywords"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"include": "#other_keywords"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"include": "#use_namespace"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"include": "#functions"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"include": "#import"
|
|
577
|
+
}
|
|
578
|
+
]
|
|
579
|
+
},
|
|
483
580
|
"logical_operators": {
|
|
484
581
|
"match": "([!\\&<>?^|~])",
|
|
485
582
|
"name": "keyword.operator.actionscript.3"
|
|
@@ -542,7 +639,7 @@
|
|
|
542
639
|
"include": "#functions"
|
|
543
640
|
},
|
|
544
641
|
{
|
|
545
|
-
"include": "#
|
|
642
|
+
"include": "#local_code_block"
|
|
546
643
|
}
|
|
547
644
|
]
|
|
548
645
|
},
|