tm-grammars 1.15.2 → 1.16.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 +27 -0
- package/README.md +6 -5
- package/grammars/dotenv.json +123 -0
- package/grammars/fsharp.json +1 -1
- package/grammars/julia.json +1 -1
- package/grammars/latex.json +104 -33
- package/grammars/less.json +453 -132
- package/grammars/shellscript.json +1 -1
- package/index.js +33 -19
- package/package.json +1 -1
package/NOTICE
CHANGED
|
@@ -2214,6 +2214,33 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
2214
2214
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2215
2215
|
SOFTWARE.
|
|
2216
2216
|
|
|
2217
|
+
=========================================================================================================
|
|
2218
|
+
Files: dotenv.json
|
|
2219
|
+
License: https://raw.githubusercontent.com/dotenv-org/dotenv-vscode/master/LICENSE
|
|
2220
|
+
SPDX: MIT
|
|
2221
|
+
---------------------------------------------------------------------------------------------------------
|
|
2222
|
+
MIT License
|
|
2223
|
+
|
|
2224
|
+
Copyright (c) 2022 Scott Motte
|
|
2225
|
+
|
|
2226
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2227
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
2228
|
+
in the Software without restriction, including without limitation the rights
|
|
2229
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2230
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
2231
|
+
furnished to do so, subject to the following conditions:
|
|
2232
|
+
|
|
2233
|
+
The above copyright notice and this permission notice shall be included in all
|
|
2234
|
+
copies or substantial portions of the Software.
|
|
2235
|
+
|
|
2236
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2237
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2238
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2239
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2240
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2241
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2242
|
+
SOFTWARE.
|
|
2243
|
+
|
|
2217
2244
|
=========================================================================================================
|
|
2218
2245
|
Files: edge.json
|
|
2219
2246
|
License: https://raw.githubusercontent.com/edge-js/edge-vscode/main/LICENSE.md
|
package/README.md
CHANGED
|
@@ -64,6 +64,7 @@ import { grammars } from 'tm-grammars'
|
|
|
64
64
|
| `desktop` | | [nico-castell/desktop-file-support](https://github.com/nico-castell/desktop-file-support/blob/63720f5f05313de22b68ecbd0ca3d3ed8ba57e7e/syntaxes/desktop.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nico-castell/desktop-file-support/main/LICENSE) | | 1.81 kB |
|
|
65
65
|
| `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 |
|
|
66
66
|
| `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 |
|
|
67
|
+
| `dotenv` | `dotEnv` | [dotenv-org/dotenv-vscode](https://github.com/dotenv-org/dotenv-vscode/blob/e7e41baa5b23e01c1ff0567a4e596c24860e7def/syntaxes/dotenv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/dotenv-org/dotenv-vscode/master/LICENSE) | | 1.57 kB |
|
|
67
68
|
| `dream-maker` | | [gbasood/vscode-atomic-dreams](https://github.com/gbasood/vscode-atomic-dreams/blob/22d2bf0325f65697ea542856280f66e9e098f4a2/syntaxes/dm.tmLanguage.json) | | | 9.99 kB |
|
|
68
69
|
| `edge` | | [edge-js/edge-vscode](https://github.com/edge-js/edge-vscode/blob/04352c41981ca664598674556afa63bd393a10f3/syntaxes/edge.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/edge-js/edge-vscode/main/LICENSE.md) | `typescript` `html` `html-derivative` | 1.97 kB |
|
|
69
70
|
| `elixir` | | [elixir-editors/elixir-tmbundle](https://github.com/elixir-editors/elixir-tmbundle/blob/43c8cd957d5ac6e1abbd8730fc7a08c81a6e76c9/Syntaxes/Elixir.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/elixir-editors/elixir-tmbundle/master/LICENSE) | `html` | 16.96 kB |
|
|
@@ -76,7 +77,7 @@ import { grammars } from 'tm-grammars'
|
|
|
76
77
|
| `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
78
|
| `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
79
|
| `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/
|
|
80
|
+
| `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
81
|
| `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
82
|
| `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
83
|
| `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 +119,12 @@ import { grammars } from 'tm-grammars'
|
|
|
118
119
|
| `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
120
|
| `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
121
|
| `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/
|
|
122
|
+
| `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
123
|
| `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
124
|
| `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/
|
|
125
|
+
| `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
126
|
| `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/
|
|
127
|
+
| `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
128
|
| `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
129
|
| `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
130
|
| `logo` | | [textmate/logo.tmbundle](https://github.com/textmate/logo.tmbundle/blob/3205e987ed2a2aa11accdd55a7d094832441f89c/Syntaxes/Logo.tmLanguage) | | | 3.03 kB |
|
|
@@ -182,7 +183,7 @@ import { grammars } from 'tm-grammars'
|
|
|
182
183
|
| `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
184
|
| `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
185
|
| `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/
|
|
186
|
+
| `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
187
|
| `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
188
|
| `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
189
|
| `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 |
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "dotEnv",
|
|
3
|
+
"name": "dotenv",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"captures": {
|
|
7
|
+
"1": {
|
|
8
|
+
"patterns": [
|
|
9
|
+
{
|
|
10
|
+
"include": "#line-comment"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"comment": "Full Line Comment",
|
|
16
|
+
"match": "^\\s?(#.*$)\\n"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"captures": {
|
|
20
|
+
"1": {
|
|
21
|
+
"patterns": [
|
|
22
|
+
{
|
|
23
|
+
"include": "#key"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"2": {
|
|
28
|
+
"name": "keyword.operator.assignment.dotenv"
|
|
29
|
+
},
|
|
30
|
+
"3": {
|
|
31
|
+
"name": "property.value.dotenv",
|
|
32
|
+
"patterns": [
|
|
33
|
+
{
|
|
34
|
+
"include": "#line-comment"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"include": "#double-quoted-string"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"include": "#single-quoted-string"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"include": "#interpolation"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"comment": "ENV entry",
|
|
49
|
+
"match": "^\\s?(.*?)\\s?(\\=)(.*)$"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"repository": {
|
|
53
|
+
"double-quoted-string": {
|
|
54
|
+
"captures": {
|
|
55
|
+
"1": {
|
|
56
|
+
"patterns": [
|
|
57
|
+
{
|
|
58
|
+
"include": "#interpolation"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"include": "#escape-characters"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"comment": "Double Quoted String",
|
|
67
|
+
"match": "\"(.*)\"",
|
|
68
|
+
"name": "string.quoted.double.dotenv"
|
|
69
|
+
},
|
|
70
|
+
"escape-characters": {
|
|
71
|
+
"comment": "Escape characters",
|
|
72
|
+
"match": "\\\\[nrtfb\"'\\\\]|\\\\u[0123456789ABCDEF]{4}",
|
|
73
|
+
"name": "constant.character.escape.dotenv"
|
|
74
|
+
},
|
|
75
|
+
"interpolation": {
|
|
76
|
+
"captures": {
|
|
77
|
+
"1": {
|
|
78
|
+
"name": "keyword.interpolation.begin.dotenv"
|
|
79
|
+
},
|
|
80
|
+
"2": {
|
|
81
|
+
"name": "variable.interpolation.dotenv"
|
|
82
|
+
},
|
|
83
|
+
"3": {
|
|
84
|
+
"name": "keyword.interpolation.end.dotenv"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"comment": "Interpolation (variable substitution)",
|
|
88
|
+
"match": "(\\$\\{)(.*)(\\})"
|
|
89
|
+
},
|
|
90
|
+
"key": {
|
|
91
|
+
"captures": {
|
|
92
|
+
"1": {
|
|
93
|
+
"name": "keyword.key.export.dotenv"
|
|
94
|
+
},
|
|
95
|
+
"2": {
|
|
96
|
+
"name": "variable.key.dotenv",
|
|
97
|
+
"patterns": [
|
|
98
|
+
{
|
|
99
|
+
"include": "#variable"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"comment": "Key",
|
|
105
|
+
"match": "(export\\s)?(.*)"
|
|
106
|
+
},
|
|
107
|
+
"line-comment": {
|
|
108
|
+
"comment": "Comment",
|
|
109
|
+
"match": "#.*$",
|
|
110
|
+
"name": "comment.line.dotenv"
|
|
111
|
+
},
|
|
112
|
+
"single-quoted-string": {
|
|
113
|
+
"comment": "Single Quoted String",
|
|
114
|
+
"match": "'(.*)'",
|
|
115
|
+
"name": "string.quoted.single.dotenv"
|
|
116
|
+
},
|
|
117
|
+
"variable": {
|
|
118
|
+
"comment": "env variable",
|
|
119
|
+
"match": "[a-zA-Z_]+[a-zA-Z0-9_]*"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"scopeName": "source.dotenv"
|
|
123
|
+
}
|
package/grammars/fsharp.json
CHANGED
package/grammars/julia.json
CHANGED
package/grammars/latex.json
CHANGED
|
@@ -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
|
-
"
|
|
2575
|
+
"patterns": [
|
|
2576
|
+
{
|
|
2577
|
+
"include": "#optional-arg-angle-no-highlight"
|
|
2578
|
+
}
|
|
2579
|
+
]
|
|
2576
2580
|
},
|
|
2577
2581
|
"5": {
|
|
2578
|
-
"
|
|
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]
|
|
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
|
-
"
|
|
3072
|
+
"patterns": [
|
|
3073
|
+
{
|
|
3074
|
+
"include": "#optional-arg-parenthesis-no-highlight"
|
|
3075
|
+
}
|
|
3076
|
+
]
|
|
3071
3077
|
},
|
|
3072
3078
|
"2": {
|
|
3073
|
-
"
|
|
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
|
-
"
|
|
3088
|
+
"4": {
|
|
3085
3089
|
"name": "constant.other.reference.citation.latex"
|
|
3086
3090
|
},
|
|
3087
|
-
"
|
|
3091
|
+
"5": {
|
|
3088
3092
|
"name": "punctuation.definition.arguments.end.latex"
|
|
3089
3093
|
},
|
|
3090
|
-
"
|
|
3094
|
+
"6": {
|
|
3091
3095
|
"patterns": [
|
|
3092
3096
|
{
|
|
3093
3097
|
"include": "#autocites-arg"
|
|
@@ -3095,7 +3099,7 @@
|
|
|
3095
3099
|
]
|
|
3096
3100
|
}
|
|
3097
3101
|
},
|
|
3098
|
-
"match": "(
|
|
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"
|