tm-grammars 1.4.5 → 1.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -56,7 +56,7 @@ import { grammars } from 'tm-grammars'
56
56
  | `cue` | | [cue-sh/vscode-cue](https://github.com/cue-sh/vscode-cue/blob/0734615a2607fe03f5d6c1816f8f7435179659fc/syntaxes/cue.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/cue-sh/vscode-cue/master/LICENSE) | | 15.93 kB |
57
57
  | `cypher` | `cql` | [adam-cowley/neo4j-vscode](https://github.com/adam-cowley/neo4j-vscode/blob/ad90d275ac76c740018e78f78722343f730270e0/cypher/cypher.tmLanguage) | [MIT](https://raw.githubusercontent.com/adam-cowley/neo4j-vscode/main/LICENSE) | | 6.35 kB |
58
58
  | `d` | | [Pure-D/code-d](https://github.com/Pure-D/code-d/blob/466ac04dcc1f6d3fea50ef5ae7a920a121efd09c/syntaxes/d.json) | [MIT](https://raw.githubusercontent.com/Pure-D/code-d/master/LICENSE.md) | | 40.24 kB |
59
- | `dart` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/dart/syntaxes/dart.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 6.71 kB |
59
+ | `dart` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e9a8b6add5329f8124f23ff7143d95c22ce39f76/extensions/dart/syntaxes/dart.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 6.78 kB |
60
60
  | `dax` | | [huyza/dax-language](https://github.com/huyza/dax-language/blob/7fd39aa84552617daa258189b2550dcdbd14149a/syntaxes/dax.grammer.json) | | | 5.37 kB |
61
61
  | `diff` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/4549bd26c7b799284e0ebd8dc1e0310e6a8707a1/extensions/diff/syntaxes/diff.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 2.45 kB |
62
62
  | `docker` | `dockerfile` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/docker/syntaxes/docker.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 1.51 kB |
@@ -79,7 +79,7 @@ import { grammars } from 'tm-grammars'
79
79
  | `glimmer-ts` | `gts` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/312fb20cc04374eb8768369ebccabd12143edbe4/syntaxes/source.gts.json) | [MIT](https://raw.githubusercontent.com/lifeart/vsc-ember-syntax/master/LICENSE) | `typescript` `css` `javascript` `html` | 19.08 kB |
80
80
  | `glsl` | | [polym0rph/GLSL.tmbundle](https://github.com/polym0rph/GLSL.tmbundle/blob/6998d3bbd204e26746a5ca580cda4c650b9057b1/Syntaxes/GLSL.tmLanguage) | | `c` | 3.69 kB |
81
81
  | `gnuplot` | | [MarioSchwalbe/vscode-gnuplot](https://github.com/MarioSchwalbe/vscode-gnuplot/blob/c62c1a61c9b6b4658b43d76c397dc2ad43523b6a/syntaxes/gnuplot.tmLanguage) | [GPL-3.0](https://raw.githubusercontent.com/MarioSchwalbe/vscode-gnuplot/master/LICENSE) | | 16.46 kB |
82
- | `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/fc771c597f7e15500921e7965f999338f2dccbd1/extensions/go/syntaxes/go.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 42.51 kB |
82
+ | `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e9a8b6add5329f8124f23ff7143d95c22ce39f76/extensions/go/syntaxes/go.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 43.26 kB |
83
83
  | `graphql` | `gql` | [prisma-labs/vscode-graphql](https://github.com/prisma-labs/vscode-graphql/blob/4569aef2364b42b6acd8188e4a6ca9b0ba3c6a1d/grammars/graphql.json) | [MIT](https://raw.githubusercontent.com/graphql/vscode-graphql/master/LICENSE) | `javascript` `typescript` `jsx` `tsx` | 17.11 kB |
84
84
  | `groovy` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/groovy/syntaxes/groovy.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 18.63 kB |
85
85
  | `hack` | | [slackhq/vscode-hack](https://github.com/slackhq/vscode-hack/blob/b997653188b127a7261b0d26e7808217f3eb47bb/syntaxes/hack.json) | [MIT](https://raw.githubusercontent.com/slackhq/vscode-hack/master/LICENSE.md) | `html` `sql` | 80.66 kB |
@@ -125,7 +125,7 @@ import { grammars } from 'tm-grammars'
125
125
  | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/de9244e81505ff9154dc9422dbce434ac86fb981/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 13.82 kB |
126
126
  | `narrat` | `nar` | [liana-p/narrat-syntax-highlighting-vscode](https://github.com/liana-p/narrat-syntax-highlighting-vscode/blob/00d4b410338fc50ca0ce77a1f7e873c1fb66d376/syntaxes/narrat.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/liana-p/narrat-syntax-highlighting-vscode/main/LICENSE) | | 3.41 kB |
127
127
  | `nextflow` | `nf` | [nextflow-io/vscode-language-nextflow](https://github.com/nextflow-io/vscode-language-nextflow/blob/7eeb9be8d01556b7c51c59307275c2f720f2ddf4/syntaxes/nextflow.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nextflow-io/vscode-language-nextflow/master/LICENSE.md) | | 4.40 kB |
128
- | `nginx` | | [hangxingliu/vscode-nginx-conf-hint](https://github.com/hangxingliu/vscode-nginx-conf-hint/blob/0582d5b71a31ff893b3587996b233f22239fba57/src/syntax/nginx.tmLanguage) | [GPL-3.0](https://raw.githubusercontent.com/hangxingliu/vscode-nginx-conf-hint/main/LICENSE) | `lua` | 32.83 kB |
128
+ | `nginx` | | [hangxingliu/vscode-nginx-conf-hint](https://github.com/hangxingliu/vscode-nginx-conf-hint/blob/49159c02fd09dce264ded7802c9499a0f09646f5/src/syntax/nginx.tmLanguage) | [GPL-3.0](https://raw.githubusercontent.com/hangxingliu/vscode-nginx-conf-hint/main/LICENSE) | `lua` | 34.14 kB |
129
129
  | `nim` | | [pragmagic/vscode-nim](https://github.com/pragmagic/vscode-nim/blob/0272a0544ddf147fde98f8a8f2b624b7dcb19eb3/syntaxes/nim.json) | [NOASSERTION](https://raw.githubusercontent.com/pragmagic/vscode-nim/master/LICENSE) | `c` `html` `xml` `javascript` `css` `glsl` `markdown` | 21.82 kB |
130
130
  | `nix` | | [bbenoist/vscode-nix](https://github.com/bbenoist/vscode-nix/blob/9a7c81109624431e032d9b02c8029b13bc2000c8/syntaxes/nix.tmLanguage) | [MIT](https://raw.githubusercontent.com/bbenoist/vscode-nix/master/LICENSE.md) | | 14.32 kB |
131
131
  | `nushell` | `nu` | [nushell/vscode-nushell-lang](https://github.com/nushell/vscode-nushell-lang/blob/290cb5017fd431369dbe1b3a357ed5a62999f1e0/syntaxes/nushell.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nushell/vscode-nushell-lang/main/LICENSE) | | 17.65 kB |
@@ -272,7 +272,7 @@
272
272
  "name": "keyword.control.catch-exception.dart"
273
273
  },
274
274
  {
275
- "match": "(?<!\\$)\\b(break|case|continue|default|do|else|for|if|in|return|switch|while|when)\\b(?!\\$)",
275
+ "match": "(?<!\\$)\\b(break|case|continue|default|do|else|for|if|in|switch|while|when)\\b(?!\\$)",
276
276
  "name": "keyword.control.dart"
277
277
  },
278
278
  {
@@ -288,7 +288,11 @@
288
288
  "name": "keyword.control.new.dart"
289
289
  },
290
290
  {
291
- "match": "(?<!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension type|extension|external|factory|implements|get(?!\\()|mixin|native|operator|set(?!\\()|typedef|with|covariant)\\b(?!\\$)",
291
+ "match": "(?<!\\$)\\b(return)\\b(?!\\$)",
292
+ "name": "keyword.control.return.dart"
293
+ },
294
+ {
295
+ "match": "(?<!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension type|extension|external|factory|implements|get(?![(<])|mixin|native|operator|set(?![(<])|typedef|with|covariant)\\b(?!\\$)",
292
296
  "name": "keyword.declaration.dart"
293
297
  },
294
298
  {
package/grammars/go.json CHANGED
@@ -30,7 +30,7 @@
30
30
  }
31
31
  },
32
32
  "comment": "After control variables, to not highlight as a struct/interface (before formatting with gofmt)",
33
- "match": "(?:(?<=\\brange\\b|\\bswitch\\b|\\;|\\bif\\b|\\bfor\\b|\\<|\\>|\\<\\=|\\>\\=|\\=\\=|\\!\\=|\\w(?:\\+|/|\\-|\\*|\\%)|\\w(?:\\+|/|\\-|\\*|\\%)\\=|\\|\\||\\&\\&)(?:\\s*)([[:alnum:]\\-\\_\\!\\.\\[\\]\\<\\>\\=\\*/\\+\\%\\:]+)(?:\\s*)(?=\\{))"
33
+ "match": "(?:(?<=\\brange\\b|\\bswitch\\b|\\;|\\bif\\b|\\bfor\\b|\\<|\\>|\\<\\=|\\>\\=|\\=\\=|\\!\\=|\\w(?:\\+|/|\\-|\\*|\\%)|\\w(?:\\+|/|\\-|\\*|\\%)\\=|\\|\\||\\&\\&)(?:\\s*)((?![\\[\\]]+)[[:alnum:]\\-\\_\\!\\.\\[\\]\\<\\>\\=\\*/\\+\\%\\:]+)(?:\\s*)(?=\\{))"
34
34
  },
35
35
  "brackets": {
36
36
  "patterns": [
@@ -173,7 +173,7 @@
173
173
  }
174
174
  },
175
175
  "comment": "make keyword",
176
- "match": "(?:(\\bmake\\b)(?:(\\()((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?:[\\w\\.\\*\\[\\]\\{\\}]+)?(?:\\[(?:[^\\]]+)?\\])?(?:[\\w\\.\\*\\[\\]\\{\\}]+)?)?((?:\\,\\s*(?:[\\w\\.\\(\\)]+)?)+)?(\\))))"
176
+ "match": "(?:(\\bmake\\b)(?:(\\()((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?:[\\w\\.\\*\\[\\]\\{\\}]+)?(?:\\[(?:[^\\]]+)?\\])?(?:[\\w\\.\\*\\[\\]\\{\\}]+)?)?((?:\\,\\s*(?:[\\w\\.\\(\\)/\\+\\-\\<\\>\\&\\|\\%\\*]+)?)+)?(\\))))"
177
177
  }
178
178
  ]
179
179
  },
@@ -253,7 +253,7 @@
253
253
  }
254
254
  },
255
255
  "comment": "double parentheses types",
256
- "match": "(?:(\\((?:[\\w\\.\\[\\]\\*\\&]+)\\))(?=\\())"
256
+ "match": "(?:(?<!\\w)(\\((?:[\\w\\.\\[\\]\\*\\&]+)\\))(?=\\())"
257
257
  },
258
258
  "function_declaration": {
259
259
  "begin": "(?:^(\\bfunc\\b)(?:\\s*(\\([^\\)]+\\)\\s*)?(?:(\\w+)(?=\\(|\\[))?))",
@@ -317,12 +317,7 @@
317
317
  "name": "entity.name.function.go"
318
318
  }
319
319
  ]
320
- },
321
- "patterns": [
322
- {
323
- "include": "#type-declarations"
324
- }
325
- ]
320
+ }
326
321
  },
327
322
  "comment": "Function declarations",
328
323
  "end": "(?:(?<=\\))\\s*((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?!(?:[\\[\\]\\*]+)?(?:\\bstruct\\b|\\binterface\\b))[\\w\\.\\-\\*\\[\\]]+)?\\s*(?=\\{))",
@@ -403,14 +398,14 @@
403
398
  "include": "#parameter-variable-types"
404
399
  },
405
400
  {
406
- "match": "(?:\\w+)",
401
+ "match": "\\w+",
407
402
  "name": "entity.name.type.go"
408
403
  }
409
404
  ]
410
405
  }
411
406
  },
412
407
  "comment": "single function as a type returned type(s) declaration",
413
- "match": "(?:(?<=\\))\\s+((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?[\\w\\*\\.\\[\\]\\<\\>\\-]+(?:\\s*)(?:\\/(?:\\/|\\*).*)?)$)"
408
+ "match": "(?:(?<=\\))(?:\\s*)((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?[\\w\\*\\.\\[\\]\\<\\>\\-]+(?:\\s*)(?:\\/(?:\\/|\\*).*)?)$)"
414
409
  },
415
410
  {
416
411
  "include": "$self"
@@ -610,7 +605,7 @@
610
605
  }
611
606
  },
612
607
  "comment": "functions in-line with multi return types",
613
- "match": "(?:(\\bfunc\\b)((?:\\((?:[^/]*)\\))(?:\\s+)(?:\\((?:[^/]*)\\)))(?:\\s+)(?=\\{))"
608
+ "match": "(?:(\\bfunc\\b)((?:\\((?:[^/]*?)\\))(?:\\s+)(?:\\((?:[^/]*?)\\)))(?:\\s+)(?=\\{))"
614
609
  },
615
610
  "generic_param_types": {
616
611
  "comment": "generic parameter variables and types",
@@ -905,6 +900,42 @@
905
900
  }
906
901
  },
907
902
  "patterns": [
903
+ {
904
+ "include": "#support_functions"
905
+ },
906
+ {
907
+ "include": "#type-declarations-without-brackets"
908
+ },
909
+ {
910
+ "begin": "(?:([\\w\\.\\*]+)?(\\[))",
911
+ "beginCaptures": {
912
+ "1": {
913
+ "patterns": [
914
+ {
915
+ "include": "#type-declarations"
916
+ },
917
+ {
918
+ "match": "(?:\\w+)",
919
+ "name": "entity.name.type.go"
920
+ }
921
+ ]
922
+ },
923
+ "2": {
924
+ "name": "punctuation.definition.begin.bracket.square.go"
925
+ }
926
+ },
927
+ "end": "\\]",
928
+ "endCaptures": {
929
+ "0": {
930
+ "name": "punctuation.definition.end.bracket.square.go"
931
+ }
932
+ },
933
+ "patterns": [
934
+ {
935
+ "include": "#generic_param_types"
936
+ }
937
+ ]
938
+ },
908
939
  {
909
940
  "begin": "\\(",
910
941
  "beginCaptures": {
@@ -921,15 +952,9 @@
921
952
  "patterns": [
922
953
  {
923
954
  "include": "#function_param_types"
924
- },
925
- {
926
- "include": "$self"
927
955
  }
928
956
  ]
929
957
  },
930
- {
931
- "include": "#support_functions"
932
- },
933
958
  {
934
959
  "captures": {
935
960
  "1": {
@@ -938,17 +963,14 @@
938
963
  "include": "#type-declarations"
939
964
  },
940
965
  {
941
- "include": "#generic_types"
942
- },
943
- {
944
- "match": "(?:\\w+)",
966
+ "match": "\\w+",
945
967
  "name": "entity.name.type.go"
946
968
  }
947
969
  ]
948
970
  }
949
971
  },
950
- "comment": "single declaration | with or declarations",
951
- "match": "((?:\\s+\\|)?(?:[\\w\\.\\[\\]\\*]+)(?:\\s+\\|)?)"
972
+ "comment": "other types",
973
+ "match": "([\\w\\.]+)"
952
974
  },
953
975
  {
954
976
  "include": "$self"
@@ -1478,7 +1500,7 @@
1478
1500
  "comment": "Note that the order here is very important!",
1479
1501
  "patterns": [
1480
1502
  {
1481
- "match": "((?:\\*|&)+)(?:(?!\\d)(?=(?:[\\w\\[\\]])|(?:\\<\\-)))",
1503
+ "match": "((?:\\*|\\&)+)(?:(?!\\d)(?=(?:[\\w\\[\\]])|(?:\\<\\-)))",
1482
1504
  "name": "keyword.operator.address.go"
1483
1505
  },
1484
1506
  {
@@ -1575,16 +1597,9 @@
1575
1597
  ]
1576
1598
  },
1577
1599
  "other_variables": {
1578
- "match": "(?:\\w+)",
1579
- "name": "variable.other.go",
1580
- "patterns": [
1581
- {
1582
- "include": "#storage_types"
1583
- },
1584
- {
1585
- "include": "$self"
1586
- }
1587
- ]
1600
+ "comment": "all other variables",
1601
+ "match": "\\w+",
1602
+ "name": "variable.other.go"
1588
1603
  },
1589
1604
  "package_name": {
1590
1605
  "patterns": [
@@ -2088,11 +2103,18 @@
2088
2103
  "struct_variable_types_fields_multi": {
2089
2104
  "patterns": [
2090
2105
  {
2091
- "begin": "(?:\\s*)?([\\s\\,\\w]+)(?:\\s+)(?:(?:[\\[\\]\\*])+)?(\\bstruct\\b)\\s*(\\{)",
2106
+ "begin": "(?:(\\w+(?:\\,\\s*\\w+)*)(?:\\s+)(?:(?:[\\[\\]\\*])+)?(\\bstruct\\b)(?:\\s*)(\\{))",
2092
2107
  "beginCaptures": {
2093
2108
  "1": {
2094
- "match": "(?:\\w+)",
2095
- "name": "variable.other.property.go"
2109
+ "patterns": [
2110
+ {
2111
+ "include": "#type-declarations"
2112
+ },
2113
+ {
2114
+ "match": "\\w+",
2115
+ "name": "variable.other.property.go"
2116
+ }
2117
+ ]
2096
2118
  },
2097
2119
  "2": {
2098
2120
  "name": "keyword.struct.go"
@@ -2336,7 +2358,7 @@
2336
2358
  }
2337
2359
  },
2338
2360
  "comment": "Support Functions",
2339
- "match": "(?:(?:((?<=\\.)\\w+)|(\\w+))(\\[(?:(?:[\\w\\.\\*\\[\\]\\{\\}\"\\']+)(?:(?:\\,\\s*(?:[\\w\\.\\*\\[\\]\\{\\}]+))*))?\\])?(?=\\())"
2361
+ "match": "(?:(?:((?<=\\.)\\b\\w+)|(\\b\\w+))(\\[(?:(?:[\\w\\.\\*\\[\\]\\{\\}\"\\']+)(?:(?:\\,\\s*(?:[\\w\\.\\*\\[\\]\\{\\}]+))*))?\\])?(?=\\())"
2340
2362
  },
2341
2363
  "switch_select_case_variables": {
2342
2364
  "captures": {
@@ -2351,6 +2373,9 @@
2351
2373
  {
2352
2374
  "include": "#support_functions"
2353
2375
  },
2376
+ {
2377
+ "include": "#variable_assignment"
2378
+ },
2354
2379
  {
2355
2380
  "match": "\\w+",
2356
2381
  "name": "variable.other.go"
@@ -2358,7 +2383,7 @@
2358
2383
  ]
2359
2384
  }
2360
2385
  },
2361
- "comment": "variables after case control keyword in switch/select expression",
2386
+ "comment": "variables after case control keyword in switch/select expression, to not scope them as property variables",
2362
2387
  "match": "(?:(?:^\\s*(\\bcase\\b))(?:\\s+)([\\s\\S]+(?:\\:)\\s*(?:/(?:/|\\*).*)?)$)"
2363
2388
  },
2364
2389
  "switch_types": {
@@ -2370,7 +2395,7 @@
2370
2395
  "include": "#operators"
2371
2396
  },
2372
2397
  {
2373
- "match": "(?:\\w+)",
2398
+ "match": "\\w+",
2374
2399
  "name": "variable.other.assignment.go"
2375
2400
  }
2376
2401
  ]
@@ -2384,7 +2409,7 @@
2384
2409
  "include": "#type-declarations"
2385
2410
  },
2386
2411
  {
2387
- "match": "(?:\\w+)",
2412
+ "match": "\\w+",
2388
2413
  "name": "variable.other.go"
2389
2414
  }
2390
2415
  ]
@@ -2407,6 +2432,7 @@
2407
2432
  "name": "punctuation.definition.begin.bracket.curly.go"
2408
2433
  }
2409
2434
  },
2435
+ "comment": "switch type assertions, only highlights types after case keyword",
2410
2436
  "end": "(?:\\})",
2411
2437
  "endCaptures": {
2412
2438
  "0": {
@@ -2414,9 +2440,6 @@
2414
2440
  }
2415
2441
  },
2416
2442
  "patterns": [
2417
- {
2418
- "include": "#type-declarations"
2419
- },
2420
2443
  {
2421
2444
  "captures": {
2422
2445
  "1": {
@@ -2444,8 +2467,33 @@
2444
2467
  ]
2445
2468
  }
2446
2469
  },
2470
+ "comment": "types after case keyword with single line",
2447
2471
  "match": "(?:^\\s*(\\bcase\\b))(?:\\s+)([\\w\\.\\,\\*\\=\\<\\>\\!\\s]+)(:)(\\s*/(?:/|\\*)\\s*.*)?$"
2448
2472
  },
2473
+ {
2474
+ "begin": "\\bcase\\b",
2475
+ "beginCaptures": {
2476
+ "0": {
2477
+ "name": "keyword.control.go"
2478
+ }
2479
+ },
2480
+ "comment": "types after case keyword with multi lines",
2481
+ "end": "\\:",
2482
+ "endCaptures": {
2483
+ "0": {
2484
+ "name": "punctuation.other.colon.go"
2485
+ }
2486
+ },
2487
+ "patterns": [
2488
+ {
2489
+ "include": "#type-declarations"
2490
+ },
2491
+ {
2492
+ "match": "\\w+",
2493
+ "name": "entity.name.type.go"
2494
+ }
2495
+ ]
2496
+ },
2449
2497
  {
2450
2498
  "include": "$self"
2451
2499
  }
@@ -482,7 +482,7 @@
482
482
  ]
483
483
  },
484
484
  {
485
- "begin": "([\"'\\s]|^)(auth_)(delay|basic|basic_user_file|jwt|jwt_claim_set|jwt_header_set|jwt_key_file|jwt_key_request|jwt_leeway|jwt_type|jwt_require|request|request_set|http|http_header|http_pass_client_cert|http_timeout)([\"'\\s]|$)",
485
+ "begin": "([\"'\\s]|^)(auth_)(delay|basic|basic_user_file|jwt|jwt_claim_set|jwt_header_set|jwt_key_cache|jwt_key_file|jwt_key_request|jwt_leeway|jwt_type|jwt_require|request|request_set|http|http_header|http_pass_client_cert|http_timeout)([\"'\\s]|$)",
486
486
  "beginCaptures": {
487
487
  "1": {
488
488
  "name": "keyword.directive.nginx"
@@ -1266,7 +1266,7 @@
1266
1266
  ]
1267
1267
  },
1268
1268
  {
1269
- "begin": "([\"'\\s]|^)(memcached_)(bind|buffer_size|connect_timeout|force_ranges|gzip_flag|next_upstream|next_upstream_timeout|next_upstream_tries|pass|read_timeout|send_timeout|socket_keepalive)([\"'\\s]|$)",
1269
+ "begin": "([\"'\\s]|^)(memcached_)(bind|buffer_size|connect_timeout|gzip_flag|next_upstream|next_upstream_timeout|next_upstream_tries|pass|read_timeout|send_timeout|socket_keepalive)([\"'\\s]|$)",
1270
1270
  "beginCaptures": {
1271
1271
  "1": {
1272
1272
  "name": "keyword.directive.nginx"
@@ -1294,7 +1294,7 @@
1294
1294
  ]
1295
1295
  },
1296
1296
  {
1297
- "begin": "([\"'\\s]|^)(mp4_)(buffer_size|max_buffer_size|limit_rate|limit_rate_after)([\"'\\s]|$)",
1297
+ "begin": "([\"'\\s]|^)(mp4_)(buffer_size|max_buffer_size|limit_rate|limit_rate_after|start_key_frame)([\"'\\s]|$)",
1298
1298
  "beginCaptures": {
1299
1299
  "1": {
1300
1300
  "name": "keyword.directive.nginx"
@@ -1518,7 +1518,7 @@
1518
1518
  ]
1519
1519
  },
1520
1520
  {
1521
- "begin": "([\"'\\s]|^)(spdy_)(chunk_size|headers_comp)([\"'\\s]|$)",
1521
+ "begin": "([\"'\\s]|^)(ssi_)(last_modified|min_file_chunk|silent_errors|types|value_length)([\"'\\s]|$)",
1522
1522
  "beginCaptures": {
1523
1523
  "1": {
1524
1524
  "name": "keyword.directive.nginx"
@@ -1546,7 +1546,7 @@
1546
1546
  ]
1547
1547
  },
1548
1548
  {
1549
- "begin": "([\"'\\s]|^)(ssi_)(last_modified|min_file_chunk|silent_errors|types|value_length)([\"'\\s]|$)",
1549
+ "begin": "([\"'\\s]|^)(sub_)(filter|filter_last_modified|filter_once|filter_types)([\"'\\s]|$)",
1550
1550
  "beginCaptures": {
1551
1551
  "1": {
1552
1552
  "name": "keyword.directive.nginx"
@@ -1574,7 +1574,7 @@
1574
1574
  ]
1575
1575
  },
1576
1576
  {
1577
- "begin": "([\"'\\s]|^)(sub_)(filter|filter_last_modified|filter_once|filter_types)([\"'\\s]|$)",
1577
+ "begin": "([\"'\\s]|^)(health_)(check|check_timeout)([\"'\\s]|$)",
1578
1578
  "beginCaptures": {
1579
1579
  "1": {
1580
1580
  "name": "keyword.directive.nginx"
@@ -1602,7 +1602,7 @@
1602
1602
  ]
1603
1603
  },
1604
1604
  {
1605
- "begin": "([\"'\\s]|^)(health_)(check|check_timeout)([\"'\\s]|$)",
1605
+ "begin": "([\"'\\s]|^)(userid_)(domain|expires|flags|mark|name|p3p|path|service)([\"'\\s]|$)",
1606
1606
  "beginCaptures": {
1607
1607
  "1": {
1608
1608
  "name": "keyword.directive.nginx"
@@ -1630,7 +1630,7 @@
1630
1630
  ]
1631
1631
  },
1632
1632
  {
1633
- "begin": "([\"'\\s]|^)(userid_)(domain|expires|flags|mark|name|p3p|path|service)([\"'\\s]|$)",
1633
+ "begin": "([\"'\\s]|^)(uwsgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|modifier1|modifier2|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_timeout|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth|store|store_access|temp_file_write_size|temp_path)([\"'\\s]|$)",
1634
1634
  "beginCaptures": {
1635
1635
  "1": {
1636
1636
  "name": "keyword.directive.nginx"
@@ -1658,7 +1658,7 @@
1658
1658
  ]
1659
1659
  },
1660
1660
  {
1661
- "begin": "([\"'\\s]|^)(uwsgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|modifier1|modifier2|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_timeout|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth|store|store_access|temp_file_write_size|temp_path)([\"'\\s]|$)",
1661
+ "begin": "([\"'\\s]|^)(http2_)(body_preread_size|chunk_size|idle_timeout|max_concurrent_pushes|max_concurrent_streams|max_field_size|max_header_size|max_requests|push|push_preload|recv_buffer_size|recv_timeout)([\"'\\s]|$)",
1662
1662
  "beginCaptures": {
1663
1663
  "1": {
1664
1664
  "name": "keyword.directive.nginx"
@@ -1686,7 +1686,35 @@
1686
1686
  ]
1687
1687
  },
1688
1688
  {
1689
- "begin": "([\"'\\s]|^)(http2_)(body_preread_size|chunk_size|idle_timeout|max_concurrent_pushes|max_concurrent_streams|max_field_size|max_header_size|max_requests|push|push_preload|recv_buffer_size|recv_timeout)([\"'\\s]|$)",
1689
+ "begin": "([\"'\\s]|^)(http3_)(hq|max_concurrent_streams|stream_buffer_size)([\"'\\s]|$)",
1690
+ "beginCaptures": {
1691
+ "1": {
1692
+ "name": "keyword.directive.nginx"
1693
+ },
1694
+ "2": {
1695
+ "name": "keyword.directive.nginx"
1696
+ },
1697
+ "3": {
1698
+ "name": "keyword.directive.nginx"
1699
+ },
1700
+ "4": {
1701
+ "name": "keyword.directive.nginx"
1702
+ }
1703
+ },
1704
+ "end": ";",
1705
+ "endCaptures": {
1706
+ "0": {
1707
+ "name": "punctuation.terminator.nginx"
1708
+ }
1709
+ },
1710
+ "patterns": [
1711
+ {
1712
+ "include": "#values"
1713
+ }
1714
+ ]
1715
+ },
1716
+ {
1717
+ "begin": "([\"'\\s]|^)(quic_)(active_connection_id_limit|bpf|gso|host_key|retry)([\"'\\s]|$)",
1690
1718
  "beginCaptures": {
1691
1719
  "1": {
1692
1720
  "name": "keyword.directive.nginx"
@@ -1853,6 +1881,34 @@
1853
1881
  }
1854
1882
  ]
1855
1883
  },
1884
+ {
1885
+ "begin": "([\"'\\s]|^)(mqtt_)(preread|buffers|rewrite_buffer_size|set_connect)([\"'\\s]|$)",
1886
+ "beginCaptures": {
1887
+ "1": {
1888
+ "name": "keyword.directive.nginx"
1889
+ },
1890
+ "2": {
1891
+ "name": "keyword.directive.nginx"
1892
+ },
1893
+ "3": {
1894
+ "name": "keyword.directive.nginx"
1895
+ },
1896
+ "4": {
1897
+ "name": "keyword.directive.nginx"
1898
+ }
1899
+ },
1900
+ "end": ";",
1901
+ "endCaptures": {
1902
+ "0": {
1903
+ "name": "punctuation.terminator.nginx"
1904
+ }
1905
+ },
1906
+ "patterns": [
1907
+ {
1908
+ "include": "#values"
1909
+ }
1910
+ ]
1911
+ },
1856
1912
  {
1857
1913
  "begin": "([\"'\\s]|^)(zone_)(sync_buffers|sync_connect_retry_interval|sync_connect_timeout|sync_interval|sync_recv_buffer_size|sync_server|sync_ssl|sync_ssl_certificate|sync_ssl_certificate_key|sync_ssl_ciphers|sync_ssl_conf_command|sync_ssl_crl|sync_ssl_name|sync_ssl_password_file|sync_ssl_protocols|sync_ssl_server_name|sync_ssl_trusted_certificate|sync_ssl_verify|sync_ssl_verify_depth|sync_timeout)([\"'\\s]|$)",
1858
1914
  "beginCaptures": {
@@ -1882,7 +1938,35 @@
1882
1938
  ]
1883
1939
  },
1884
1940
  {
1885
- "begin": "([\"'\\s]|^)(js_)(body_filter|content|fetch_ciphers|fetch_protocols|fetch_trusted_certificate|fetch_verify_depth|header_filter|import|include|path|set|var|access|filter|preread)([\"'\\s]|$)",
1941
+ "begin": "([\"'\\s]|^)(otel_)(exporter|service_name|trace|trace_context|span_name|span_attr)([\"'\\s]|$)",
1942
+ "beginCaptures": {
1943
+ "1": {
1944
+ "name": "keyword.directive.nginx"
1945
+ },
1946
+ "2": {
1947
+ "name": "keyword.directive.nginx"
1948
+ },
1949
+ "3": {
1950
+ "name": "keyword.directive.nginx"
1951
+ },
1952
+ "4": {
1953
+ "name": "keyword.directive.nginx"
1954
+ }
1955
+ },
1956
+ "end": ";",
1957
+ "endCaptures": {
1958
+ "0": {
1959
+ "name": "punctuation.terminator.nginx"
1960
+ }
1961
+ },
1962
+ "patterns": [
1963
+ {
1964
+ "include": "#values"
1965
+ }
1966
+ ]
1967
+ },
1968
+ {
1969
+ "begin": "([\"'\\s]|^)(js_)(body_filter|content|fetch_buffer_size|fetch_ciphers|fetch_max_response_buffer_size|fetch_protocols|fetch_timeout|fetch_trusted_certificate|fetch_verify|fetch_verify_depth|header_filter|import|include|path|periodic|preload_object|set|shared_dict_zone|var|access|filter|preread)([\"'\\s]|$)",
1886
1970
  "beginCaptures": {
1887
1971
  "1": {
1888
1972
  "name": "keyword.directive.nginx"
@@ -1910,7 +1994,7 @@
1910
1994
  ]
1911
1995
  },
1912
1996
  {
1913
- "begin": "([\"'\\s]|^)(daemon|env|include|pid|use|user|aio|alias|directio|etag|listen|resolver|root|satisfy|sendfile|allow|deny|api|autoindex|charset|geo|gunzip|gzip|expires|index|keyval|mirror|perl|set|slice|ssi|ssl|zone|state|hash|keepalive|queue|random|sticky|match|userid|protocol|timeout|xclient|starttls|load_module|lock_file|master_process|multi_accept|pcre_jit|thread_pool|timer_resolution|working_directory|absolute_redirect|aio_write|chunked_transfer_encoding|connection_pool_size|default_type|directio_alignment|disable_symlinks|if_modified_since|ignore_invalid_headers|large_client_header_buffers|merge_slashes|output_buffers|port_in_redirect|postpone_output|read_ahead|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver_timeout|sendfile_max_chunk|subrequest_output_buffer_size|try_files|underscores_in_headers|addition_types|override_charset|source_charset|create_full_put_path|min_delete_depth|f4f_buffer_size|gunzip_buffers|keyval_zone|access_log|mirror_request_body|random_index|set_real_ip_from|valid_referers|rewrite_log|uninitialized_variable_warn|split_clients|least_time|sticky_cookie_insert|xml_entities|google_perftools_profiles)([\"'\\s]|$)",
1997
+ "begin": "([\"'\\s]|^)(daemon|env|include|pid|use|user|aio|alias|directio|etag|listen|resolver|root|satisfy|sendfile|allow|deny|api|autoindex|charset|geo|gunzip|gzip|expires|index|keyval|mirror|perl|set|slice|ssi|ssl|zone|state|hash|keepalive|queue|random|sticky|match|userid|http2|http3|protocol|timeout|xclient|starttls|mqtt|load_module|lock_file|master_process|multi_accept|pcre_jit|thread_pool|timer_resolution|working_directory|absolute_redirect|aio_write|chunked_transfer_encoding|connection_pool_size|default_type|directio_alignment|disable_symlinks|if_modified_since|ignore_invalid_headers|large_client_header_buffers|merge_slashes|output_buffers|port_in_redirect|postpone_output|read_ahead|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver_timeout|sendfile_max_chunk|subrequest_output_buffer_size|try_files|underscores_in_headers|addition_types|override_charset|source_charset|create_full_put_path|min_delete_depth|f4f_buffer_size|gunzip_buffers|internal_redirect|keyval_zone|access_log|mirror_request_body|random_index|set_real_ip_from|valid_referers|rewrite_log|uninitialized_variable_warn|split_clients|least_time|sticky_cookie_insert|xml_entities|google_perftools_profiles)([\"'\\s]|$)",
1914
1998
  "beginCaptures": {
1915
1999
  "1": {
1916
2000
  "name": "keyword.directive.nginx"
@@ -2046,7 +2130,7 @@
2046
2130
  "name": "constant.numeric.nginx"
2047
2131
  }
2048
2132
  },
2049
- "match": "(?:^|\\s)(weight|max_conn|max_fails|fail_timeout|slow_start)(=)([0-9][0-9\\.]*[bBkKmMgGtTsShHdD]?)(?:\\s|;|$)"
2133
+ "match": "(?:^|\\s)(weight|max_conn|max_fails|fail_timeout|slow_start)(=)(\\d[\\d\\.]*[bBkKmMgGtTsShHdD]?)(?:\\s|;|$)"
2050
2134
  },
2051
2135
  {
2052
2136
  "include": "#values"
@@ -2068,14 +2152,14 @@
2068
2152
  "name": "constant.numeric.nginx"
2069
2153
  }
2070
2154
  },
2071
- "match": "[\\t ](=?[0-9][0-9\\.]*[bBkKmMgGtTsShHdD]?)(?=[\\t ;])"
2155
+ "match": "(?<=\\G|\\s)(=?[0-9][0-9\\.]*[bBkKmMgGtTsShHdD]?)(?=[\\t ;])"
2072
2156
  },
2073
2157
  {
2074
- "match": "[\\t ](on|off|true|false)(?=[\\t ;])",
2158
+ "match": "(?<=\\G|\\s)(on|off|true|false)(?=[\\t ;])",
2075
2159
  "name": "constant.language.nginx"
2076
2160
  },
2077
2161
  {
2078
- "match": "[\\t ](kqueue|rtsig|epoll|\\/dev\\/poll|select|poll|eventport|max|all|default_server|default|main|crit|error|debug|warn|notice|last)(?=[\\t ;])",
2162
+ "match": "(?<=\\G|\\s)(kqueue|rtsig|epoll|\\/dev\\/poll|select|poll|eventport|max|all|default_server|default|main|crit|error|debug|warn|notice|last)(?=[\\t ;])",
2079
2163
  "name": "constant.language.nginx"
2080
2164
  },
2081
2165
  {
package/index.js CHANGED
@@ -535,18 +535,18 @@ export const grammars = [
535
535
  source: 'https://github.com/Pure-D/code-d/blob/466ac04dcc1f6d3fea50ef5ae7a920a121efd09c/syntaxes/d.json',
536
536
  },
537
537
  {
538
- byteSize: 6866,
538
+ byteSize: 6940,
539
539
  categories: [
540
540
  'general',
541
541
  ],
542
542
  displayName: 'Dart',
543
- lastUpdate: '2023-12-13T12:08:01Z',
543
+ lastUpdate: '2024-02-27T11:14:40Z',
544
544
  license: 'MIT',
545
545
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
546
546
  name: 'dart',
547
547
  scopeName: 'source.dart',
548
- sha: '3c86ede5f554f6e196c832394e126b291a1de606',
549
- source: 'https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/dart/syntaxes/dart.tmLanguage.json',
548
+ sha: 'e9a8b6add5329f8124f23ff7143d95c22ce39f76',
549
+ source: 'https://github.com/microsoft/vscode/blob/e9a8b6add5329f8124f23ff7143d95c22ce39f76/extensions/dart/syntaxes/dart.tmLanguage.json',
550
550
  },
551
551
  {
552
552
  byteSize: 5498,
@@ -870,18 +870,18 @@ export const grammars = [
870
870
  source: 'https://github.com/MarioSchwalbe/vscode-gnuplot/blob/c62c1a61c9b6b4658b43d76c397dc2ad43523b6a/syntaxes/gnuplot.tmLanguage',
871
871
  },
872
872
  {
873
- byteSize: 43529,
873
+ byteSize: 44298,
874
874
  categories: [
875
875
  'general',
876
876
  ],
877
877
  displayName: 'Go',
878
- lastUpdate: '2024-02-07T13:33:31Z',
878
+ lastUpdate: '2024-02-27T11:14:40Z',
879
879
  license: 'MIT',
880
880
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
881
881
  name: 'go',
882
882
  scopeName: 'source.go',
883
- sha: 'fc771c597f7e15500921e7965f999338f2dccbd1',
884
- source: 'https://github.com/microsoft/vscode/blob/fc771c597f7e15500921e7965f999338f2dccbd1/extensions/go/syntaxes/go.tmLanguage.json',
883
+ sha: 'e9a8b6add5329f8124f23ff7143d95c22ce39f76',
884
+ source: 'https://github.com/microsoft/vscode/blob/e9a8b6add5329f8124f23ff7143d95c22ce39f76/extensions/go/syntaxes/go.tmLanguage.json',
885
885
  },
886
886
  {
887
887
  aliases: [
@@ -1714,7 +1714,7 @@ export const grammars = [
1714
1714
  source: 'https://github.com/nextflow-io/vscode-language-nextflow/blob/7eeb9be8d01556b7c51c59307275c2f720f2ddf4/syntaxes/nextflow.tmLanguage.json',
1715
1715
  },
1716
1716
  {
1717
- byteSize: 33617,
1717
+ byteSize: 34956,
1718
1718
  categories: [
1719
1719
  'config',
1720
1720
  ],
@@ -1722,13 +1722,13 @@ export const grammars = [
1722
1722
  embedded: [
1723
1723
  'lua',
1724
1724
  ],
1725
- lastUpdate: '2021-11-18T16:10:10Z',
1725
+ lastUpdate: '2024-02-28T17:19:46Z',
1726
1726
  license: 'GPL-3.0',
1727
1727
  licenseUrl: 'https://raw.githubusercontent.com/hangxingliu/vscode-nginx-conf-hint/main/LICENSE',
1728
1728
  name: 'nginx',
1729
1729
  scopeName: 'source.nginx',
1730
- sha: '0582d5b71a31ff893b3587996b233f22239fba57',
1731
- source: 'https://github.com/hangxingliu/vscode-nginx-conf-hint/blob/0582d5b71a31ff893b3587996b233f22239fba57/src/syntax/nginx.tmLanguage',
1730
+ sha: '49159c02fd09dce264ded7802c9499a0f09646f5',
1731
+ source: 'https://github.com/hangxingliu/vscode-nginx-conf-hint/blob/49159c02fd09dce264ded7802c9499a0f09646f5/src/syntax/nginx.tmLanguage',
1732
1732
  },
1733
1733
  {
1734
1734
  byteSize: 22343,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.4.5",
4
+ "version": "1.4.7",
5
5
  "packageManager": "pnpm@8.15.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",