tm-grammars 1.6.3 → 1.6.5
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 +8 -8
- package/grammars/erlang.json +136 -0
- package/grammars/go.json +196 -92
- package/grammars/julia.json +5 -5
- package/grammars/latex.json +1006 -231
- package/grammars/rust.json +1 -1
- package/grammars/shellscript.json +581 -551
- package/grammars/tex.json +74 -30
- package/index.js +38 -37
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ import { grammars } from 'tm-grammars'
|
|
|
37
37
|
| `bat` | `batch` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/df15c8e832a341633acd2e9bb26e1b275d09cfe0/extensions/bat/syntaxes/batchfile.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 12.38 kB |
|
|
38
38
|
| `beancount` | | [Lencerf/vscode-beancount](https://github.com/Lencerf/vscode-beancount/blob/ffc762e047bb09ed5d16508b302aef16a6057139/syntaxes/beancount.tmLanguage) | [MIT](https://raw.githubusercontent.com/Lencerf/vscode-beancount/master/LICENSE) | | 10.19 kB |
|
|
39
39
|
| `berry` | `be` | [berry-lang/berry](https://github.com/berry-lang/berry/blob/a0f5c044a3b593deaf87292ca6f04c2343e53dc8/tools/plugins/vscode/skiars.berry-1.1.0/syntaxes/berry.json) | [MIT](https://raw.githubusercontent.com/berry-lang/berry/master/LICENSE) | | 2.12 kB |
|
|
40
|
-
| `bibtex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/
|
|
40
|
+
| `bibtex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/latex/syntaxes/Bibtex.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 4.68 kB |
|
|
41
41
|
| `bicep` | | [Azure/bicep](https://github.com/Azure/bicep/blob/c87233025b216156dcbbe3b34930e41a5ecb6199/src/textmate/bicep.tmlanguage) | [MIT](https://raw.githubusercontent.com/Azure/bicep/main/LICENSE) | | 3.95 kB |
|
|
42
42
|
| `blade` | | [spatie/shiki-php](https://github.com/spatie/shiki-php/blob/e985c3ab6b13252ad4521b7edb8ff91a9da3dd46/languages/blade.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/spatie/shiki-php/main/LICENSE.md) | `html` `xml` `sql` `javascript` `json` `css` | 101.01 kB |
|
|
43
43
|
| `c` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/bd1abe08c38bb5deccf65610f8f3c03d2338d20d/extensions/cpp/syntaxes/c.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 69.70 kB |
|
|
@@ -64,7 +64,7 @@ import { grammars } from 'tm-grammars'
|
|
|
64
64
|
| `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 |
|
|
65
65
|
| `elm` | | [elm-tooling/elm-language-client-vscode](https://github.com/elm-tooling/elm-language-client-vscode/blob/c70351314682c2e0fae8a402ebb301da79821c37/syntaxes/elm-syntax.json) | [MIT](https://raw.githubusercontent.com/elm-tooling/elm-language-client-vscode/main/LICENSE) | `glsl` | 10.51 kB |
|
|
66
66
|
| `erb` | | [textmate/ruby.tmbundle](https://github.com/textmate/ruby.tmbundle/blob/ecf0f1df23984bcff9b51552e35d9696cb0d9539/Syntaxes/HTML%20(Ruby%20-%20ERB).tmLanguage) | | `html` `ruby` | 1.90 kB |
|
|
67
|
-
| `erlang` | `erl` | [erlang-ls/grammar](https://github.com/erlang-ls/grammar/blob/
|
|
67
|
+
| `erlang` | `erl` | [erlang-ls/grammar](https://github.com/erlang-ls/grammar/blob/2166c044337dcae6c143c140b47abb8b8fd29a4c/Erlang.plist) | [Apache-2.0](https://raw.githubusercontent.com/erlang-ls/grammar/main/LICENSE) | | 30.42 kB |
|
|
68
68
|
| `fish` | | [bmalehorn/vscode-fish](https://github.com/bmalehorn/vscode-fish/blob/2fe4ccc72fdcd9b9f54fbb2c05fe9b350c32d718/syntaxes/fish.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/bmalehorn/vscode-fish/master/LICENSE) | | 5.06 kB |
|
|
69
69
|
| `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 |
|
|
70
70
|
| `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 |
|
|
@@ -80,7 +80,7 @@ import { grammars } from 'tm-grammars'
|
|
|
80
80
|
| `glimmer-ts` | `gts` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/76fce7b360ce09a78789e7d5217b8955d1a5d95f/syntaxes/source.gts.json) | [MIT](https://raw.githubusercontent.com/lifeart/vsc-ember-syntax/master/LICENSE) | `typescript` `css` `javascript` `html` | 19.08 kB |
|
|
81
81
|
| `glsl` | | [polym0rph/GLSL.tmbundle](https://github.com/polym0rph/GLSL.tmbundle/blob/6998d3bbd204e26746a5ca580cda4c650b9057b1/Syntaxes/GLSL.tmLanguage) | | `c` | 3.69 kB |
|
|
82
82
|
| `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 |
|
|
83
|
-
| `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/
|
|
83
|
+
| `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/go/syntaxes/go.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 45.14 kB |
|
|
84
84
|
| `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 |
|
|
85
85
|
| `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 |
|
|
86
86
|
| `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 |
|
|
@@ -106,10 +106,10 @@ import { grammars } from 'tm-grammars'
|
|
|
106
106
|
| `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 |
|
|
107
107
|
| `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 |
|
|
108
108
|
| `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 |
|
|
109
|
-
| `julia` | `jl` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/
|
|
109
|
+
| `julia` | `jl` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/julia/syntaxes/julia.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp` `python` `javascript` `r` `sql` | 32.83 kB |
|
|
110
110
|
| `kotlin` | `kt` `kts` | [fwcd/vscode-kotlin](https://github.com/fwcd/vscode-kotlin/blob/bb71d917dd97b756d45f2594346efe3d70a15060/syntaxes/kotlin.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fwcd/vscode-kotlin/main/LICENSE) | | 8.22 kB |
|
|
111
111
|
| `kusto` | `kql` | [rosshamish/kuskus](https://github.com/rosshamish/kuskus/blob/638b8a9249c2c423bc263726661cde534b25adc7/kusto-syntax-highlighting/syntaxes/kusto.tmLanguage.json) | | | 19.23 kB |
|
|
112
|
-
| `latex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/
|
|
112
|
+
| `latex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/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.26 kB |
|
|
113
113
|
| `less` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b0d60e8e2e90bc9d7913611c176d14b8eb91b532/extensions/less/syntaxes/less.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 79.56 kB |
|
|
114
114
|
| `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 |
|
|
115
115
|
| `lisp` | | [mattn/vscode-lisp](https://github.com/mattn/vscode-lisp/blob/c3672d9a1877d15a2472a3e58c96c123c44f1473/syntaxes/Lisp.tmLanguage) | [MIT](https://raw.githubusercontent.com/mattn/vscode-lisp/master/LICENSE) | | 13.46 kB |
|
|
@@ -155,14 +155,14 @@ import { grammars } from 'tm-grammars'
|
|
|
155
155
|
| `riscv` | | [zhuanhao-wu/vscode-riscv-support](https://github.com/zhuanhao-wu/vscode-riscv-support/blob/2736b60e45ff2ef738d784055e136cf38d6290cd/syntaxes/riscv.tmLanguage) | [MIT](https://raw.githubusercontent.com/zhuanhao-wu/vscode-riscv-support/master/LICENSE) | | 7.04 kB |
|
|
156
156
|
| `rst` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/48e93f756b764991ede33ad09781a863aca6907a/extensions/restructuredtext/syntaxes/rst.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html-derivative` `cpp` `python` `javascript` `shellscript` `yaml` `cmake` `ruby` | 9.03 kB |
|
|
157
157
|
| `ruby` | `rb` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/17e7a257ffc86a48318cefd8f3b904dc546a4314/extensions/ruby/syntaxes/ruby.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html` `xml` `sql` `css` `c` `javascript` `shellscript` `lua` | 36.11 kB |
|
|
158
|
-
| `rust` | `rs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/
|
|
158
|
+
| `rust` | `rs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/rust/syntaxes/rust.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 16.77 kB |
|
|
159
159
|
| `sas` | | [rpardee/sas](https://github.com/rpardee/sas/blob/49f6e733c6c0b918a2a825ca2f63dba704f3e8c0/syntaxes/sas.tmLanguage) | [MIT](https://raw.githubusercontent.com/rpardee/sas/master/LICENSE) | `sql` | 9.31 kB |
|
|
160
160
|
| `sass` | | [TheRealSyler/vscode-sass-indented](https://github.com/TheRealSyler/vscode-sass-indented/blob/7b0bd6bbbb768c0cf21b2aa0899cb872ee42fd50/syntaxes/sass.tmLanguage.json) | [NOASSERTION](https://raw.githubusercontent.com/TheRealSyler/vscode-sass-indented/master/LICENSE) | | 8.84 kB |
|
|
161
161
|
| `scala` | | [scala/vscode-scala-syntax](https://github.com/scala/vscode-scala-syntax/blob/1addd66a1bcb65510348ee6dddb5acfcf51f4fba/syntaxes/Scala.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/scala/vscode-scala-syntax/main/LICENSE.md) | | 26.85 kB |
|
|
162
162
|
| `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 |
|
|
163
163
|
| `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 |
|
|
164
164
|
| `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 |
|
|
165
|
-
| `shellscript` | `bash` `sh` `shell` `zsh` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/
|
|
165
|
+
| `shellscript` | `bash` `sh` `shell` `zsh` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 38.97 kB |
|
|
166
166
|
| `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 |
|
|
167
167
|
| `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 |
|
|
168
168
|
| `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 |
|
|
@@ -178,7 +178,7 @@ import { grammars } from 'tm-grammars'
|
|
|
178
178
|
| `tasl` | | [underlay/vscode-tasl](https://github.com/underlay/vscode-tasl/blob/dde4b7c0b762c2e667584095362dd49ebfacece7/syntaxes/tasl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/underlay/vscode-tasl/main/LICENSE) | | 3.21 kB |
|
|
179
179
|
| `tcl` | | [sleutho/tcl](https://github.com/sleutho/tcl/blob/f18820ad14678bc033f0a35524820c90fe50f18b/syntaxes/tcl.tmLanguage) | | | 4.66 kB |
|
|
180
180
|
| `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 12.58 kB |
|
|
181
|
-
| `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/
|
|
181
|
+
| `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b557947e50a068bdcc927ffd31ee555dbb232558/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `r` | 8.35 kB |
|
|
182
182
|
| `toml` | | [textmate/toml.tmbundle](https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage) | | | 6.26 kB |
|
|
183
183
|
| `tsv` | | [mechatroner/vscode_rainbow_csv](https://github.com/mechatroner/vscode_rainbow_csv/blob/00d4c947f1bbe6a4a73599bd97fb31bdfbe262f3/syntaxes/tsv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE) | | 633.00 B |
|
|
184
184
|
| `tsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 171.16 kB |
|
package/grammars/erlang.json
CHANGED
|
@@ -341,6 +341,138 @@
|
|
|
341
341
|
}
|
|
342
342
|
]
|
|
343
343
|
},
|
|
344
|
+
"docstring": {
|
|
345
|
+
"comment": "It is possible to use more than 3 double quote characters as beginning and closing sequences (must be the same). Cover 3-9 characters here.",
|
|
346
|
+
"patterns": [
|
|
347
|
+
{
|
|
348
|
+
"include": "#docstring3"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"include": "#docstring4"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"include": "#docstring5"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"include": "#docstring6"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"include": "#docstring7"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"include": "#docstring8"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"include": "#docstring9"
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
"docstring3": {
|
|
371
|
+
"begin": "(?<!\")([\"]{3}\\s*)$",
|
|
372
|
+
"beginCaptures": {
|
|
373
|
+
"1": {
|
|
374
|
+
"name": "punctuation.definition.docstring.begin.erlang"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"comment": "Only whitespace characters are allowed after the beggining and before the closing sequences and those cannot be in the same line",
|
|
378
|
+
"end": "^(\\s*[\"]{3})(?!\")",
|
|
379
|
+
"endCaptures": {
|
|
380
|
+
"1": {
|
|
381
|
+
"name": "punctuation.definition.docstring.end.erlang"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"name": "string.string.docstring.multi.erlang"
|
|
385
|
+
},
|
|
386
|
+
"docstring4": {
|
|
387
|
+
"begin": "(?<!\")([\"]{4}\\s*)$",
|
|
388
|
+
"beginCaptures": {
|
|
389
|
+
"1": {
|
|
390
|
+
"name": "punctuation.definition.docstring.begin.erlang"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"end": "^(\\s*[\"]{4})(?!\")",
|
|
394
|
+
"endCaptures": {
|
|
395
|
+
"1": {
|
|
396
|
+
"name": "punctuation.definition.docstring.end.erlang"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"name": "string.string.docstring.multi.erlang"
|
|
400
|
+
},
|
|
401
|
+
"docstring5": {
|
|
402
|
+
"begin": "(?<!\")([\"]{5}\\s*)$",
|
|
403
|
+
"beginCaptures": {
|
|
404
|
+
"1": {
|
|
405
|
+
"name": "punctuation.definition.docstring.begin.erlang"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"end": "^(\\s*[\"]{5})(?!\")",
|
|
409
|
+
"endCaptures": {
|
|
410
|
+
"1": {
|
|
411
|
+
"name": "punctuation.definition.docstring.end.erlang"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"name": "string.string.docstring.multi.erlang"
|
|
415
|
+
},
|
|
416
|
+
"docstring6": {
|
|
417
|
+
"begin": "(?<!\")([\"]{6}\\s*)$",
|
|
418
|
+
"beginCaptures": {
|
|
419
|
+
"1": {
|
|
420
|
+
"name": "punctuation.definition.docstring.begin.erlang"
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"end": "^(\\s*[\"]{6})(?!\")",
|
|
424
|
+
"endCaptures": {
|
|
425
|
+
"1": {
|
|
426
|
+
"name": "punctuation.definition.docstring.end.erlang"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"name": "string.string.docstring.multi.erlang"
|
|
430
|
+
},
|
|
431
|
+
"docstring7": {
|
|
432
|
+
"begin": "(?<!\")([\"]{7}\\s*)$",
|
|
433
|
+
"beginCaptures": {
|
|
434
|
+
"1": {
|
|
435
|
+
"name": "punctuation.definition.docstring.begin.erlang"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"end": "^(\\s*[\"]{7})(?!\")",
|
|
439
|
+
"endCaptures": {
|
|
440
|
+
"1": {
|
|
441
|
+
"name": "punctuation.definition.docstring.end.erlang"
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
"name": "string.string.docstring.multi.erlang"
|
|
445
|
+
},
|
|
446
|
+
"docstring8": {
|
|
447
|
+
"begin": "(?<!\")([\"]{8}\\s*)$",
|
|
448
|
+
"beginCaptures": {
|
|
449
|
+
"1": {
|
|
450
|
+
"name": "punctuation.definition.docstring.begin.erlang"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"end": "^(\\s*[\"]{8})(?!\")",
|
|
454
|
+
"endCaptures": {
|
|
455
|
+
"1": {
|
|
456
|
+
"name": "punctuation.definition.docstring.end.erlang"
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"name": "string.string.docstring.multi.erlang"
|
|
460
|
+
},
|
|
461
|
+
"docstring9": {
|
|
462
|
+
"begin": "(?<!\")([\"]{9}\\s*)$",
|
|
463
|
+
"beginCaptures": {
|
|
464
|
+
"1": {
|
|
465
|
+
"name": "punctuation.definition.docstring.begin.erlang"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"end": "^(\\s*[\"]{9})(?!\")",
|
|
469
|
+
"endCaptures": {
|
|
470
|
+
"1": {
|
|
471
|
+
"name": "punctuation.definition.docstring.end.erlang"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"name": "string.string.docstring.multi.erlang"
|
|
475
|
+
},
|
|
344
476
|
"everything-else": {
|
|
345
477
|
"patterns": [
|
|
346
478
|
{
|
|
@@ -388,6 +520,9 @@
|
|
|
388
520
|
{
|
|
389
521
|
"include": "#atom"
|
|
390
522
|
},
|
|
523
|
+
{
|
|
524
|
+
"include": "#docstring"
|
|
525
|
+
},
|
|
391
526
|
{
|
|
392
527
|
"include": "#string"
|
|
393
528
|
},
|
|
@@ -1657,6 +1792,7 @@
|
|
|
1657
1792
|
"name": "punctuation.definition.escape.erlang"
|
|
1658
1793
|
}
|
|
1659
1794
|
},
|
|
1795
|
+
"comment": "escape sequence",
|
|
1660
1796
|
"match": "(\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_a-z]|[0-7]{1,3}|x[\\da-fA-F]{2})",
|
|
1661
1797
|
"name": "constant.character.escape.erlang"
|
|
1662
1798
|
},
|
package/grammars/go.json
CHANGED
|
@@ -418,6 +418,9 @@
|
|
|
418
418
|
{
|
|
419
419
|
"include": "#struct_variables_types"
|
|
420
420
|
},
|
|
421
|
+
{
|
|
422
|
+
"include": "#interface_variables_types"
|
|
423
|
+
},
|
|
421
424
|
{
|
|
422
425
|
"include": "#type-declarations-without-brackets"
|
|
423
426
|
},
|
|
@@ -435,8 +438,8 @@
|
|
|
435
438
|
]
|
|
436
439
|
}
|
|
437
440
|
},
|
|
438
|
-
"comment": "struct type declaration",
|
|
439
|
-
"match": "((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)\\s+(?=(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\[\\]\\*]+)?\\
|
|
441
|
+
"comment": "struct/interface type declaration",
|
|
442
|
+
"match": "((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)\\s+(?=(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\b\\s*\\{)"
|
|
440
443
|
},
|
|
441
444
|
{
|
|
442
445
|
"captures": {
|
|
@@ -610,9 +613,32 @@
|
|
|
610
613
|
"generic_param_types": {
|
|
611
614
|
"comment": "generic parameter variables and types",
|
|
612
615
|
"patterns": [
|
|
616
|
+
{
|
|
617
|
+
"include": "#struct_variables_types"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"include": "#interface_variables_types"
|
|
621
|
+
},
|
|
613
622
|
{
|
|
614
623
|
"include": "#type-declarations-without-brackets"
|
|
615
624
|
},
|
|
625
|
+
{
|
|
626
|
+
"captures": {
|
|
627
|
+
"1": {
|
|
628
|
+
"patterns": [
|
|
629
|
+
{
|
|
630
|
+
"include": "#type-declarations"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"match": "\\w+",
|
|
634
|
+
"name": "variable.parameter.go"
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"comment": "struct/interface type declaration",
|
|
640
|
+
"match": "((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)\\s+(?=(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\b\\s*\\{)"
|
|
641
|
+
},
|
|
616
642
|
{
|
|
617
643
|
"captures": {
|
|
618
644
|
"1": {
|
|
@@ -881,101 +907,105 @@
|
|
|
881
907
|
]
|
|
882
908
|
},
|
|
883
909
|
"interface_variables_types": {
|
|
910
|
+
"begin": "(\\binterface\\b)\\s*(\\{)",
|
|
911
|
+
"beginCaptures": {
|
|
912
|
+
"1": {
|
|
913
|
+
"name": "keyword.interface.go"
|
|
914
|
+
},
|
|
915
|
+
"2": {
|
|
916
|
+
"name": "punctuation.definition.begin.bracket.curly.go"
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
"comment": "interface variable types",
|
|
920
|
+
"end": "\\}",
|
|
921
|
+
"endCaptures": {
|
|
922
|
+
"0": {
|
|
923
|
+
"name": "punctuation.definition.end.bracket.curly.go"
|
|
924
|
+
}
|
|
925
|
+
},
|
|
884
926
|
"patterns": [
|
|
885
927
|
{
|
|
886
|
-
"
|
|
928
|
+
"include": "#interface_variables_types_field"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"include": "$self"
|
|
932
|
+
}
|
|
933
|
+
]
|
|
934
|
+
},
|
|
935
|
+
"interface_variables_types_field": {
|
|
936
|
+
"comment": "interface variable type fields",
|
|
937
|
+
"patterns": [
|
|
938
|
+
{
|
|
939
|
+
"include": "#support_functions"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"include": "#type-declarations-without-brackets"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
"begin": "(?:([\\w\\.\\*]+)?(\\[))",
|
|
887
946
|
"beginCaptures": {
|
|
888
947
|
"1": {
|
|
889
|
-
"
|
|
948
|
+
"patterns": [
|
|
949
|
+
{
|
|
950
|
+
"include": "#type-declarations"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"match": "(?:\\w+)",
|
|
954
|
+
"name": "entity.name.type.go"
|
|
955
|
+
}
|
|
956
|
+
]
|
|
890
957
|
},
|
|
891
958
|
"2": {
|
|
892
|
-
"name": "punctuation.definition.begin.bracket.
|
|
959
|
+
"name": "punctuation.definition.begin.bracket.square.go"
|
|
893
960
|
}
|
|
894
961
|
},
|
|
895
|
-
"
|
|
896
|
-
"end": "\\}",
|
|
962
|
+
"end": "\\]",
|
|
897
963
|
"endCaptures": {
|
|
898
964
|
"0": {
|
|
899
|
-
"name": "punctuation.definition.end.bracket.
|
|
965
|
+
"name": "punctuation.definition.end.bracket.square.go"
|
|
900
966
|
}
|
|
901
967
|
},
|
|
902
968
|
"patterns": [
|
|
903
969
|
{
|
|
904
|
-
"include": "#
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
970
|
+
"include": "#generic_param_types"
|
|
971
|
+
}
|
|
972
|
+
]
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"begin": "\\(",
|
|
976
|
+
"beginCaptures": {
|
|
977
|
+
"0": {
|
|
978
|
+
"name": "punctuation.definition.begin.bracket.round.go"
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
"end": "\\)",
|
|
982
|
+
"endCaptures": {
|
|
983
|
+
"0": {
|
|
984
|
+
"name": "punctuation.definition.end.bracket.round.go"
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
"patterns": [
|
|
909
988
|
{
|
|
910
|
-
"
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
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
|
-
},
|
|
989
|
+
"include": "#function_param_types"
|
|
990
|
+
}
|
|
991
|
+
]
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"captures": {
|
|
995
|
+
"1": {
|
|
933
996
|
"patterns": [
|
|
934
997
|
{
|
|
935
|
-
"include": "#
|
|
936
|
-
}
|
|
937
|
-
]
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
"begin": "\\(",
|
|
941
|
-
"beginCaptures": {
|
|
942
|
-
"0": {
|
|
943
|
-
"name": "punctuation.definition.begin.bracket.round.go"
|
|
944
|
-
}
|
|
945
|
-
},
|
|
946
|
-
"end": "\\)",
|
|
947
|
-
"endCaptures": {
|
|
948
|
-
"0": {
|
|
949
|
-
"name": "punctuation.definition.end.bracket.round.go"
|
|
950
|
-
}
|
|
951
|
-
},
|
|
952
|
-
"patterns": [
|
|
998
|
+
"include": "#type-declarations"
|
|
999
|
+
},
|
|
953
1000
|
{
|
|
954
|
-
"
|
|
1001
|
+
"match": "\\w+",
|
|
1002
|
+
"name": "entity.name.type.go"
|
|
955
1003
|
}
|
|
956
1004
|
]
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
"captures": {
|
|
960
|
-
"1": {
|
|
961
|
-
"patterns": [
|
|
962
|
-
{
|
|
963
|
-
"include": "#type-declarations"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"match": "\\w+",
|
|
967
|
-
"name": "entity.name.type.go"
|
|
968
|
-
}
|
|
969
|
-
]
|
|
970
|
-
}
|
|
971
|
-
},
|
|
972
|
-
"comment": "other types",
|
|
973
|
-
"match": "([\\w\\.]+)"
|
|
974
|
-
},
|
|
975
|
-
{
|
|
976
|
-
"include": "$self"
|
|
977
1005
|
}
|
|
978
|
-
|
|
1006
|
+
},
|
|
1007
|
+
"comment": "other types",
|
|
1008
|
+
"match": "([\\w\\.]+)"
|
|
979
1009
|
}
|
|
980
1010
|
]
|
|
981
1011
|
},
|
|
@@ -1057,7 +1087,7 @@
|
|
|
1057
1087
|
}
|
|
1058
1088
|
},
|
|
1059
1089
|
"comment": "map types",
|
|
1060
|
-
"end": "(?:(\\])((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?!(?:[\\[\\]\\*]+)?\\b(?:func|struct|map)\\b)[
|
|
1090
|
+
"end": "(?:(\\])((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?!(?:[\\[\\]\\*]+)?\\b(?:func|struct|map)\\b)(?:[\\*\\[\\]]+)?(?:[\\w\\.]+))?)",
|
|
1061
1091
|
"endCaptures": {
|
|
1062
1092
|
"1": {
|
|
1063
1093
|
"name": "punctuation.definition.end.bracket.square.go"
|
|
@@ -1087,7 +1117,7 @@
|
|
|
1087
1117
|
"include": "#type-declarations-without-brackets"
|
|
1088
1118
|
},
|
|
1089
1119
|
{
|
|
1090
|
-
"include": "#
|
|
1120
|
+
"include": "#parameter-variable-types"
|
|
1091
1121
|
},
|
|
1092
1122
|
{
|
|
1093
1123
|
"include": "#functions"
|
|
@@ -1872,7 +1902,7 @@
|
|
|
1872
1902
|
}
|
|
1873
1903
|
},
|
|
1874
1904
|
"comment": "single type declaration",
|
|
1875
|
-
"match": "(?:(?:^\\s*)(\\btype\\b)(?:\\s*)([\\w\\.\\*]+)(?:\\s+)(?!(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\b)([\\s\\S]+))"
|
|
1905
|
+
"match": "(?:(?:^\\s*)(\\btype\\b)(?:\\s*)([\\w\\.\\*]+)(?:\\s+)(?!(?:\\=\\s*)?(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\b)([\\s\\S]+))"
|
|
1876
1906
|
},
|
|
1877
1907
|
{
|
|
1878
1908
|
"begin": "(?:(?:^|\\s+)(\\btype\\b)(?:\\s*)([\\w\\.\\*]+)(?=\\[))",
|
|
@@ -2101,9 +2131,10 @@
|
|
|
2101
2131
|
"match": "(?:(?:^\\s*)(\\btype\\b)(?:\\s*)([\\w\\.]+))"
|
|
2102
2132
|
},
|
|
2103
2133
|
"struct_variable_types_fields_multi": {
|
|
2134
|
+
"comment": "struct variable and type fields with multi lines",
|
|
2104
2135
|
"patterns": [
|
|
2105
2136
|
{
|
|
2106
|
-
"begin": "(?:(
|
|
2137
|
+
"begin": "(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\bstruct\\b)(?:\\s*)(\\{))",
|
|
2107
2138
|
"beginCaptures": {
|
|
2108
2139
|
"1": {
|
|
2109
2140
|
"patterns": [
|
|
@@ -2123,7 +2154,7 @@
|
|
|
2123
2154
|
"name": "punctuation.definition.begin.bracket.curly.go"
|
|
2124
2155
|
}
|
|
2125
2156
|
},
|
|
2126
|
-
"comment": "
|
|
2157
|
+
"comment": "struct in struct types",
|
|
2127
2158
|
"end": "\\}",
|
|
2128
2159
|
"endCaptures": {
|
|
2129
2160
|
"0": {
|
|
@@ -2138,22 +2169,29 @@
|
|
|
2138
2169
|
"include": "$self"
|
|
2139
2170
|
}
|
|
2140
2171
|
]
|
|
2141
|
-
}
|
|
2142
|
-
]
|
|
2143
|
-
},
|
|
2144
|
-
"struct_variables_types": {
|
|
2145
|
-
"patterns": [
|
|
2172
|
+
},
|
|
2146
2173
|
{
|
|
2147
|
-
"begin": "(\\
|
|
2174
|
+
"begin": "(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\binterface\\b)(?:\\s*)(\\{))",
|
|
2148
2175
|
"beginCaptures": {
|
|
2149
2176
|
"1": {
|
|
2150
|
-
"
|
|
2177
|
+
"patterns": [
|
|
2178
|
+
{
|
|
2179
|
+
"include": "#type-declarations"
|
|
2180
|
+
},
|
|
2181
|
+
{
|
|
2182
|
+
"match": "\\w+",
|
|
2183
|
+
"name": "variable.other.property.go"
|
|
2184
|
+
}
|
|
2185
|
+
]
|
|
2151
2186
|
},
|
|
2152
2187
|
"2": {
|
|
2188
|
+
"name": "keyword.interface.go"
|
|
2189
|
+
},
|
|
2190
|
+
"3": {
|
|
2153
2191
|
"name": "punctuation.definition.begin.bracket.curly.go"
|
|
2154
2192
|
}
|
|
2155
2193
|
},
|
|
2156
|
-
"comment": "
|
|
2194
|
+
"comment": "interface in struct types",
|
|
2157
2195
|
"end": "\\}",
|
|
2158
2196
|
"endCaptures": {
|
|
2159
2197
|
"0": {
|
|
@@ -2162,12 +2200,78 @@
|
|
|
2162
2200
|
},
|
|
2163
2201
|
"patterns": [
|
|
2164
2202
|
{
|
|
2165
|
-
"include": "#
|
|
2203
|
+
"include": "#interface_variables_types_field"
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
"include": "$self"
|
|
2207
|
+
}
|
|
2208
|
+
]
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
"begin": "(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\bfunc\\b)(?:\\s*)(\\())",
|
|
2212
|
+
"beginCaptures": {
|
|
2213
|
+
"1": {
|
|
2214
|
+
"patterns": [
|
|
2215
|
+
{
|
|
2216
|
+
"include": "#type-declarations"
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
"match": "\\w+",
|
|
2220
|
+
"name": "variable.other.property.go"
|
|
2221
|
+
}
|
|
2222
|
+
]
|
|
2223
|
+
},
|
|
2224
|
+
"2": {
|
|
2225
|
+
"name": "keyword.function.go"
|
|
2226
|
+
},
|
|
2227
|
+
"3": {
|
|
2228
|
+
"name": "punctuation.definition.begin.bracket.round.go"
|
|
2229
|
+
}
|
|
2230
|
+
},
|
|
2231
|
+
"comment": "function in struct types",
|
|
2232
|
+
"end": "\\)",
|
|
2233
|
+
"endCaptures": {
|
|
2234
|
+
"0": {
|
|
2235
|
+
"name": "punctuation.definition.end.bracket.round.go"
|
|
2236
|
+
}
|
|
2237
|
+
},
|
|
2238
|
+
"patterns": [
|
|
2239
|
+
{
|
|
2240
|
+
"include": "#function_param_types"
|
|
2166
2241
|
},
|
|
2167
2242
|
{
|
|
2168
2243
|
"include": "$self"
|
|
2169
2244
|
}
|
|
2170
2245
|
]
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
"include": "#parameter-variable-types"
|
|
2249
|
+
}
|
|
2250
|
+
]
|
|
2251
|
+
},
|
|
2252
|
+
"struct_variables_types": {
|
|
2253
|
+
"begin": "(\\bstruct\\b)\\s*(\\{)",
|
|
2254
|
+
"beginCaptures": {
|
|
2255
|
+
"1": {
|
|
2256
|
+
"name": "keyword.struct.go"
|
|
2257
|
+
},
|
|
2258
|
+
"2": {
|
|
2259
|
+
"name": "punctuation.definition.begin.bracket.curly.go"
|
|
2260
|
+
}
|
|
2261
|
+
},
|
|
2262
|
+
"comment": "Struct variable type",
|
|
2263
|
+
"end": "\\}",
|
|
2264
|
+
"endCaptures": {
|
|
2265
|
+
"0": {
|
|
2266
|
+
"name": "punctuation.definition.end.bracket.curly.go"
|
|
2267
|
+
}
|
|
2268
|
+
},
|
|
2269
|
+
"patterns": [
|
|
2270
|
+
{
|
|
2271
|
+
"include": "#struct_variables_types_fields"
|
|
2272
|
+
},
|
|
2273
|
+
{
|
|
2274
|
+
"include": "$self"
|
|
2171
2275
|
}
|
|
2172
2276
|
]
|
|
2173
2277
|
},
|
|
@@ -2251,13 +2355,13 @@
|
|
|
2251
2355
|
]
|
|
2252
2356
|
}
|
|
2253
2357
|
},
|
|
2254
|
-
"match": "(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\
|
|
2358
|
+
"match": "(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\S]+)(?:\\;)?))"
|
|
2255
2359
|
}
|
|
2256
2360
|
]
|
|
2257
2361
|
}
|
|
2258
2362
|
},
|
|
2259
2363
|
"comment": "one line with semicolon(;) without formatting gofmt - single type | property variables and types",
|
|
2260
|
-
"match": "(?:(?<=\\{)((?:\\s*(?:(?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?(?:(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\
|
|
2364
|
+
"match": "(?:(?<=\\{)((?:\\s*(?:(?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?(?:(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\S]+)(?:\\;)?))+)\\s*(?=\\}))"
|
|
2261
2365
|
},
|
|
2262
2366
|
{
|
|
2263
2367
|
"captures": {
|