tm-grammars 1.15.2 → 1.15.3

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
@@ -76,7 +76,7 @@ import { grammars } from 'tm-grammars'
76
76
  | `fluent` | `ftl` | [macabeus/vscode-fluent](https://github.com/macabeus/vscode-fluent/blob/8544ea296a7769a359f43ddff4dc4b6c61f5cf59/syntaxes/fluent.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/macabeus/vscode-fluent/master/LICENSE) | | 3.39 kB |
77
77
  | `fortran-fixed-form` | `f` `for` `f77` | [fortran-lang/vscode-fortran-support](https://github.com/fortran-lang/vscode-fortran-support/blob/e642012094fc0a7379f204bb4e61243005afb1da/syntaxes/fortran_fixed-form.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fortran-lang/vscode-fortran-support/main/LICENSE) | `fortran-free-form` | 905.00 B |
78
78
  | `fortran-free-form` | `f90` `f95` `f03` `f08` `f18` | [fortran-lang/vscode-fortran-support](https://github.com/fortran-lang/vscode-fortran-support/blob/f7fb41579770a0d8c75b9f295d167b31147b4f33/syntaxes/fortran_free-form.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fortran-lang/vscode-fortran-support/main/LICENSE) | | 92.92 kB |
79
- | `fsharp` | `f#` `fs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ed4e6eda599f37bac9a11952403a6e63fd4f5a4d/extensions/fsharp/syntaxes/fsharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `markdown` | 24.25 kB |
79
+ | `fsharp` | `f#` `fs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/9473445f7d3dcb5c579f42ece8b6c18c43c63ed3/extensions/fsharp/syntaxes/fsharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `markdown` | 24.25 kB |
80
80
  | `gdresource` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDResource.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | `gdshader` `gdscript` | 4.90 kB |
81
81
  | `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/9750f8dfc6e4eeba96f7df62432751930af95337/syntaxes/GDScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 17.83 kB |
82
82
  | `gdshader` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDShader.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 5.95 kB |
@@ -118,12 +118,12 @@ import { grammars } from 'tm-grammars'
118
118
  | `jsonnet` | | [heptio/vscode-jsonnet](https://github.com/heptio/vscode-jsonnet/blob/39088f9cde9f483c8e0efeb67a3fd561cd873aad/syntaxes/jsonnet.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/heptio/vscode-jsonnet/master/LICENSE) | | 3.32 kB |
119
119
  | `jssm` | `fsl` | [StoneCypher/sublime-jssm](https://github.com/StoneCypher/sublime-jssm/blob/2be02a59d284229bbbfb3dc6c2bdcec9b2c263ef/jssm.tmLanguage) | [MIT](https://raw.githubusercontent.com/StoneCypher/sublime-jssm/master/LICENSE) | | 2.79 kB |
120
120
  | `jsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 173.35 kB |
121
- | `julia` | `jl` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/julia/syntaxes/julia.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp` `python` `javascript` `r` `sql` | 32.82 kB |
121
+ | `julia` | `jl` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/9473445f7d3dcb5c579f42ece8b6c18c43c63ed3/extensions/julia/syntaxes/julia.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp` `python` `javascript` `r` `sql` | 32.82 kB |
122
122
  | `kotlin` | `kt` `kts` | [fwcd/vscode-kotlin](https://github.com/fwcd/vscode-kotlin/blob/626e20d5c51a4379c4c0ee293aa89e58b5232aec/syntaxes/kotlin.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fwcd/vscode-kotlin/main/LICENSE) | | 8.21 kB |
123
123
  | `kusto` | `kql` | [rosshamish/kuskus](https://github.com/rosshamish/kuskus/blob/6e6deead4af243432902869e1767df8a612cffe1/kusto-syntax-highlighting/syntaxes/kusto.tmLanguage.json) | | | 19.60 kB |
124
- | `latex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ed4e6eda599f37bac9a11952403a6e63fd4f5a4d/extensions/latex/syntaxes/LaTeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `tex` `shellscript` `css` `gnuplot` `haskell` `html` `java` `julia` `javascript` `lua` `python` `ruby` `rust` `typescript` `xml` `yaml` `scala` | 53.80 kB |
124
+ | `latex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/9473445f7d3dcb5c579f42ece8b6c18c43c63ed3/extensions/latex/syntaxes/LaTeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `tex` `shellscript` `css` `gnuplot` `haskell` `html` `java` `julia` `javascript` `lua` `python` `ruby` `rust` `typescript` `xml` `yaml` `scala` | 54.75 kB |
125
125
  | `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.96 kB |
126
- | `less` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/2b9ebd6897fb57f2f3dc9dc04957288c50717190/extensions/less/syntaxes/less.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 82.08 kB |
126
+ | `less` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/9473445f7d3dcb5c579f42ece8b6c18c43c63ed3/extensions/less/syntaxes/less.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 88.66 kB |
127
127
  | `liquid` | | [Shopify/liquid-tm-grammar](https://github.com/Shopify/liquid-tm-grammar/blob/909aab5b1d8be374585bd02ef46e0e38d65f2f89/grammars/liquid.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/Shopify/liquid-tm-grammar/main/LICENSE.md) | `html` `css` `json` `javascript` | 15.31 kB |
128
128
  | `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.51 kB |
129
129
  | `logo` | | [textmate/logo.tmbundle](https://github.com/textmate/logo.tmbundle/blob/3205e987ed2a2aa11accdd55a7d094832441f89c/Syntaxes/Logo.tmLanguage) | | | 3.03 kB |
@@ -182,7 +182,7 @@ import { grammars } from 'tm-grammars'
182
182
  | `scheme` | | [sjhuangx/vscode-scheme](https://github.com/sjhuangx/vscode-scheme/blob/4e21683666e1e2edfa21d040ecd427f628e7b5ff/syntaxes/scheme.tmLanguage) | [MIT](https://raw.githubusercontent.com/sjhuangx/vscode-scheme/master/LICENSE.md) | | 8.35 kB |
183
183
  | `scss` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/cf8d61ebd2f022f4ce8280171f0360d1fe0a206d/extensions/scss/syntaxes/scss.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `css` | 26.21 kB |
184
184
  | `shaderlab` | `shader` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `hlsl` | 5.83 kB |
185
- | `shellscript` | `bash` `sh` `shell` `zsh` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/5c213a1e84928c7a7d11ca5b282ca602d40c1352/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 40.03 kB |
185
+ | `shellscript` | `bash` `sh` `shell` `zsh` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/9473445f7d3dcb5c579f42ece8b6c18c43c63ed3/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 40.04 kB |
186
186
  | `shellsession` | `console` | [hronro/sublime-linguist-syntax](https://github.com/hronro/sublime-linguist-syntax/blob/9c84f1d69dbe89bc23292f129cf2d408a9c7afe1/syntaxes/ShellSession.tmLanguage) | [MIT](https://raw.githubusercontent.com/hronro/sublime-linguist-syntax/master/LICENSE) | `shellscript` | 567.00 B |
187
187
  | `smalltalk` | | [leocamello/vscode-smalltalk](https://github.com/leocamello/vscode-smalltalk/blob/bc888519a21740b4dbd4edcf2f884c61855dc58b/syntaxes/smalltalk.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/leocamello/vscode-smalltalk/master/LICENSE) | | 3.91 kB |
188
188
  | `solidity` | | [juanfranblanco/vscode-solidity](https://github.com/juanfranblanco/vscode-solidity/blob/75531be0beda99b7293d778eb0b1c63f70d8ac59/syntaxes/solidity.json) | [MIT](https://raw.githubusercontent.com/juanfranblanco/vscode-solidity/master/License.txt) | | 15.15 kB |
@@ -476,7 +476,7 @@
476
476
  "name": "keyword.symbol.fsharp"
477
477
  }
478
478
  },
479
- "end": "(\\)\\s*(([?[:alpha:]0-9'`^._ ]+))+)",
479
+ "end": "(\\)\\s*(([?[:alpha:]0-9'`^._ ]+))*)",
480
480
  "endCaptures": {
481
481
  "1": {
482
482
  "name": "keyword.symbol.fsharp"
@@ -300,7 +300,7 @@
300
300
  "name": "keyword.control.using.julia"
301
301
  },
302
302
  {
303
- "match": "(?<=\\w\\s)\\b(as)\\b(?=\\s\\w)",
303
+ "match": "(?<=\\S\\s+)\\b(as)\\b(?=\\s+\\S)",
304
304
  "name": "keyword.control.as.julia"
305
305
  },
306
306
  {
@@ -88,7 +88,7 @@
88
88
  "4": {
89
89
  "patterns": [
90
90
  {
91
- "include": "#optional-arg"
91
+ "include": "#optional-arg-bracket"
92
92
  }
93
93
  ]
94
94
  },
@@ -1894,7 +1894,7 @@
1894
1894
  "3": {
1895
1895
  "patterns": [
1896
1896
  {
1897
- "include": "#optional-arg"
1897
+ "include": "#optional-arg-bracket"
1898
1898
  }
1899
1899
  ]
1900
1900
  },
@@ -1904,7 +1904,7 @@
1904
1904
  "5": {
1905
1905
  "patterns": [
1906
1906
  {
1907
- "include": "#optional-arg"
1907
+ "include": "#optional-arg-bracket"
1908
1908
  }
1909
1909
  ]
1910
1910
  },
@@ -2362,7 +2362,7 @@
2362
2362
  "3": {
2363
2363
  "patterns": [
2364
2364
  {
2365
- "include": "#optional-arg"
2365
+ "include": "#optional-arg-bracket"
2366
2366
  }
2367
2367
  ]
2368
2368
  },
@@ -2398,7 +2398,7 @@
2398
2398
  "3": {
2399
2399
  "patterns": [
2400
2400
  {
2401
- "include": "#optional-arg"
2401
+ "include": "#optional-arg-bracket"
2402
2402
  }
2403
2403
  ]
2404
2404
  },
@@ -2556,7 +2556,7 @@
2556
2556
  "name": "meta.scope.item.latex"
2557
2557
  },
2558
2558
  {
2559
- "begin": "((\\\\)(?:[aA]uto|foot|full|no|ref|short|[tT]ext|[pP]aren|[sS]mart)?[cC]ite(?:al)?(?:p|s|t|author|year(?:par)?|title)?[ANP]*\\*?)((?:(?:\\([^\\)]*\\)){0,2}(?:\\[[^\\]]*\\]){0,2}\\{[\\p{Alphabetic}:.]*\\})*)(?:([<\\[])[^\\]<>]*([>\\]]))?(?:(\\[)[^\\]]*(\\]))?(\\{)",
2559
+ "begin": "((\\\\)(?:[aA]uto|foot|full|no|ref|short|[tT]ext|[pP]aren|[sS]mart)?[cC]ite(?:al)?(?:p|s|t|author|year(?:par)?|title)?[ANP]*\\*?)((?:(?:\\([^\\)]*\\)){0,2}(?:\\[[^\\]]*\\]){0,2}\\{[\\p{Alphabetic}\\p{Number}_:.-]*\\})*)(<[^\\]<>]*>)?((?:\\[[^\\]]*\\])*)(\\{)",
2560
2560
  "captures": {
2561
2561
  "1": {
2562
2562
  "name": "keyword.control.cite.latex"
@@ -2572,18 +2572,20 @@
2572
2572
  ]
2573
2573
  },
2574
2574
  "4": {
2575
- "name": "punctuation.definition.arguments.optional.begin.latex"
2575
+ "patterns": [
2576
+ {
2577
+ "include": "#optional-arg-angle-no-highlight"
2578
+ }
2579
+ ]
2576
2580
  },
2577
2581
  "5": {
2578
- "name": "punctuation.definition.arguments.optional.end.latex"
2582
+ "patterns": [
2583
+ {
2584
+ "include": "#optional-arg-bracket-no-highlight"
2585
+ }
2586
+ ]
2579
2587
  },
2580
2588
  "6": {
2581
- "name": "punctuation.definition.arguments.optional.begin.latex"
2582
- },
2583
- "7": {
2584
- "name": "punctuation.definition.arguments.optional.end.latex"
2585
- },
2586
- "8": {
2587
2589
  "name": "punctuation.definition.arguments.begin.latex"
2588
2590
  }
2589
2591
  },
@@ -2740,7 +2742,7 @@
2740
2742
  "3": {
2741
2743
  "patterns": [
2742
2744
  {
2743
- "include": "#optional-arg"
2745
+ "include": "#optional-arg-bracket"
2744
2746
  }
2745
2747
  ]
2746
2748
  },
@@ -2777,7 +2779,7 @@
2777
2779
  "3": {
2778
2780
  "patterns": [
2779
2781
  {
2780
- "include": "#optional-arg"
2782
+ "include": "#optional-arg-bracket"
2781
2783
  }
2782
2784
  ]
2783
2785
  },
@@ -2814,7 +2816,7 @@
2814
2816
  "3": {
2815
2817
  "patterns": [
2816
2818
  {
2817
- "include": "#optional-arg"
2819
+ "include": "#optional-arg-bracket"
2818
2820
  }
2819
2821
  ]
2820
2822
  },
@@ -2861,7 +2863,7 @@
2861
2863
  "3": {
2862
2864
  "patterns": [
2863
2865
  {
2864
- "include": "#optional-arg"
2866
+ "include": "#optional-arg-bracket"
2865
2867
  }
2866
2868
  ]
2867
2869
  },
@@ -3042,7 +3044,7 @@
3042
3044
  "name": "punctuation.definition.variable.latex"
3043
3045
  }
3044
3046
  },
3045
- "match": "(\\\\)[cgl](?:[_\\p{Alphabetic}@]+)+_[a-z]+",
3047
+ "match": "(\\\\)(?:[cgl]_+[_\\p{Alphabetic}@]+_[a-z]+|[qs]_[_\\p{Alphabetic}@]+[\\p{Alphabetic}@])",
3046
3048
  "name": "variable.other.latex3.latex"
3047
3049
  },
3048
3050
  {
@@ -3067,27 +3069,29 @@
3067
3069
  {
3068
3070
  "captures": {
3069
3071
  "1": {
3070
- "name": "punctuation.definition.arguments.optional.begin.latex"
3072
+ "patterns": [
3073
+ {
3074
+ "include": "#optional-arg-parenthesis-no-highlight"
3075
+ }
3076
+ ]
3071
3077
  },
3072
3078
  "2": {
3073
- "name": "punctuation.definition.arguments.optional.end.latex"
3079
+ "patterns": [
3080
+ {
3081
+ "include": "#optional-arg-bracket-no-highlight"
3082
+ }
3083
+ ]
3074
3084
  },
3075
3085
  "3": {
3076
- "name": "punctuation.definition.arguments.optional.begin.latex"
3077
- },
3078
- "4": {
3079
- "name": "punctuation.definition.arguments.optional.end.latex"
3080
- },
3081
- "5": {
3082
3086
  "name": "punctuation.definition.arguments.begin.latex"
3083
3087
  },
3084
- "6": {
3088
+ "4": {
3085
3089
  "name": "constant.other.reference.citation.latex"
3086
3090
  },
3087
- "7": {
3091
+ "5": {
3088
3092
  "name": "punctuation.definition.arguments.end.latex"
3089
3093
  },
3090
- "8": {
3094
+ "6": {
3091
3095
  "patterns": [
3092
3096
  {
3093
3097
  "include": "#autocites-arg"
@@ -3095,7 +3099,7 @@
3095
3099
  ]
3096
3100
  }
3097
3101
  },
3098
- "match": "(?:(\\()[^\\)]*(\\))){0,2}(?:(\\[)[^\\]]*(\\])){0,2}(\\{)([\\p{Alphabetic}\\p{Number}:.]+)(\\})(.*)"
3102
+ "match": "((?:\\([^\\)]*\\)){0,2})((?:\\[[^\\]]*\\]){0,2})(\\{)([\\p{Alphabetic}\\p{Number}_:.-]+)(\\})(.*)"
3099
3103
  }
3100
3104
  ]
3101
3105
  },
@@ -3153,7 +3157,7 @@
3153
3157
  "3": {
3154
3158
  "patterns": [
3155
3159
  {
3156
- "include": "#optional-arg"
3160
+ "include": "#optional-arg-bracket"
3157
3161
  }
3158
3162
  ]
3159
3163
  },
@@ -3216,7 +3220,23 @@
3216
3220
  }
3217
3221
  ]
3218
3222
  },
3219
- "optional-arg": {
3223
+ "optional-arg-angle-no-highlight": {
3224
+ "patterns": [
3225
+ {
3226
+ "captures": {
3227
+ "1": {
3228
+ "name": "punctuation.definition.arguments.optional.begin.latex"
3229
+ },
3230
+ "2": {
3231
+ "name": "punctuation.definition.arguments.optional.end.latex"
3232
+ }
3233
+ },
3234
+ "match": "(<)[^<]*?(>)",
3235
+ "name": "meta.parameter.optional.latex"
3236
+ }
3237
+ ]
3238
+ },
3239
+ "optional-arg-bracket": {
3220
3240
  "patterns": [
3221
3241
  {
3222
3242
  "captures": {
@@ -3234,6 +3254,57 @@
3234
3254
  "name": "meta.parameter.optional.latex"
3235
3255
  }
3236
3256
  ]
3257
+ },
3258
+ "optional-arg-bracket-no-highlight": {
3259
+ "patterns": [
3260
+ {
3261
+ "captures": {
3262
+ "1": {
3263
+ "name": "punctuation.definition.arguments.optional.begin.latex"
3264
+ },
3265
+ "2": {
3266
+ "name": "punctuation.definition.arguments.optional.end.latex"
3267
+ }
3268
+ },
3269
+ "match": "(\\[)[^\\[]*?(\\])",
3270
+ "name": "meta.parameter.optional.latex"
3271
+ }
3272
+ ]
3273
+ },
3274
+ "optional-arg-parenthesis": {
3275
+ "patterns": [
3276
+ {
3277
+ "captures": {
3278
+ "1": {
3279
+ "name": "punctuation.definition.arguments.optional.begin.latex"
3280
+ },
3281
+ "2": {
3282
+ "name": "variable.parameter.function.latex"
3283
+ },
3284
+ "3": {
3285
+ "name": "punctuation.definition.arguments.optional.end.latex"
3286
+ }
3287
+ },
3288
+ "match": "(\\()([^\\(]*?)(\\))",
3289
+ "name": "meta.parameter.optional.latex"
3290
+ }
3291
+ ]
3292
+ },
3293
+ "optional-arg-parenthesis-no-highlight": {
3294
+ "patterns": [
3295
+ {
3296
+ "captures": {
3297
+ "1": {
3298
+ "name": "punctuation.definition.arguments.optional.begin.latex"
3299
+ },
3300
+ "2": {
3301
+ "name": "punctuation.definition.arguments.optional.end.latex"
3302
+ }
3303
+ },
3304
+ "match": "(\\()[^\\(]*?(\\))",
3305
+ "name": "meta.parameter.optional.latex"
3306
+ }
3307
+ ]
3237
3308
  }
3238
3309
  },
3239
3310
  "scopeName": "text.tex.latex"