tm-grammars 0.0.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/LICENSE +22 -0
- package/NOTICE +6565 -0
- package/README.md +211 -0
- package/grammars/abap.json +380 -0
- package/grammars/actionscript-3.json +951 -0
- package/grammars/ada.json +3874 -0
- package/grammars/apache.json +562 -0
- package/grammars/apex.json +3203 -0
- package/grammars/apl.json +1479 -0
- package/grammars/applescript.json +1406 -0
- package/grammars/ara.json +428 -0
- package/grammars/asm.json +1741 -0
- package/grammars/astro.json +776 -0
- package/grammars/awk.json +388 -0
- package/grammars/ballerina.json +3768 -0
- package/grammars/bat.json +783 -0
- package/grammars/beancount.json +831 -0
- package/grammars/berry.json +172 -0
- package/grammars/bibtex.json +315 -0
- package/grammars/bicep.json +239 -0
- package/grammars/blade.json +3870 -0
- package/grammars/c.json +3552 -0
- package/grammars/cadence.json +738 -0
- package/grammars/clarity.json +877 -0
- package/grammars/clojure.json +426 -0
- package/grammars/cmake.json +143 -0
- package/grammars/cobol.json +1124 -0
- package/grammars/codeql.json +1540 -0
- package/grammars/coffee.json +1311 -0
- package/grammars/cpp-macro.json +9498 -0
- package/grammars/cpp.json +16635 -0
- package/grammars/crystal.json +1866 -0
- package/grammars/csharp.json +5722 -0
- package/grammars/css.json +1860 -0
- package/grammars/csv.json +46 -0
- package/grammars/cue.json +1128 -0
- package/grammars/cypher.json +353 -0
- package/grammars/d.json +3185 -0
- package/grammars/dart.json +522 -0
- package/grammars/dax.json +185 -0
- package/grammars/diff.json +155 -0
- package/grammars/docker.json +97 -0
- package/grammars/dream-maker.json +640 -0
- package/grammars/elixir.json +1014 -0
- package/grammars/elm.json +751 -0
- package/grammars/erb.json +156 -0
- package/grammars/erlang.json +1757 -0
- package/grammars/fish.json +189 -0
- package/grammars/fsharp.json +1831 -0
- package/grammars/gdresource.json +290 -0
- package/grammars/gdscript.json +969 -0
- package/grammars/gdshader.json +405 -0
- package/grammars/gherkin.json +133 -0
- package/grammars/git-commit.json +85 -0
- package/grammars/git-rebase.json +56 -0
- package/grammars/glimmer-js.json +98 -0
- package/grammars/glimmer-ts.json +98 -0
- package/grammars/glsl.json +57 -0
- package/grammars/gnuplot.json +892 -0
- package/grammars/go.json +1012 -0
- package/grammars/graphql.json +1295 -0
- package/grammars/groovy.json +1378 -0
- package/grammars/hack.json +2650 -0
- package/grammars/haml.json +598 -0
- package/grammars/handlebars.json +848 -0
- package/grammars/haskell.json +2431 -0
- package/grammars/hcl.json +787 -0
- package/grammars/hjson.json +821 -0
- package/grammars/hlsl.json +212 -0
- package/grammars/html.json +93 -0
- package/grammars/imba.json +2696 -0
- package/grammars/ini.json +108 -0
- package/grammars/java.json +1885 -0
- package/grammars/javascript.json +5984 -0
- package/grammars/jinja-html.json +16 -0
- package/grammars/jinja.json +345 -0
- package/grammars/jison.json +715 -0
- package/grammars/jsdoc.json +21 -0
- package/grammars/json.json +208 -0
- package/grammars/json5.json +244 -0
- package/grammars/jsonc.json +208 -0
- package/grammars/jsonl.json +208 -0
- package/grammars/jsonnet.json +211 -0
- package/grammars/jssm.json +159 -0
- package/grammars/jsx.json +5984 -0
- package/grammars/julia.json +1061 -0
- package/grammars/kotlin.json +580 -0
- package/grammars/kusto.json +687 -0
- package/grammars/latex.json +2395 -0
- package/grammars/less.json +5012 -0
- package/grammars/liquid.json +990 -0
- package/grammars/lisp.json +121 -0
- package/grammars/logo.json +55 -0
- package/grammars/lua.json +956 -0
- package/grammars/make.json +629 -0
- package/grammars/markdown.json +3066 -0
- package/grammars/marko.json +1344 -0
- package/grammars/matlab.json +1131 -0
- package/grammars/mdc.json +571 -0
- package/grammars/mdx.json +5629 -0
- package/grammars/mermaid.json +1382 -0
- package/grammars/mojo.json +4153 -0
- package/grammars/narrat.json +227 -0
- package/grammars/nextflow.json +298 -0
- package/grammars/nginx.json +2121 -0
- package/grammars/nim.json +1522 -0
- package/grammars/nix.json +1200 -0
- package/grammars/nushell.json +1047 -0
- package/grammars/objective-c.json +3750 -0
- package/grammars/objective-cpp.json +7242 -0
- package/grammars/ocaml.json +2967 -0
- package/grammars/pascal.json +154 -0
- package/grammars/perl.json +2971 -0
- package/grammars/php.json +4024 -0
- package/grammars/plsql.json +241 -0
- package/grammars/postcss.json +377 -0
- package/grammars/powerquery.json +349 -0
- package/grammars/powershell.json +1024 -0
- package/grammars/prisma.json +443 -0
- package/grammars/prolog.json +298 -0
- package/grammars/proto.json +507 -0
- package/grammars/pug.json +1033 -0
- package/grammars/puppet.json +777 -0
- package/grammars/purescript.json +871 -0
- package/grammars/python.json +4208 -0
- package/grammars/r.json +637 -0
- package/grammars/raku.json +310 -0
- package/grammars/razor.json +1813 -0
- package/grammars/reg.json +136 -0
- package/grammars/rel.json +200 -0
- package/grammars/riscv.json +298 -0
- package/grammars/rst.json +734 -0
- package/grammars/ruby.json +2769 -0
- package/grammars/rust.json +1171 -0
- package/grammars/sas.json +302 -0
- package/grammars/sass.json +618 -0
- package/grammars/scala.json +1313 -0
- package/grammars/scheme.json +384 -0
- package/grammars/scss.json +1874 -0
- package/grammars/shaderlab.json +199 -0
- package/grammars/shellscript.json +2025 -0
- package/grammars/shellsession.json +33 -0
- package/grammars/smalltalk.json +235 -0
- package/grammars/solidity.json +1210 -0
- package/grammars/sparql.json +45 -0
- package/grammars/splunk.json +91 -0
- package/grammars/sql.json +631 -0
- package/grammars/ssh-config.json +88 -0
- package/grammars/stata.json +3050 -0
- package/grammars/stylus.json +1208 -0
- package/grammars/svelte.json +1171 -0
- package/grammars/swift.json +4203 -0
- package/grammars/system-verilog.json +1063 -0
- package/grammars/tasl.json +292 -0
- package/grammars/tcl.json +291 -0
- package/grammars/tex.json +281 -0
- package/grammars/toml.json +431 -0
- package/grammars/tsx.json +5984 -0
- package/grammars/turtle.json +261 -0
- package/grammars/twig.json +1394 -0
- package/grammars/typescript.json +5735 -0
- package/grammars/v.json +1001 -0
- package/grammars/vb.json +232 -0
- package/grammars/verilog.json +305 -0
- package/grammars/vhdl.json +1484 -0
- package/grammars/viml.json +445 -0
- package/grammars/vue-html.json +559 -0
- package/grammars/vue.json +1237 -0
- package/grammars/vyper.json +5415 -0
- package/grammars/wasm.json +831 -0
- package/grammars/wenyan.json +129 -0
- package/grammars/wgsl.json +391 -0
- package/grammars/wolfram.json +2370 -0
- package/grammars/xml.json +382 -0
- package/grammars/xsl.json +89 -0
- package/grammars/yaml.json +616 -0
- package/grammars/zenscript.json +257 -0
- package/grammars/zig.json +312 -0
- package/index.d.ts +18 -0
- package/index.js +2165 -0
- package/package.json +46 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Berry",
|
|
3
|
+
"name": "berry",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#controls"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"include": "#strings"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"include": "#comment-block"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"include": "#comments"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"include": "#keywords"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"include": "#function"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"include": "#member"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"include": "#identifier"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"include": "#number"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"include": "#operator"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"repository": {
|
|
37
|
+
"comment-block": {
|
|
38
|
+
"begin": "\\#\\-",
|
|
39
|
+
"end": "\\-#",
|
|
40
|
+
"name": "comment.berry",
|
|
41
|
+
"patterns": [
|
|
42
|
+
{
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"comments": {
|
|
47
|
+
"begin": "\\#",
|
|
48
|
+
"end": "\\n",
|
|
49
|
+
"name": "comment.line.berry",
|
|
50
|
+
"patterns": [
|
|
51
|
+
{
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"controls": {
|
|
56
|
+
"patterns": [
|
|
57
|
+
{
|
|
58
|
+
"match": "\\b(if|elif|else|for|while|do|end|break|continue|return|try|except|raise)\\b",
|
|
59
|
+
"name": "keyword.control.berry"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"function": {
|
|
64
|
+
"patterns": [
|
|
65
|
+
{
|
|
66
|
+
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\\())",
|
|
67
|
+
"name": "entity.name.function.berry"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"identifier": {
|
|
72
|
+
"patterns": [
|
|
73
|
+
{
|
|
74
|
+
"match": "\\b[_A-Za-z]\\w+\\b",
|
|
75
|
+
"name": "identifier.berry"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"keywords": {
|
|
80
|
+
"patterns": [
|
|
81
|
+
{
|
|
82
|
+
"match": "\\b(var|static|def|class|true|false|nil|self|super|import|as|_class)\\b",
|
|
83
|
+
"name": "keyword.berry"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"member": {
|
|
88
|
+
"patterns": [
|
|
89
|
+
{
|
|
90
|
+
"captures": {
|
|
91
|
+
"0": {
|
|
92
|
+
"name": "entity.other.attribute-name.berry"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"match": "\\.([a-zA-Z_][a-zA-Z0-9_]*)"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"number": {
|
|
100
|
+
"patterns": [
|
|
101
|
+
{
|
|
102
|
+
"match": "0x[a-fA-F0-9]+|\\d+|(\\d+\\.?|\\.\\d)\\d*([eE][+-]?\\d+)?",
|
|
103
|
+
"name": "constant.numeric.berry"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"operator": {
|
|
108
|
+
"patterns": [
|
|
109
|
+
{
|
|
110
|
+
"match": "\\(|\\)|\\[|\\]|\\.|-|\\!|~|\\*|/|%|\\+|&|\\^|\\||<|>|=|:",
|
|
111
|
+
"name": "keyword.operator.berry"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"strings": {
|
|
116
|
+
"patterns": [
|
|
117
|
+
{
|
|
118
|
+
"begin": "(\"|')",
|
|
119
|
+
"end": "\\1",
|
|
120
|
+
"name": "string.quoted.double.berry",
|
|
121
|
+
"patterns": [
|
|
122
|
+
{
|
|
123
|
+
"match": "(\\\\x[\\h]{2})|(\\\\[0-7]{3})|(\\\\\\\\)|(\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)",
|
|
124
|
+
"name": "constant.character.escape.berry"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"begin": "f(\"|')",
|
|
130
|
+
"end": "\\1",
|
|
131
|
+
"name": "string.quoted.other.berry",
|
|
132
|
+
"patterns": [
|
|
133
|
+
{
|
|
134
|
+
"match": "(\\\\x[\\h]{2})|(\\\\[0-7]{3})|(\\\\\\\\)|(\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)",
|
|
135
|
+
"name": "constant.character.escape.berry"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"match": "\\{\\{[^\\}]*\\}\\}",
|
|
139
|
+
"name": "string.quoted.other.berry"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"begin": "\\{",
|
|
143
|
+
"end": "\\}",
|
|
144
|
+
"name": "keyword.other.unit.berry",
|
|
145
|
+
"patterns": [
|
|
146
|
+
{
|
|
147
|
+
"include": "#keywords"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"include": "#numbers"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"include": "#identifier"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"include": "#operator"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"include": "#member"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"include": "#function"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"scopeName": "source.berry"
|
|
172
|
+
}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "BibTeX",
|
|
3
|
+
"name": "bibtex",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"captures": {
|
|
7
|
+
"0": {
|
|
8
|
+
"name": "punctuation.definition.comment.bibtex"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"match": "@(?i:comment)(?=[\\s{(])",
|
|
12
|
+
"name": "comment.block.at-sign.bibtex"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"begin": "((@)(?i:preamble))\\s*(\\{)\\s*",
|
|
16
|
+
"beginCaptures": {
|
|
17
|
+
"1": {
|
|
18
|
+
"name": "keyword.other.preamble.bibtex"
|
|
19
|
+
},
|
|
20
|
+
"2": {
|
|
21
|
+
"name": "punctuation.definition.keyword.bibtex"
|
|
22
|
+
},
|
|
23
|
+
"3": {
|
|
24
|
+
"name": "punctuation.section.preamble.begin.bibtex"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"end": "\\}",
|
|
28
|
+
"endCaptures": {
|
|
29
|
+
"0": {
|
|
30
|
+
"name": "punctuation.section.preamble.end.bibtex"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"name": "meta.preamble.braces.bibtex",
|
|
34
|
+
"patterns": [
|
|
35
|
+
{
|
|
36
|
+
"include": "#field_value"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"begin": "((@)(?i:preamble))\\s*(\\()\\s*",
|
|
42
|
+
"beginCaptures": {
|
|
43
|
+
"1": {
|
|
44
|
+
"name": "keyword.other.preamble.bibtex"
|
|
45
|
+
},
|
|
46
|
+
"2": {
|
|
47
|
+
"name": "punctuation.definition.keyword.bibtex"
|
|
48
|
+
},
|
|
49
|
+
"3": {
|
|
50
|
+
"name": "punctuation.section.preamble.begin.bibtex"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"end": "\\)",
|
|
54
|
+
"endCaptures": {
|
|
55
|
+
"0": {
|
|
56
|
+
"name": "punctuation.section.preamble.end.bibtex"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"name": "meta.preamble.parenthesis.bibtex",
|
|
60
|
+
"patterns": [
|
|
61
|
+
{
|
|
62
|
+
"include": "#field_value"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"begin": "((@)(?i:string))\\s*(\\{)\\s*([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)",
|
|
68
|
+
"beginCaptures": {
|
|
69
|
+
"1": {
|
|
70
|
+
"name": "keyword.other.string-constant.bibtex"
|
|
71
|
+
},
|
|
72
|
+
"2": {
|
|
73
|
+
"name": "punctuation.definition.keyword.bibtex"
|
|
74
|
+
},
|
|
75
|
+
"3": {
|
|
76
|
+
"name": "punctuation.section.string-constant.begin.bibtex"
|
|
77
|
+
},
|
|
78
|
+
"4": {
|
|
79
|
+
"name": "variable.other.bibtex"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"end": "\\}",
|
|
83
|
+
"endCaptures": {
|
|
84
|
+
"0": {
|
|
85
|
+
"name": "punctuation.section.string-constant.end.bibtex"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"name": "meta.string-constant.braces.bibtex",
|
|
89
|
+
"patterns": [
|
|
90
|
+
{
|
|
91
|
+
"include": "#field_value"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"begin": "((@)(?i:string))\\s*(\\()\\s*([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)",
|
|
97
|
+
"beginCaptures": {
|
|
98
|
+
"1": {
|
|
99
|
+
"name": "keyword.other.string-constant.bibtex"
|
|
100
|
+
},
|
|
101
|
+
"2": {
|
|
102
|
+
"name": "punctuation.definition.keyword.bibtex"
|
|
103
|
+
},
|
|
104
|
+
"3": {
|
|
105
|
+
"name": "punctuation.section.string-constant.begin.bibtex"
|
|
106
|
+
},
|
|
107
|
+
"4": {
|
|
108
|
+
"name": "variable.other.bibtex"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"end": "\\)",
|
|
112
|
+
"endCaptures": {
|
|
113
|
+
"0": {
|
|
114
|
+
"name": "punctuation.section.string-constant.end.bibtex"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"name": "meta.string-constant.parenthesis.bibtex",
|
|
118
|
+
"patterns": [
|
|
119
|
+
{
|
|
120
|
+
"include": "#field_value"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"begin": "((@)[a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\{)\\s*([^\\s,}]*)",
|
|
126
|
+
"beginCaptures": {
|
|
127
|
+
"1": {
|
|
128
|
+
"name": "keyword.other.entry-type.bibtex"
|
|
129
|
+
},
|
|
130
|
+
"2": {
|
|
131
|
+
"name": "punctuation.definition.keyword.bibtex"
|
|
132
|
+
},
|
|
133
|
+
"3": {
|
|
134
|
+
"name": "punctuation.section.entry.begin.bibtex"
|
|
135
|
+
},
|
|
136
|
+
"4": {
|
|
137
|
+
"name": "entity.name.type.entry-key.bibtex"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"end": "\\}",
|
|
141
|
+
"endCaptures": {
|
|
142
|
+
"0": {
|
|
143
|
+
"name": "punctuation.section.entry.end.bibtex"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"name": "meta.entry.braces.bibtex",
|
|
147
|
+
"patterns": [
|
|
148
|
+
{
|
|
149
|
+
"begin": "([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\=)",
|
|
150
|
+
"beginCaptures": {
|
|
151
|
+
"1": {
|
|
152
|
+
"name": "support.function.key.bibtex"
|
|
153
|
+
},
|
|
154
|
+
"2": {
|
|
155
|
+
"name": "punctuation.separator.key-value.bibtex"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"end": "(?=[,}])",
|
|
159
|
+
"name": "meta.key-assignment.bibtex",
|
|
160
|
+
"patterns": [
|
|
161
|
+
{
|
|
162
|
+
"include": "#field_value"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"begin": "((@)[a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\()\\s*([^\\s,]*)",
|
|
170
|
+
"beginCaptures": {
|
|
171
|
+
"1": {
|
|
172
|
+
"name": "keyword.other.entry-type.bibtex"
|
|
173
|
+
},
|
|
174
|
+
"2": {
|
|
175
|
+
"name": "punctuation.definition.keyword.bibtex"
|
|
176
|
+
},
|
|
177
|
+
"3": {
|
|
178
|
+
"name": "punctuation.section.entry.begin.bibtex"
|
|
179
|
+
},
|
|
180
|
+
"4": {
|
|
181
|
+
"name": "entity.name.type.entry-key.bibtex"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"end": "\\)",
|
|
185
|
+
"endCaptures": {
|
|
186
|
+
"0": {
|
|
187
|
+
"name": "punctuation.section.entry.end.bibtex"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"name": "meta.entry.parenthesis.bibtex",
|
|
191
|
+
"patterns": [
|
|
192
|
+
{
|
|
193
|
+
"begin": "([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\=)",
|
|
194
|
+
"beginCaptures": {
|
|
195
|
+
"1": {
|
|
196
|
+
"name": "support.function.key.bibtex"
|
|
197
|
+
},
|
|
198
|
+
"2": {
|
|
199
|
+
"name": "punctuation.separator.key-value.bibtex"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"end": "(?=[,)])",
|
|
203
|
+
"name": "meta.key-assignment.bibtex",
|
|
204
|
+
"patterns": [
|
|
205
|
+
{
|
|
206
|
+
"include": "#field_value"
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"begin": "[^@\\n]",
|
|
214
|
+
"end": "(?=@)",
|
|
215
|
+
"name": "comment.block.bibtex"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"repository": {
|
|
219
|
+
"field_value": {
|
|
220
|
+
"patterns": [
|
|
221
|
+
{
|
|
222
|
+
"include": "#string_content"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"include": "#integer"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"include": "#string_var"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"match": "#",
|
|
232
|
+
"name": "keyword.operator.bibtex"
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
"integer": {
|
|
237
|
+
"captures": {
|
|
238
|
+
"1": {
|
|
239
|
+
"name": "constant.numeric.bibtex"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"match": "\\s*(\\d+)\\s*"
|
|
243
|
+
},
|
|
244
|
+
"nested_braces": {
|
|
245
|
+
"begin": "\\{",
|
|
246
|
+
"beginCaptures": {
|
|
247
|
+
"0": {
|
|
248
|
+
"name": "punctuation.definition.group.begin.bibtex"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"end": "\\}",
|
|
252
|
+
"endCaptures": {
|
|
253
|
+
"0": {
|
|
254
|
+
"name": "punctuation.definition.group.end.bibtex"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"patterns": [
|
|
258
|
+
{
|
|
259
|
+
"include": "#nested_braces"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
"string_content": {
|
|
264
|
+
"patterns": [
|
|
265
|
+
{
|
|
266
|
+
"begin": "\\{",
|
|
267
|
+
"beginCaptures": {
|
|
268
|
+
"0": {
|
|
269
|
+
"name": "punctuation.definition.string.begin.bibtex"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"end": "\\}",
|
|
273
|
+
"endCaptures": {
|
|
274
|
+
"0": {
|
|
275
|
+
"name": "punctuation.definition.string.end.bibtex"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"patterns": [
|
|
279
|
+
{
|
|
280
|
+
"include": "#nested_braces"
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"begin": "\"",
|
|
286
|
+
"beginCaptures": {
|
|
287
|
+
"0": {
|
|
288
|
+
"name": "punctuation.definition.string.begin.bibtex"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"end": "\"",
|
|
292
|
+
"endCaptures": {
|
|
293
|
+
"0": {
|
|
294
|
+
"name": "punctuation.definition.string.end.bibtex"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"patterns": [
|
|
298
|
+
{
|
|
299
|
+
"include": "#nested_braces"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
"string_var": {
|
|
306
|
+
"captures": {
|
|
307
|
+
"0": {
|
|
308
|
+
"name": "support.variable.bibtex"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"match": "[a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"scopeName": "text.bibtex"
|
|
315
|
+
}
|