tm-grammars 1.26.0 → 1.27.0
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 +474 -3
- package/README.md +28 -25
- package/grammars/apex.json +1 -1
- package/grammars/blade.json +91 -16
- package/grammars/c3.json +1982 -0
- package/grammars/fortran-fixed-form.json +37 -0
- package/grammars/fortran-free-form.json +178 -49
- package/grammars/gn.json +155 -0
- package/grammars/kusto.json +1 -1
- package/grammars/lean.json +0 -4
- package/grammars/luau.json +2 -2
- package/grammars/markdown-nix.json +2 -2
- package/grammars/markdown-vue.json +1 -1
- package/grammars/marko.json +8 -8
- package/grammars/mermaid.json +68 -4
- package/grammars/mojo.json +1 -1
- package/grammars/moonbit.json +393 -0
- package/grammars/proto.json +5 -5
- package/grammars/r.json +325 -669
- package/grammars/razor.json +134 -19
- package/grammars/svelte.json +13 -2
- package/grammars/vue-directives.json +1 -1
- package/grammars/vue-interpolations.json +1 -1
- package/grammars/vue.json +269 -29
- package/index.js +178 -122
- package/package.json +1 -1
|
@@ -25,6 +25,43 @@
|
|
|
25
25
|
{
|
|
26
26
|
"include": "#comments"
|
|
27
27
|
},
|
|
28
|
+
{
|
|
29
|
+
"begin": "(?i)^(?=.{5}|(?<!^)\\t)\\s*(?:([0-9]{1,5})\\s+)?(format)\\b",
|
|
30
|
+
"beginCaptures": {
|
|
31
|
+
"1": {
|
|
32
|
+
"name": "constant.numeric.fortran"
|
|
33
|
+
},
|
|
34
|
+
"2": {
|
|
35
|
+
"name": "keyword.control.format.fortran"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"end": "(?=^(?![^\\n!#]{5}\\S))",
|
|
39
|
+
"name": "meta.statement.IO.fortran",
|
|
40
|
+
"patterns": [
|
|
41
|
+
{
|
|
42
|
+
"include": "#comments"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"include": "#line-header"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"match": "!.*$",
|
|
49
|
+
"name": "comment.line.fortran"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"include": "source.fortran.free#string-constant"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"include": "source.fortran.free#numeric-constant"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"include": "source.fortran.free#operators"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"include": "source.fortran.free#format-parentheses"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
28
65
|
{
|
|
29
66
|
"include": "#line-header"
|
|
30
67
|
},
|
|
@@ -198,13 +198,31 @@
|
|
|
198
198
|
"IO-statements": {
|
|
199
199
|
"patterns": [
|
|
200
200
|
{
|
|
201
|
-
"begin": "(?i)\\b(
|
|
201
|
+
"begin": "(?i)\\b(format)(?=\\s*[!\\&(])",
|
|
202
202
|
"beginCaptures": {
|
|
203
203
|
"1": {
|
|
204
|
-
"name": "keyword.control.
|
|
204
|
+
"name": "keyword.control.format.fortran"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"end": "(?=[\\n!;])",
|
|
208
|
+
"name": "meta.statement.IO.fortran",
|
|
209
|
+
"patterns": [
|
|
210
|
+
{
|
|
211
|
+
"include": "#comments"
|
|
205
212
|
},
|
|
206
|
-
|
|
207
|
-
"
|
|
213
|
+
{
|
|
214
|
+
"include": "#line-continuation-operator"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"include": "#format-parentheses"
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"begin": "(?i)\\b(?:(backspace)|(close)|(endfile)|(inquire)|(open)|(read)|(rewind)|(write))\\s*(?=\\()",
|
|
223
|
+
"beginCaptures": {
|
|
224
|
+
"1": {
|
|
225
|
+
"name": "keyword.control.backspace.fortran"
|
|
208
226
|
},
|
|
209
227
|
"2": {
|
|
210
228
|
"name": "keyword.control.close.fortran"
|
|
@@ -213,22 +231,22 @@
|
|
|
213
231
|
"name": "keyword.control.endfile.fortran"
|
|
214
232
|
},
|
|
215
233
|
"4": {
|
|
216
|
-
"name": "keyword.control.
|
|
234
|
+
"name": "keyword.control.inquire.fortran"
|
|
217
235
|
},
|
|
218
236
|
"5": {
|
|
219
|
-
"name": "keyword.control.
|
|
237
|
+
"name": "keyword.control.open.fortran"
|
|
220
238
|
},
|
|
221
239
|
"6": {
|
|
222
|
-
"name": "keyword.control.
|
|
240
|
+
"name": "keyword.control.read.fortran"
|
|
223
241
|
},
|
|
224
242
|
"7": {
|
|
225
|
-
"name": "keyword.control.
|
|
243
|
+
"name": "keyword.control.rewind.fortran"
|
|
226
244
|
},
|
|
227
245
|
"8": {
|
|
228
|
-
"name": "keyword.control.
|
|
246
|
+
"name": "keyword.control.write.fortran"
|
|
229
247
|
},
|
|
230
248
|
"9": {
|
|
231
|
-
"name": "
|
|
249
|
+
"name": "punctuation.parentheses.left.fortran"
|
|
232
250
|
}
|
|
233
251
|
},
|
|
234
252
|
"end": "(?=[\\n!;])",
|
|
@@ -398,7 +416,7 @@
|
|
|
398
416
|
"match": "(-)|(\\+)|/(?![/=\\\\])|(\\*\\*)|(\\*)"
|
|
399
417
|
},
|
|
400
418
|
"array-constructor": {
|
|
401
|
-
"begin": "(?=\\s*(\\[|\\(/))",
|
|
419
|
+
"begin": "(?<!\\n)(?=\\s*(\\[|\\(/))",
|
|
402
420
|
"end": "(?<!\\G)",
|
|
403
421
|
"name": "meta.contructor.array",
|
|
404
422
|
"patterns": [
|
|
@@ -699,6 +717,7 @@
|
|
|
699
717
|
"call-statement": {
|
|
700
718
|
"patterns": [
|
|
701
719
|
{
|
|
720
|
+
"applyEndPatternLast": 1,
|
|
702
721
|
"begin": "(?i)\\s*\\b(call)\\b",
|
|
703
722
|
"beginCaptures": {
|
|
704
723
|
"1": {
|
|
@@ -709,25 +728,34 @@
|
|
|
709
728
|
"name": "meta.statement.control.call.fortran",
|
|
710
729
|
"patterns": [
|
|
711
730
|
{
|
|
712
|
-
"begin": "(?i)
|
|
713
|
-
"
|
|
714
|
-
|
|
715
|
-
|
|
731
|
+
"begin": "(?i)(?=\\s*[a-z]\\w*\\s*%)",
|
|
732
|
+
"end": "(?=[\\n!;])",
|
|
733
|
+
"patterns": [
|
|
734
|
+
{
|
|
735
|
+
"include": "#comments"
|
|
716
736
|
},
|
|
717
|
-
|
|
718
|
-
"
|
|
737
|
+
{
|
|
738
|
+
"include": "#line-continuation-operator"
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"captures": {
|
|
742
|
+
"1": {
|
|
743
|
+
"name": "variable.other.fortran"
|
|
744
|
+
},
|
|
745
|
+
"2": {
|
|
746
|
+
"name": "keyword.accessor.fortran"
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
"match": "(?i)\\s*([a-z]\\w*)\\s*(%)"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"captures": {
|
|
753
|
+
"1": {
|
|
754
|
+
"name": "entity.name.function.subroutine.fortran"
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
"match": "(?i)\\s*([a-z]\\w*)"
|
|
719
758
|
},
|
|
720
|
-
"3": {
|
|
721
|
-
"name": "entity.name.function.subroutine.fortran"
|
|
722
|
-
}
|
|
723
|
-
},
|
|
724
|
-
"end": "(?<!\\G)",
|
|
725
|
-
"endCaptures": {
|
|
726
|
-
"1": {
|
|
727
|
-
"name": "punctuation.parentheses.right.fortran"
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
"patterns": [
|
|
731
759
|
{
|
|
732
760
|
"include": "#parentheses-dummy-variables"
|
|
733
761
|
}
|
|
@@ -2274,6 +2302,104 @@
|
|
|
2274
2302
|
}
|
|
2275
2303
|
]
|
|
2276
2304
|
},
|
|
2305
|
+
"format-descriptor": {
|
|
2306
|
+
"begin": "\\(/",
|
|
2307
|
+
"beginCaptures": {
|
|
2308
|
+
"0": {
|
|
2309
|
+
"name": "punctuation.bracket.left.fortran"
|
|
2310
|
+
}
|
|
2311
|
+
},
|
|
2312
|
+
"contentName": "meta.format-descriptor.fortran",
|
|
2313
|
+
"end": "\\)",
|
|
2314
|
+
"endCaptures": {
|
|
2315
|
+
"0": {
|
|
2316
|
+
"name": "punctuation.bracket.right.fortran"
|
|
2317
|
+
}
|
|
2318
|
+
},
|
|
2319
|
+
"patterns": [
|
|
2320
|
+
{
|
|
2321
|
+
"include": "#comments"
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
"include": "#constants"
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
"include": "#operators"
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
"include": "#parentheses"
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
"include": "#intrinsic-functions"
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
"include": "#variable"
|
|
2337
|
+
}
|
|
2338
|
+
]
|
|
2339
|
+
},
|
|
2340
|
+
"format-descriptors": {
|
|
2341
|
+
"patterns": [
|
|
2342
|
+
{
|
|
2343
|
+
"captures": {
|
|
2344
|
+
"1": {
|
|
2345
|
+
"name": "keyword.other.format-descriptor.fortran"
|
|
2346
|
+
}
|
|
2347
|
+
},
|
|
2348
|
+
"match": "(?i)(?:\\b|(?<=\\d)|(?<=P))(EN|ES|EX|DT|DC|DP|RC|RD|RN|RP|RU|RZ|BN|BZ|SP|SS|TL|TR|[ABD-GILOPQSTXZ])(?=$|[^A-Z_a-z]|[D-G](?i))"
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
"match": "/",
|
|
2352
|
+
"name": "keyword.operator.format.newline.fortran"
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
"match": ":",
|
|
2356
|
+
"name": "keyword.operator.format.separator.fortran"
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"match": "[$\\\\]",
|
|
2360
|
+
"name": "keyword.other.format-descriptor.nonstandard.fortran"
|
|
2361
|
+
},
|
|
2362
|
+
{
|
|
2363
|
+
"match": "(?i)(?:\\b|(?<=\\d))\\d+H",
|
|
2364
|
+
"name": "keyword.other.format-descriptor.legacy.fortran"
|
|
2365
|
+
}
|
|
2366
|
+
]
|
|
2367
|
+
},
|
|
2368
|
+
"format-parentheses": {
|
|
2369
|
+
"begin": "\\s*(\\()",
|
|
2370
|
+
"beginCaptures": {
|
|
2371
|
+
"1": {
|
|
2372
|
+
"name": "punctuation.parentheses.left.fortran"
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
"end": "(\\))",
|
|
2376
|
+
"endCaptures": {
|
|
2377
|
+
"1": {
|
|
2378
|
+
"name": "punctuation.parentheses.right.fortran"
|
|
2379
|
+
}
|
|
2380
|
+
},
|
|
2381
|
+
"patterns": [
|
|
2382
|
+
{
|
|
2383
|
+
"include": "#comments"
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
"include": "#line-continuation-operator"
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
"match": "(?:\\b|[-+])\\d+(?=[A-Za-z])",
|
|
2390
|
+
"name": "constant.numeric.fortran"
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"include": "#format-descriptors"
|
|
2394
|
+
},
|
|
2395
|
+
{
|
|
2396
|
+
"include": "#format-parentheses"
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
"include": "#parentheses-common"
|
|
2400
|
+
}
|
|
2401
|
+
]
|
|
2402
|
+
},
|
|
2277
2403
|
"function-definition": {
|
|
2278
2404
|
"begin": "(?i)(?=([^\\n!\"':;](?!\\bend)(?!\\bsubroutine\\b))*\\bfunction\\b)",
|
|
2279
2405
|
"end": "(?=[\\n!;])",
|
|
@@ -2662,7 +2788,7 @@
|
|
|
2662
2788
|
"patterns": [
|
|
2663
2789
|
{
|
|
2664
2790
|
"begin": "(?!(\\s*([\\n!;])))",
|
|
2665
|
-
"end": "(?=[\\n!;])",
|
|
2791
|
+
"end": "\\s*(?=[\\n!;])",
|
|
2666
2792
|
"patterns": [
|
|
2667
2793
|
{
|
|
2668
2794
|
"captures": {
|
|
@@ -2673,7 +2799,7 @@
|
|
|
2673
2799
|
"name": "invalid.error.label.else.fortran"
|
|
2674
2800
|
}
|
|
2675
2801
|
},
|
|
2676
|
-
"match": "\\s*([a-z]\\w*)?\\s*\\b(\\w*)\\b"
|
|
2802
|
+
"match": "(?i)\\s*([a-z]\\w*)?\\s*\\b(\\w*)\\b"
|
|
2677
2803
|
},
|
|
2678
2804
|
{
|
|
2679
2805
|
"include": "#invalid-word"
|
|
@@ -3785,19 +3911,26 @@
|
|
|
3785
3911
|
},
|
|
3786
3912
|
"patterns": [
|
|
3787
3913
|
{
|
|
3788
|
-
"include": "#
|
|
3914
|
+
"include": "#array-constructor"
|
|
3789
3915
|
},
|
|
3790
3916
|
{
|
|
3791
|
-
"include": "#
|
|
3917
|
+
"include": "#parentheses"
|
|
3792
3918
|
},
|
|
3793
3919
|
{
|
|
3794
|
-
"include": "#
|
|
3920
|
+
"include": "#parentheses-common"
|
|
3921
|
+
}
|
|
3922
|
+
]
|
|
3923
|
+
},
|
|
3924
|
+
"parentheses-common": {
|
|
3925
|
+
"patterns": [
|
|
3926
|
+
{
|
|
3927
|
+
"include": "#comments"
|
|
3795
3928
|
},
|
|
3796
3929
|
{
|
|
3797
|
-
"include": "#
|
|
3930
|
+
"include": "#constants"
|
|
3798
3931
|
},
|
|
3799
3932
|
{
|
|
3800
|
-
"include": "#
|
|
3933
|
+
"include": "#operators"
|
|
3801
3934
|
},
|
|
3802
3935
|
{
|
|
3803
3936
|
"include": "#intrinsic-functions"
|
|
@@ -3824,15 +3957,6 @@
|
|
|
3824
3957
|
{
|
|
3825
3958
|
"include": "#procedure-call-dummy-variable"
|
|
3826
3959
|
},
|
|
3827
|
-
{
|
|
3828
|
-
"include": "#comments"
|
|
3829
|
-
},
|
|
3830
|
-
{
|
|
3831
|
-
"include": "#constants"
|
|
3832
|
-
},
|
|
3833
|
-
{
|
|
3834
|
-
"include": "#operators"
|
|
3835
|
-
},
|
|
3836
3960
|
{
|
|
3837
3961
|
"include": "#array-constructor"
|
|
3838
3962
|
},
|
|
@@ -3840,10 +3964,7 @@
|
|
|
3840
3964
|
"include": "#parentheses"
|
|
3841
3965
|
},
|
|
3842
3966
|
{
|
|
3843
|
-
"include": "#
|
|
3844
|
-
},
|
|
3845
|
-
{
|
|
3846
|
-
"include": "#variable"
|
|
3967
|
+
"include": "#parentheses-common"
|
|
3847
3968
|
}
|
|
3848
3969
|
]
|
|
3849
3970
|
},
|
|
@@ -5547,11 +5668,19 @@
|
|
|
5547
5668
|
"name": "keyword.control.elsewhere.fortran"
|
|
5548
5669
|
}
|
|
5549
5670
|
},
|
|
5550
|
-
"end": "(?=[\\n!;])",
|
|
5671
|
+
"end": "\\s*(?=[\\n!;])",
|
|
5551
5672
|
"patterns": [
|
|
5552
5673
|
{
|
|
5553
5674
|
"include": "#parentheses"
|
|
5554
5675
|
},
|
|
5676
|
+
{
|
|
5677
|
+
"captures": {
|
|
5678
|
+
"1": {
|
|
5679
|
+
"name": "meta.label.elsewhere.fortran"
|
|
5680
|
+
}
|
|
5681
|
+
},
|
|
5682
|
+
"match": "(?i)(\\s*[a-z]\\w*)?"
|
|
5683
|
+
},
|
|
5555
5684
|
{
|
|
5556
5685
|
"include": "#invalid-word"
|
|
5557
5686
|
}
|
package/grammars/gn.json
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "GN",
|
|
3
|
+
"name": "gn",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#expression"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"boolean": {
|
|
11
|
+
"match": "\\b(true|false)\\b",
|
|
12
|
+
"name": "constant.language.boolean.gn"
|
|
13
|
+
},
|
|
14
|
+
"builtins": {
|
|
15
|
+
"patterns": [
|
|
16
|
+
{
|
|
17
|
+
"match": "\\b(action|action_foreach|bundle_data|copy|create_bundle|executable|generated_file|group|loadable_module|rust_library|rust_proc_macro|shared_library|source_set|static_library|target)\\b",
|
|
18
|
+
"name": "support.function.gn"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"match": "\\b(assert|config|declare_args|defined|exec_script|filter_exclude|filter_include|filter_labels_exclude|filter_labels_include|foreach|forward_variables_from|get_label_info|get_path_info|get_target_outputs|getenv|import|label_matches|not_needed|pool|print|print_stack_trace|process_file_template|read_file|rebase_path|set_default_toolchain|set_defaults|split_list|string_join|string_replace|string_split|template|tool|toolchain|write_file)\\b",
|
|
22
|
+
"name": "support.function.gn"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"match": "\\b(current_cpu|current_os|current_toolchain|default_toolchain|gn_version|host_cpu|host_os|invoker|python_path|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_name|target_os|target_out_dir)\\b",
|
|
26
|
+
"name": "variable.language.gn"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"match": "\\b(aliased_deps|all_dependent_configs|allow_circular_includes_from|arflags|args|asmflags|assert_no_deps|bridge_header|bundle_contents_dir|bundle_deps_filter|bundle_executable_dir|bundle_resources_dir|bundle_root_dir|cflags|cflags_cc??|cflags_objcc??|check_includes|code_signing_args|code_signing_outputs|code_signing_script|code_signing_sources|complete_static_lib|configs|contents|crate_name|crate_root|crate_type|data|data_deps|data_keys|defines|depfile|deps|externs|framework_dirs|frameworks|friend|gen_deps|include_dirs|inputs|ldflags|lib_dirs|libs|metadata|mnemonic|module_name|output_conversion|output_dir|output_extension|output_name|output_prefix_override|outputs|partial_info_plist|pool|post_processing_args|post_processing_outputs|post_processing_script|post_processing_sources|precompiled_header|precompiled_header_type|precompiled_source|product_type|public|public_configs|public_deps|rebase|response_file_contents|rustflags|script|sources|swiftflags|testonly|transparent|visibility|walk_keys|weak_frameworks|write_runtime_deps|xcasset_compiler_flags|xcode_extra_attributes|xcode_test_application_name)\\b",
|
|
30
|
+
"name": "variable.language.gn"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"call": {
|
|
35
|
+
"begin": "\\b([A-Z_a-z][0-9A-Z_a-z]*)\\s*\\(",
|
|
36
|
+
"beginCaptures": {
|
|
37
|
+
"1": {
|
|
38
|
+
"name": "entity.name.function.gn"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"end": "\\)",
|
|
42
|
+
"patterns": [
|
|
43
|
+
{
|
|
44
|
+
"include": "#expression"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"comment": {
|
|
49
|
+
"begin": "#",
|
|
50
|
+
"end": "$",
|
|
51
|
+
"name": "comment.line.number-sign.gn"
|
|
52
|
+
},
|
|
53
|
+
"expression": {
|
|
54
|
+
"patterns": [
|
|
55
|
+
{
|
|
56
|
+
"include": "#keywords"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"include": "#builtins"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"include": "#call"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"include": "#literals"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"include": "#identifier"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"include": "#operators"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"include": "#comment"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"identifier": {
|
|
79
|
+
"match": "\\b[A-Z_a-z][0-9A-Z_a-z]*\\b",
|
|
80
|
+
"name": "variable.general.gn"
|
|
81
|
+
},
|
|
82
|
+
"keywords": {
|
|
83
|
+
"match": "\\b(if|else)\\b",
|
|
84
|
+
"name": "keyword.control.if.gn"
|
|
85
|
+
},
|
|
86
|
+
"literals": {
|
|
87
|
+
"patterns": [
|
|
88
|
+
{
|
|
89
|
+
"include": "#string"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"include": "#number"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"include": "#boolean"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"number": {
|
|
100
|
+
"match": "\\b-?\\d+\\b",
|
|
101
|
+
"name": "constant.numeric.gn"
|
|
102
|
+
},
|
|
103
|
+
"operators": {
|
|
104
|
+
"match": "\\b(\\+=??|==|!=|-=??|<=??|[!=>]|>=|&&|\\|\\|\\.)\\b",
|
|
105
|
+
"name": "keyword.operator.gn"
|
|
106
|
+
},
|
|
107
|
+
"string": {
|
|
108
|
+
"begin": "\"",
|
|
109
|
+
"end": "\"",
|
|
110
|
+
"name": "string.quoted.double.gn",
|
|
111
|
+
"patterns": [
|
|
112
|
+
{
|
|
113
|
+
"match": "\\\\[\"$\\\\]",
|
|
114
|
+
"name": "constant.character.escape.gn"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"match": "\\$0x\\h\\h",
|
|
118
|
+
"name": "constant.character.hex.gn"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"begin": "\\$\\{",
|
|
122
|
+
"beginCaptures": {
|
|
123
|
+
"0": {
|
|
124
|
+
"name": "punctuation.definition.template-expression.begin.gn"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"contentName": "meta.embedded.substitution.gn",
|
|
128
|
+
"end": "}",
|
|
129
|
+
"endCaptures": {
|
|
130
|
+
"0": {
|
|
131
|
+
"name": "punctuation.definition.template-expression.end.gn"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"patterns": [
|
|
135
|
+
{
|
|
136
|
+
"include": "#expression"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"captures": {
|
|
142
|
+
"1": {
|
|
143
|
+
"name": "punctuation.definition.template-expression.begin.gn"
|
|
144
|
+
},
|
|
145
|
+
"2": {
|
|
146
|
+
"name": "meta.embedded.substitution.gn variable.general.gn"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"match": "(\\$)([A-Z_a-z][0-9A-Z_a-z]*)"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"scopeName": "source.gn"
|
|
155
|
+
}
|
package/grammars/kusto.json
CHANGED
package/grammars/lean.json
CHANGED
|
@@ -164,10 +164,6 @@
|
|
|
164
164
|
"match": "(?<![]\\w])'(\\\\(x\\h\\h|u\\h\\h\\h\\h|.))'",
|
|
165
165
|
"name": "string.quoted.single.lean4"
|
|
166
166
|
},
|
|
167
|
-
{
|
|
168
|
-
"match": "`+[^(\\[]\\S+",
|
|
169
|
-
"name": "entity.name.lean4"
|
|
170
|
-
},
|
|
171
167
|
{
|
|
172
168
|
"match": "\\b([0-9]+|0([Xx]\\h+)|-?(0|[1-9][0-9]*)(\\.[0-9]+)?([Ee][-+]?[0-9]+)?)\\b",
|
|
173
169
|
"name": "constant.numeric.lean4"
|
package/grammars/luau.json
CHANGED
|
@@ -484,11 +484,11 @@
|
|
|
484
484
|
"name": "constant.language.luau"
|
|
485
485
|
},
|
|
486
486
|
{
|
|
487
|
-
"match": "(?<![^.]\\.|:)\\b(bit32\\.(?:arshift|band|bnot|bor|btest|bxor|extract|lrotate|lshift|replace|rrotate|rshift|countlz|countrz|byteswap)|coroutine\\.(?:create|isyieldable|resume|running|status|wrap|yield|close)|debug\\.(?:info|loadmodule|profilebegin|profileend|traceback)|math\\.(?:abs|acos|asin|atan2??|ceil|clamp|cosh??|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|noise|pow|rad|random|randomseed|round|sign|sinh??|sqrt|tanh??)|os\\.(?:clock|date|difftime|time)|string\\.(?:byte|char|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|split|sub|unpack|upper)|table\\.(?:concat|create|find|foreachi??|getn|insert|maxn|move|pack|remove|sort|unpack|clear|freeze|isfrozen|clone)|task\\.(?:spawn|synchronize|desynchronize|wait|defer|delay)|utf8\\.(?:char|codepoint|codes|graphemes|len|nfcnormalize|nfdnormalize|offset)|buffer\\.(?:create|fromstring|tostring|len|readi8|readu8|readi16|readu16|readi32|readu32|readf32|readf64|writei8|writeu8|writei16|writeu16|writei32|writeu32|writef32|writef64|readstring|writestring|copy|fill))\\b",
|
|
487
|
+
"match": "(?<![^.]\\.|:)\\b(bit32\\.(?:arshift|band|bnot|bor|btest|bxor|extract|lrotate|lshift|replace|rrotate|rshift|countlz|countrz|byteswap)|coroutine\\.(?:create|isyieldable|resume|running|status|wrap|yield|close)|debug\\.(?:info|loadmodule|profilebegin|profileend|traceback)|math\\.(?:abs|acos|asin|atan2??|ceil|clamp|cosh??|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|noise|pow|rad|random|randomseed|round|sign|sinh??|sqrt|tanh??)|os\\.(?:clock|date|difftime|time)|string\\.(?:byte|char|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|split|sub|unpack|upper)|table\\.(?:concat|create|find|foreachi??|getn|insert|maxn|move|pack|remove|sort|unpack|clear|freeze|isfrozen|clone)|task\\.(?:spawn|synchronize|desynchronize|wait|defer|delay)|utf8\\.(?:char|codepoint|codes|graphemes|len|nfcnormalize|nfdnormalize|offset)|buffer\\.(?:create|fromstring|tostring|len|readi8|readu8|readi16|readu16|readi32|readu32|readf32|readf64|writei8|writeu8|writei16|writeu16|writei32|writeu32|writef32|writef64|readstring|writestring|copy|fill)|vector\\.(?:abs|angle|ceil|clamp|create|cross|dot|floor|lerp|magnitude|max|min|normalize|sign))\\b",
|
|
488
488
|
"name": "support.function.luau"
|
|
489
489
|
},
|
|
490
490
|
{
|
|
491
|
-
"match": "(?<![^.]\\.|:)\\b(bit32|buffer|coroutine|debug|math(\\.(huge|pi))?|os|string|table|task|utf8(\\.charpattern)?)\\b",
|
|
491
|
+
"match": "(?<![^.]\\.|:)\\b(bit32|buffer|coroutine|debug|math(\\.(huge|pi))?|os|string|table|task|utf8(\\.charpattern)?|vector(\\.(one|zero))?)\\b",
|
|
492
492
|
"name": "support.constant.luau"
|
|
493
493
|
},
|
|
494
494
|
{
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
"name": "markdown-nix",
|
|
9
9
|
"patterns": [
|
|
10
10
|
{
|
|
11
|
-
"include": "#
|
|
11
|
+
"include": "#nix-code-block"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"repository": {
|
|
15
|
-
"
|
|
15
|
+
"nix-code-block": {
|
|
16
16
|
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(nix)(\\s+[^`~]*)?$)",
|
|
17
17
|
"beginCaptures": {
|
|
18
18
|
"3": {
|
package/grammars/marko.json
CHANGED
|
@@ -942,7 +942,7 @@
|
|
|
942
942
|
"name": "invalid.illegal.character-not-allowed-here.marko"
|
|
943
943
|
},
|
|
944
944
|
"invalid-close-tag": {
|
|
945
|
-
"begin": "\\s
|
|
945
|
+
"begin": "\\s*</[^>]*",
|
|
946
946
|
"end": ">",
|
|
947
947
|
"name": "invalid.illegal.character-not-allowed-here.marko"
|
|
948
948
|
},
|
|
@@ -1336,7 +1336,7 @@
|
|
|
1336
1336
|
"name": "punctuation.definition.tag.begin.marko"
|
|
1337
1337
|
}
|
|
1338
1338
|
},
|
|
1339
|
-
"end": "/>|(?<=</\\2
|
|
1339
|
+
"end": "/>|(?<=</>)|(?<=</\\2>)",
|
|
1340
1340
|
"endCaptures": {
|
|
1341
1341
|
"0": {
|
|
1342
1342
|
"name": "punctuation.definition.tag.end.marko"
|
|
@@ -1385,7 +1385,7 @@
|
|
|
1385
1385
|
"name": "punctuation.definition.tag.begin.marko"
|
|
1386
1386
|
}
|
|
1387
1387
|
},
|
|
1388
|
-
"end": "/>|(?<=</\\2
|
|
1388
|
+
"end": "/>|(?<=</>)|(?<=</\\2>)",
|
|
1389
1389
|
"endCaptures": {
|
|
1390
1390
|
"0": {
|
|
1391
1391
|
"name": "punctuation.definition.tag.end.marko"
|
|
@@ -1434,7 +1434,7 @@
|
|
|
1434
1434
|
"name": "punctuation.definition.tag.begin.marko"
|
|
1435
1435
|
}
|
|
1436
1436
|
},
|
|
1437
|
-
"end": "/>|(?<=</\\2
|
|
1437
|
+
"end": "/>|(?<=</>)|(?<=</\\2>)",
|
|
1438
1438
|
"endCaptures": {
|
|
1439
1439
|
"0": {
|
|
1440
1440
|
"name": "punctuation.definition.tag.end.marko"
|
|
@@ -1483,7 +1483,7 @@
|
|
|
1483
1483
|
"name": "punctuation.definition.tag.begin.marko"
|
|
1484
1484
|
}
|
|
1485
1485
|
},
|
|
1486
|
-
"end": "/>|(?<=</\\2
|
|
1486
|
+
"end": "/>|(?<=</>)|(?<=</\\2>)",
|
|
1487
1487
|
"endCaptures": {
|
|
1488
1488
|
"0": {
|
|
1489
1489
|
"name": "punctuation.definition.tag.end.marko"
|
|
@@ -1532,7 +1532,7 @@
|
|
|
1532
1532
|
"name": "punctuation.definition.tag.begin.marko"
|
|
1533
1533
|
}
|
|
1534
1534
|
},
|
|
1535
|
-
"end": "/>|(?<=</\\2
|
|
1535
|
+
"end": "/>|(?<=</>)|(?<=</\\2>)",
|
|
1536
1536
|
"endCaptures": {
|
|
1537
1537
|
"0": {
|
|
1538
1538
|
"name": "punctuation.definition.tag.end.marko"
|
|
@@ -1581,7 +1581,7 @@
|
|
|
1581
1581
|
"name": "punctuation.definition.tag.begin.marko"
|
|
1582
1582
|
}
|
|
1583
1583
|
},
|
|
1584
|
-
"end": "/>|(?<=</\\2
|
|
1584
|
+
"end": "/>|(?<=</>)|(?<=</\\2>)",
|
|
1585
1585
|
"endCaptures": {
|
|
1586
1586
|
"0": {
|
|
1587
1587
|
"name": "punctuation.definition.tag.end.marko"
|
|
@@ -1598,7 +1598,7 @@
|
|
|
1598
1598
|
"name": "punctuation.definition.tag.end.marko"
|
|
1599
1599
|
}
|
|
1600
1600
|
},
|
|
1601
|
-
"end": "\\s*(</)([-#$.0-:@-Z_a-z]+)?(
|
|
1601
|
+
"end": "\\s*(</)([-#$.0-:@-Z_a-z]+)?([^>]*)(>)",
|
|
1602
1602
|
"endCaptures": {
|
|
1603
1603
|
"1": {
|
|
1604
1604
|
"name": "punctuation.definition.tag.begin.marko"
|