tm-grammars 1.22.18 → 1.23.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 +287 -1
- package/README.md +241 -239
- package/grammars/abap.json +36 -36
- package/grammars/actionscript-3.json +29 -29
- package/grammars/ada.json +78 -78
- package/grammars/angular-expression.json +62 -62
- package/grammars/angular-html.json +0 -1
- package/grammars/angular-inline-style.json +3 -3
- package/grammars/angular-inline-template.json +2 -2
- package/grammars/angular-template-blocks.json +3 -3
- package/grammars/angular-template.json +1 -1
- package/grammars/angular-ts.json +251 -251
- package/grammars/apache.json +31 -31
- package/grammars/apex.json +108 -108
- package/grammars/apl.json +18 -18
- package/grammars/applescript.json +11 -11
- package/grammars/ara.json +13 -13
- package/grammars/asciidoc.json +234 -234
- package/grammars/asm.json +90 -90
- package/grammars/astro.json +25 -25
- package/grammars/awk.json +8 -8
- package/grammars/ballerina.json +150 -150
- package/grammars/bat.json +28 -28
- package/grammars/beancount.json +33 -33
- package/grammars/berry.json +11 -11
- package/grammars/bibtex.json +12 -12
- package/grammars/bicep.json +12 -12
- package/grammars/blade.json +183 -183
- package/grammars/bsl.json +58 -58
- package/grammars/c.json +162 -162
- package/grammars/cadence.json +20 -20
- package/grammars/cairo.json +10 -10
- package/grammars/clarity.json +20 -20
- package/grammars/clojure.json +25 -25
- package/grammars/cmake.json +3 -3
- package/grammars/cobol.json +91 -91
- package/grammars/codeql.json +154 -154
- package/grammars/coffee.json +45 -45
- package/grammars/common-lisp.json +50 -50
- package/grammars/coq.json +10 -10
- package/grammars/cpp-macro.json +410 -410
- package/grammars/cpp.json +641 -641
- package/grammars/crystal.json +68 -68
- package/grammars/csharp.json +196 -196
- package/grammars/css.json +83 -83
- package/grammars/csv.json +1 -1
- package/grammars/cue.json +55 -55
- package/grammars/cypher.json +11 -11
- package/grammars/d.json +127 -32
- package/grammars/dart.json +18 -18
- package/grammars/dax.json +9 -9
- package/grammars/desktop.json +9 -9
- package/grammars/diff.json +3 -3
- package/grammars/dotenv.json +3 -3
- package/grammars/dream-maker.json +20 -20
- package/grammars/edge.json +8 -8
- package/grammars/elixir.json +44 -44
- package/grammars/elm.json +23 -23
- package/grammars/emacs-lisp.json +76 -76
- package/grammars/erb.json +2 -2
- package/grammars/erlang.json +29 -29
- package/grammars/es-tag-css.json +3 -3
- package/grammars/es-tag-glsl.json +3 -3
- package/grammars/es-tag-html.json +3 -3
- package/grammars/es-tag-sql.json +2 -2
- package/grammars/es-tag-xml.json +2 -2
- package/grammars/fennel.json +8 -8
- package/grammars/fish.json +10 -10
- package/grammars/fluent.json +10 -10
- package/grammars/fortran-fixed-form.json +1 -1
- package/grammars/fortran-free-form.json +106 -106
- package/grammars/fsharp.json +70 -70
- package/grammars/gdresource.json +15 -15
- package/grammars/gdscript.json +31 -27
- package/grammars/gdshader.json +18 -18
- package/grammars/genie.json +6 -6
- package/grammars/gherkin.json +1 -1
- package/grammars/git-commit.json +1 -1
- package/grammars/git-rebase.json +1 -1
- package/grammars/gleam.json +11 -11
- package/grammars/glimmer-js.json +35 -35
- package/grammars/glimmer-ts.json +35 -35
- package/grammars/glsl.json +4 -4
- package/grammars/gnuplot.json +41 -41
- package/grammars/go.json +155 -155
- package/grammars/graphql.json +20 -20
- package/grammars/groovy.json +44 -44
- package/grammars/hack.json +74 -74
- package/grammars/haml.json +24 -24
- package/grammars/handlebars.json +25 -25
- package/grammars/haskell.json +99 -99
- package/grammars/haxe.json +51 -51
- package/grammars/hcl.json +43 -43
- package/grammars/hjson.json +29 -29
- package/grammars/hlsl.json +15 -15
- package/grammars/html-derivative.json +0 -1
- package/grammars/html.json +28 -29
- package/grammars/http.json +17 -17
- package/grammars/hxml.json +3 -3
- package/grammars/hy.json +10 -10
- package/grammars/imba.json +168 -173
- package/grammars/ini.json +2 -2
- package/grammars/java.json +54 -54
- package/grammars/javascript.json +262 -262
- package/grammars/jinja-html.json +3 -3
- package/grammars/jinja.json +15 -15
- package/grammars/jison.json +18 -18
- package/grammars/json.json +6 -6
- package/grammars/json5.json +12 -12
- package/grammars/jsonc.json +6 -6
- package/grammars/jsonl.json +6 -6
- package/grammars/jsonnet.json +15 -15
- package/grammars/jssm.json +4 -4
- package/grammars/jsx.json +262 -262
- package/grammars/julia.json +45 -45
- package/grammars/kotlin.json +15 -15
- package/grammars/kusto.json +13 -13
- package/grammars/latex.json +260 -260
- package/grammars/lean.json +12 -12
- package/grammars/less.json +91 -91
- package/grammars/liquid.json +96 -62
- package/grammars/llvm.json +122 -0
- package/grammars/log.json +22 -22
- package/grammars/logo.json +2 -2
- package/grammars/lua.json +34 -34
- package/grammars/luau.json +20 -20
- package/grammars/make.json +22 -22
- package/grammars/markdown-vue.json +1 -1
- package/grammars/markdown.json +83 -83
- package/grammars/marko.json +19 -19
- package/grammars/matlab.json +29 -29
- package/grammars/mdc.json +17 -17
- package/grammars/mdx.json +278 -278
- package/grammars/mermaid.json +97 -97
- package/grammars/mipsasm.json +2 -2
- package/grammars/mojo.json +122 -122
- package/grammars/move.json +35 -35
- package/grammars/narrat.json +10 -10
- package/grammars/nextflow.json +11 -11
- package/grammars/nginx.json +45 -45
- package/grammars/nim.json +44 -44
- package/grammars/nix.json +71 -71
- package/grammars/nushell.json +36 -36
- package/grammars/objective-c.json +129 -129
- package/grammars/objective-cpp.json +245 -245
- package/grammars/ocaml.json +229 -229
- package/grammars/pascal.json +4 -4
- package/grammars/perl.json +64 -64
- package/grammars/php.json +199 -199
- package/grammars/plsql.json +10 -10
- package/grammars/po.json +4 -4
- package/grammars/polar.json +13 -13
- package/grammars/postcss.json +31 -31
- package/grammars/powerquery.json +10 -10
- package/grammars/powershell.json +54 -54
- package/grammars/prisma.json +13 -13
- package/grammars/prolog.json +3 -3
- package/grammars/proto.json +11 -11
- package/grammars/pug.json +30 -30
- package/grammars/puppet.json +35 -35
- package/grammars/purescript.json +843 -467
- package/grammars/python.json +126 -126
- package/grammars/qml.json +18 -18
- package/grammars/qss.json +7 -7
- package/grammars/r.json +17 -17
- package/grammars/racket.json +58 -58
- package/grammars/raku.json +15 -15
- package/grammars/razor.json +30 -30
- package/grammars/reg.json +3 -3
- package/grammars/regexp.json +15 -15
- package/grammars/rel.json +4 -4
- package/grammars/riscv.json +15 -15
- package/grammars/rst.json +26 -26
- package/grammars/ruby.json +103 -106
- package/grammars/rust.json +13 -13
- package/grammars/sas.json +9 -9
- package/grammars/sass.json +35 -35
- package/grammars/scala.json +75 -75
- package/grammars/scheme.json +16 -16
- package/grammars/scss.json +68 -68
- package/grammars/sdbl.json +18 -18
- package/grammars/shaderlab.json +8 -8
- package/grammars/shellscript.json +111 -111
- package/grammars/shellsession.json +1 -1
- package/grammars/smalltalk.json +5 -5
- package/grammars/solidity.json +20 -20
- package/grammars/soy.json +30 -30
- package/grammars/sparql.json +1 -1
- package/grammars/splunk.json +6 -6
- package/grammars/sql.json +8 -8
- package/grammars/ssh-config.json +2 -2
- package/grammars/stata.json +90 -90
- package/grammars/stylus.json +48 -48
- package/grammars/svelte.json +35 -25
- package/grammars/swift.json +114 -114
- package/grammars/system-verilog.json +25 -25
- package/grammars/systemd.json +16 -16
- package/grammars/talonscript.json +12 -12
- package/grammars/tasl.json +10 -10
- package/grammars/tcl.json +11 -11
- package/grammars/templ.json +34 -34
- package/grammars/terraform.json +42 -42
- package/grammars/tex.json +14 -14
- package/grammars/toml.json +15 -15
- package/grammars/tsx.json +262 -262
- package/grammars/turtle.json +2 -2
- package/grammars/twig.json +37 -37
- package/grammars/typescript.json +251 -251
- package/grammars/typespec.json +54 -273
- package/grammars/typst.json +34 -34
- package/grammars/v.json +32 -32
- package/grammars/vala.json +6 -6
- package/grammars/vb.json +7 -7
- package/grammars/verilog.json +4 -4
- package/grammars/vhdl.json +10 -10
- package/grammars/viml.json +22 -22
- package/grammars/vue-html.json +10 -10
- package/grammars/vue-sfc-style-variable-injection.json +1 -1
- package/grammars/vue.json +65 -65
- package/grammars/vyper.json +126 -126
- package/grammars/wasm.json +26 -26
- package/grammars/wenyan.json +7 -7
- package/grammars/wgsl.json +9 -9
- package/grammars/wikitext.json +66 -66
- package/grammars/wit.json +1409 -0
- package/grammars/wolfram.json +446 -446
- package/grammars/xml.json +11 -11
- package/grammars/xsl.json +1 -1
- package/grammars/yaml.json +24 -24
- package/grammars/zenscript.json +8 -8
- package/grammars/zig.json +11 -11
- package/index.d.ts +7 -0
- package/index.js +1226 -506
- package/package.json +1 -1
package/grammars/riscv.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"name": "riscv",
|
|
10
10
|
"patterns": [
|
|
11
11
|
{
|
|
12
|
-
"match": "\\b(la|lb|lh|lw|ld|nop|li|mv|not|neg|negw|sext\\.w|seqz|snez|sltz|sgtz|beqz|bnez|blez|bgez|bltz|bgtz|bgt|ble|bgtu|bleu|j|jal|jr|ret|call|tail|fence|csr[r|
|
|
12
|
+
"match": "\\b(la|lb|lh|lw|ld|nop|li|mv|not|neg|negw|sext\\.w|seqz|snez|sltz|sgtz|beqz|bnez|blez|bgez|bltz|bgtz|bgt|ble|bgtu|bleu|j|jal|jr|ret|call|tail|fence|csr[r|wsc]|csr[w|sc]i)\\b",
|
|
13
13
|
"name": "support.function.pseudo.riscv"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"name": "support.function.riscv.m"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"match": "\\b(c\\.addi4spn|
|
|
28
|
+
"match": "\\b(c\\.(?:addi4spn|fld|lq|lw|flw|ld|fsd|sq|sw|fsw|sd|nop|addi|jal|addiw|li|addi16sp|lui|srli|srli64|srai|srai64|andi|sub|xor|or|and|subw|addw|j|beqz|bnez))\\b",
|
|
29
29
|
"name": "support.function.riscv.c"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"name": "support.function.riscv.a"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
"match": "\\b(
|
|
36
|
+
"match": "\\b(f(?:lw|sw|madd\\.s|msub\\.s|nmsub\\.s|nmadd\\.s|add\\.s|sub\\.s|mul\\.s|div\\.s|sqrt\\.s|sgnj\\.s|sgnjn\\.s|sgnjx\\.s|min\\.s|max\\.s|cvt\\.w\\.s|cvt\\.wu\\.s|mv\\.x\\.w|eq\\.s|lt\\.s|le\\.s|class\\.s|cvt\\.s\\.w|cvt\\.s\\.wu|mv\\.w\\.x|cvt\\.l\\.s|cvt\\.lu\\.s|cvt\\.s\\.l|cvt\\.s\\.lu))\\b",
|
|
37
37
|
"name": "support.function.riscv.f"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
"match": "\\b(
|
|
40
|
+
"match": "\\b(f(?:ld|sd|madd\\.d|msub\\.d|nmsub\\.d|nmadd\\.d|add\\.d|sub\\.d|mul\\.d|div\\.d|sqrt\\.d|sgnj\\.d|sgnjn\\.d|sgnjx\\.d|min\\.d|max\\.d|cvt\\.s\\.d|cvt\\.d\\.s|eq\\.d|lt\\.d|le\\.d|class\\.d|cvt\\.w\\.d|cvt\\.wu\\.d|cvt\\.d\\.w|cvt\\.d\\.wu|cvt\\.l\\.d|cvt\\.lu\\.d|mv\\.x\\.d|cvt\\.d\\.l|cvt\\.d\\.lu|mv\\.d\\.x))\\b",
|
|
41
41
|
"name": "support.function.riscv.d"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"match": "\\.(skip|ascii|asciiz|byte|[2|
|
|
44
|
+
"match": "\\.(skip|ascii|asciiz|byte|[2|48]byte|data|double|float|half|kdata|ktext|space|text|word|dword|dtprelword|dtpreldword|set\\s*(noat|at)|[s|u]leb128|string|incbin|zero|rodata|comm|common)\\b",
|
|
45
45
|
"name": "storage.type.riscv"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"name": "constant.numeric.float.riscv"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
"match": "\\b(\\d+|0(
|
|
101
|
+
"match": "\\b(\\d+|0([xX])\\h+)\\b",
|
|
102
102
|
"name": "constant.numeric.integer.riscv"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
@@ -144,17 +144,17 @@
|
|
|
144
144
|
]
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
|
-
"begin": "
|
|
148
|
-
"end": "
|
|
147
|
+
"begin": "/\\*",
|
|
148
|
+
"end": "\\*/",
|
|
149
149
|
"name": "comment.block"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
|
-
"begin": "
|
|
152
|
+
"begin": "//",
|
|
153
153
|
"end": "\\n",
|
|
154
154
|
"name": "comment.line.double-slash"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
"begin": "^\\s
|
|
157
|
+
"begin": "^\\s*#\\s*(define)\\s+((?<id>[a-zA-Z_][a-zA-Z0-9_]*))(?:(\\()(\\s*\\g<id>\\s*((,)\\s*\\g<id>\\s*)*(?:\\.\\.\\.)?)(\\)))?",
|
|
158
158
|
"beginCaptures": {
|
|
159
159
|
"1": {
|
|
160
160
|
"name": "keyword.control.import.define.c"
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"name": "punctuation.definition.parameters.c"
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
|
-
"end": "(
|
|
178
|
+
"end": "(?=/[/*])|$",
|
|
179
179
|
"name": "meta.preprocessor.macro.c",
|
|
180
180
|
"patterns": [
|
|
181
181
|
{
|
|
@@ -204,13 +204,13 @@
|
|
|
204
204
|
]
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
|
-
"begin": "^\\s*#\\s*(
|
|
207
|
+
"begin": "^\\s*#\\s*(i(?:nclude|mport))\\b\\s+",
|
|
208
208
|
"captures": {
|
|
209
209
|
"1": {
|
|
210
210
|
"name": "keyword.control.import.include.c"
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
|
-
"end": "(
|
|
213
|
+
"end": "(?=/[/*])|$",
|
|
214
214
|
"name": "meta.preprocessor.c.include",
|
|
215
215
|
"patterns": [
|
|
216
216
|
{
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
"name": "keyword.control.import.c"
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
|
-
"end": "(
|
|
259
|
+
"end": "(?=/[/*])|$",
|
|
260
260
|
"name": "meta.preprocessor.c",
|
|
261
261
|
"patterns": [
|
|
262
262
|
{
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"end": "(?!\\G)",
|
|
276
276
|
"patterns": [
|
|
277
277
|
{
|
|
278
|
-
"begin": "#|(
|
|
278
|
+
"begin": "#|(//)",
|
|
279
279
|
"beginCaptures": {
|
|
280
280
|
"0": {
|
|
281
281
|
"name": "punctuation.definition.comment.riscv"
|
package/grammars/rst.json
CHANGED
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"block-comment": {
|
|
35
35
|
"begin": "^(\\s*)\\.{2}(\\s+|$)",
|
|
36
|
-
"end": "^(?=\\S)
|
|
36
|
+
"end": "^(?:(?=\\S)|\\s*$)",
|
|
37
37
|
"name": "comment.block",
|
|
38
38
|
"patterns": [
|
|
39
39
|
{
|
|
40
40
|
"begin": "^\\s{3,}(?=\\S)",
|
|
41
41
|
"name": "comment.block",
|
|
42
|
-
"while": "
|
|
42
|
+
"while": "^(?:\\s{3}.*|\\s*$)"
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
45
|
},
|
|
@@ -177,11 +177,11 @@
|
|
|
177
177
|
"citation": {
|
|
178
178
|
"applyEndPatternLast": 0,
|
|
179
179
|
"begin": "(?<=[\\s\"'(\\[{<]|^)`[^\\s`]",
|
|
180
|
-
"end": "`_{,2}|^\\s*$",
|
|
180
|
+
"end": "`_{0,2}|^\\s*$",
|
|
181
181
|
"name": "entity.name.tag"
|
|
182
182
|
},
|
|
183
183
|
"code-block": {
|
|
184
|
-
"begin": "^(\\s*)(\\.{2}\\s+(code
|
|
184
|
+
"begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)",
|
|
185
185
|
"beginCaptures": {
|
|
186
186
|
"2": {
|
|
187
187
|
"name": "keyword.control"
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
196
196
|
},
|
|
197
197
|
"code-block-cmake": {
|
|
198
|
-
"begin": "^(\\s*)(\\.{2}\\s+(code
|
|
198
|
+
"begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(cmake)\\s*$",
|
|
199
199
|
"beginCaptures": {
|
|
200
200
|
"2": {
|
|
201
201
|
"name": "keyword.control"
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
216
216
|
},
|
|
217
217
|
"code-block-console": {
|
|
218
|
-
"begin": "^(\\s*)(\\.{2}\\s+(code
|
|
218
|
+
"begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(console|shell|bash)\\s*$",
|
|
219
219
|
"beginCaptures": {
|
|
220
220
|
"2": {
|
|
221
221
|
"name": "keyword.control"
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
236
236
|
},
|
|
237
237
|
"code-block-cpp": {
|
|
238
|
-
"begin": "^(\\s*)(\\.{2}\\s+(code
|
|
238
|
+
"begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(c|c\\+\\+|cpp|C|C\\+\\+|CPP|Cpp)\\s*$",
|
|
239
239
|
"beginCaptures": {
|
|
240
240
|
"2": {
|
|
241
241
|
"name": "keyword.control"
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
256
256
|
},
|
|
257
257
|
"code-block-dts": {
|
|
258
|
-
"begin": "^(\\s*)(\\.{2}\\s+(code
|
|
258
|
+
"begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(dts|DTS|devicetree)\\s*$",
|
|
259
259
|
"beginCaptures": {
|
|
260
260
|
"2": {
|
|
261
261
|
"name": "keyword.control"
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
276
276
|
},
|
|
277
277
|
"code-block-javascript": {
|
|
278
|
-
"begin": "^(\\s*)(\\.{2}\\s+(code
|
|
278
|
+
"begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(javascript)\\s*$",
|
|
279
279
|
"beginCaptures": {
|
|
280
280
|
"2": {
|
|
281
281
|
"name": "keyword.control"
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
296
296
|
},
|
|
297
297
|
"code-block-kconfig": {
|
|
298
|
-
"begin": "^(\\s*)(\\.{2}\\s+(code
|
|
298
|
+
"begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*([kK]config)\\s*$",
|
|
299
299
|
"beginCaptures": {
|
|
300
300
|
"2": {
|
|
301
301
|
"name": "keyword.control"
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
316
316
|
},
|
|
317
317
|
"code-block-py": {
|
|
318
|
-
"begin": "^(\\s*)(\\.{2}\\s+(code
|
|
318
|
+
"begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(python)\\s*$",
|
|
319
319
|
"beginCaptures": {
|
|
320
320
|
"2": {
|
|
321
321
|
"name": "keyword.control"
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
336
336
|
},
|
|
337
337
|
"code-block-ruby": {
|
|
338
|
-
"begin": "^(\\s*)(\\.{2}\\s+(code
|
|
338
|
+
"begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(ruby)\\s*$",
|
|
339
339
|
"beginCaptures": {
|
|
340
340
|
"2": {
|
|
341
341
|
"name": "keyword.control"
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
356
356
|
},
|
|
357
357
|
"code-block-yaml": {
|
|
358
|
-
"begin": "^(\\s*)(\\.{2}\\s+(code
|
|
358
|
+
"begin": "^(\\s*)(\\.{2}\\s+(code(?:|-block))::)\\s*(ya?ml)\\s*$",
|
|
359
359
|
"beginCaptures": {
|
|
360
360
|
"2": {
|
|
361
361
|
"name": "keyword.control"
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
433
433
|
},
|
|
434
434
|
"domain-cpp": {
|
|
435
|
-
"begin": "^(\\s*)(\\.{2}\\s+(?:
|
|
435
|
+
"begin": "^(\\s*)(\\.{2}\\s+c(?:pp|):(?:class|struct|function|member|var|type|enum|enum-struct|enum-class|enumerator|union|concept)::)\\s*(?:(@\\w+)|(.*))",
|
|
436
436
|
"beginCaptures": {
|
|
437
437
|
"2": {
|
|
438
438
|
"name": "keyword.control"
|
|
@@ -527,11 +527,11 @@
|
|
|
527
527
|
"name": "constant.character.escape"
|
|
528
528
|
},
|
|
529
529
|
"footnote": {
|
|
530
|
-
"match": "^\\s*\\.{2}\\s+\\[(?:[\\w
|
|
530
|
+
"match": "^\\s*\\.{2}\\s+\\[(?:[\\w.\\-]+|[#*]|#\\w+)]\\s+",
|
|
531
531
|
"name": "entity.name.tag"
|
|
532
532
|
},
|
|
533
533
|
"footnote-ref": {
|
|
534
|
-
"match": "\\[(?:[\\w
|
|
534
|
+
"match": "\\[(?:[\\w.\\-]+|[#*])]_",
|
|
535
535
|
"name": "entity.name.tag"
|
|
536
536
|
},
|
|
537
537
|
"ignore": {
|
|
@@ -543,13 +543,13 @@
|
|
|
543
543
|
"match": "<[`*]+>"
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
|
-
"match": "{[`*]+}"
|
|
546
|
+
"match": "\\{[`*]+}"
|
|
547
547
|
},
|
|
548
548
|
{
|
|
549
549
|
"match": "\\([`*]+\\)"
|
|
550
550
|
},
|
|
551
551
|
{
|
|
552
|
-
"match": "\\[[`*]
|
|
552
|
+
"match": "\\[[`*]+]"
|
|
553
553
|
},
|
|
554
554
|
{
|
|
555
555
|
"match": "\"[`*]+\""
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
"name": "keyword.control"
|
|
607
607
|
},
|
|
608
608
|
"list": {
|
|
609
|
-
"match": "^\\s*(\\d+\\.|\\* -|[a-zA-Z#]\\.|[iIvVxXmMcC]+\\.|\\(\\d+\\)|\\d+\\)|[
|
|
609
|
+
"match": "^\\s*(\\d+\\.|\\* -|[a-zA-Z#]\\.|[iIvVxXmMcC]+\\.|\\(\\d+\\)|\\d+\\)|[*+\\-])\\s+",
|
|
610
610
|
"name": "keyword.control"
|
|
611
611
|
},
|
|
612
612
|
"literal": {
|
|
@@ -637,7 +637,7 @@
|
|
|
637
637
|
"while": "^\\1(?=\\s)|^\\s*$"
|
|
638
638
|
},
|
|
639
639
|
"macro": {
|
|
640
|
-
"match": "\\|[
|
|
640
|
+
"match": "\\|[^|]+\\|",
|
|
641
641
|
"name": "entity.name.tag"
|
|
642
642
|
},
|
|
643
643
|
"monospaced": {
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
"name": "string.interpolated"
|
|
647
647
|
},
|
|
648
648
|
"options-list": {
|
|
649
|
-
"match": "(?:(?:^|,\\s+)(?:[
|
|
649
|
+
"match": "(?:(?:^|,\\s+)(?:[\\-+]\\w|--?[a-zA-Z][\\w\\-]+|/\\w+)(?:[ =](?:\\w+|<[^<>]+?>))?)+(?= |\\t|$)",
|
|
650
650
|
"name": "variable.parameter"
|
|
651
651
|
},
|
|
652
652
|
"raw-html": {
|
|
@@ -686,7 +686,7 @@
|
|
|
686
686
|
]
|
|
687
687
|
},
|
|
688
688
|
"reference": {
|
|
689
|
-
"match": "[\\w
|
|
689
|
+
"match": "[\\w\\-]*[a-zA-Z\\d\\-]__?\\b",
|
|
690
690
|
"name": "entity.name.tag"
|
|
691
691
|
},
|
|
692
692
|
"replace-include": {
|
|
@@ -701,7 +701,7 @@
|
|
|
701
701
|
"name": "keyword.control"
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
|
-
"match": "^\\s*(\\.{2})\\s+(\\|[
|
|
704
|
+
"match": "^\\s*(\\.{2})\\s+(\\|[^|]+\\|)\\s+(replace::)"
|
|
705
705
|
},
|
|
706
706
|
"simple-table": {
|
|
707
707
|
"match": "^[=\\s]+$",
|
|
@@ -712,7 +712,7 @@
|
|
|
712
712
|
"name": "entity.name.tag"
|
|
713
713
|
},
|
|
714
714
|
"table": {
|
|
715
|
-
"begin": "^\\s*\\+[
|
|
715
|
+
"begin": "^\\s*\\+[=+\\-]+\\+\\s*$",
|
|
716
716
|
"beginCaptures": {
|
|
717
717
|
"0": {
|
|
718
718
|
"name": "keyword.control.table"
|
|
@@ -721,13 +721,13 @@
|
|
|
721
721
|
"end": "^(?![+|])",
|
|
722
722
|
"patterns": [
|
|
723
723
|
{
|
|
724
|
-
"match": "[
|
|
724
|
+
"match": "[=+|\\-]",
|
|
725
725
|
"name": "keyword.control.table"
|
|
726
726
|
}
|
|
727
727
|
]
|
|
728
728
|
},
|
|
729
729
|
"title": {
|
|
730
|
-
"match": "^(\\*{3,}|#{3,}
|
|
730
|
+
"match": "^(\\*{3,}|#{3,}|={3,}|~{3,}|\\+{3,}|-{3,}|`{3,}|\\^{3,}|:{3,}|\"{3,}|_{3,}|'{3,})$",
|
|
731
731
|
"name": "markup.heading"
|
|
732
732
|
}
|
|
733
733
|
},
|