tm-grammars 1.22.3 → 1.22.4
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 +1 -1
- package/README.md +165 -165
- package/grammars/abap.json +29 -29
- package/grammars/actionscript-3.json +10 -10
- package/grammars/ada.json +6 -6
- package/grammars/angular-expression.json +29 -29
- package/grammars/angular-let-declaration.json +1 -1
- package/grammars/angular-ts.json +257 -257
- package/grammars/apex.json +72 -72
- package/grammars/apl.json +1 -1
- package/grammars/applescript.json +5 -5
- package/grammars/ara.json +3 -3
- package/grammars/asciidoc.json +4 -4
- package/grammars/asm.json +23 -23
- package/grammars/astro.json +3 -3
- package/grammars/awk.json +2 -2
- package/grammars/ballerina.json +94 -94
- package/grammars/bat.json +2 -2
- package/grammars/beancount.json +13 -13
- package/grammars/berry.json +6 -6
- package/grammars/bibtex.json +2 -2
- package/grammars/bicep.json +6 -6
- package/grammars/blade.json +73 -73
- package/grammars/c.json +11 -11
- package/grammars/cadence.json +6 -6
- package/grammars/cairo.json +5 -5
- package/grammars/clarity.json +16 -16
- package/grammars/clojure.json +14 -14
- package/grammars/cobol.json +33 -33
- package/grammars/codeql.json +6 -6
- package/grammars/coffee.json +17 -17
- package/grammars/common-lisp.json +48 -48
- package/grammars/coq.json +1 -1
- package/grammars/cpp-macro.json +112 -112
- package/grammars/cpp.json +187 -187
- package/grammars/crystal.json +22 -22
- package/grammars/csharp.json +110 -110
- package/grammars/css.json +23 -23
- package/grammars/cue.json +33 -33
- package/grammars/cypher.json +1 -1
- package/grammars/d.json +4 -4
- package/grammars/dart.json +6 -6
- package/grammars/dax.json +2 -2
- package/grammars/diff.json +1 -1
- package/grammars/dotenv.json +2 -2
- package/grammars/dream-maker.json +3 -3
- package/grammars/edge.json +1 -1
- package/grammars/elixir.json +15 -15
- package/grammars/elm.json +30 -30
- package/grammars/emacs-lisp.json +3 -3
- package/grammars/erlang.json +2 -2
- package/grammars/es-tag-css.json +1 -1
- package/grammars/es-tag-glsl.json +1 -1
- package/grammars/es-tag-html.json +1 -1
- package/grammars/es-tag-sql.json +1 -1
- package/grammars/es-tag-xml.json +1 -1
- package/grammars/fennel.json +3 -3
- package/grammars/fish.json +1 -1
- package/grammars/fluent.json +1 -1
- package/grammars/fortran-free-form.json +57 -57
- package/grammars/fsharp.json +62 -62
- package/grammars/gdresource.json +6 -6
- package/grammars/gdscript.json +8 -8
- package/grammars/gdshader.json +1 -1
- package/grammars/genie.json +1 -1
- package/grammars/git-commit.json +1 -1
- package/grammars/gleam.json +9 -9
- package/grammars/glimmer-js.json +6 -6
- package/grammars/glimmer-ts.json +6 -6
- package/grammars/gnuplot.json +6 -6
- package/grammars/go.json +41 -41
- package/grammars/graphql.json +1 -1
- package/grammars/groovy.json +12 -12
- package/grammars/hack.json +19 -19
- package/grammars/haml.json +4 -4
- package/grammars/handlebars.json +2 -2
- package/grammars/haskell.json +17 -17
- package/grammars/haxe.json +17 -17
- package/grammars/hcl.json +24 -24
- package/grammars/hjson.json +7 -7
- package/grammars/hlsl.json +8 -8
- package/grammars/html.json +3 -3
- package/grammars/http.json +2 -2
- package/grammars/hy.json +8 -8
- package/grammars/imba.json +98 -98
- package/grammars/java.json +14 -14
- package/grammars/javascript.json +264 -264
- package/grammars/jinja.json +8 -8
- package/grammars/jison.json +7 -7
- package/grammars/json.json +1 -1
- package/grammars/json5.json +1 -1
- package/grammars/jsonc.json +1 -1
- package/grammars/jsonl.json +1 -1
- package/grammars/jsonnet.json +1 -1
- package/grammars/jssm.json +2 -2
- package/grammars/jsx.json +264 -264
- package/grammars/julia.json +22 -22
- package/grammars/kotlin.json +2 -2
- package/grammars/kusto.json +1 -1
- package/grammars/latex.json +9 -9
- package/grammars/lean.json +3 -3
- package/grammars/less.json +13 -13
- package/grammars/liquid.json +5 -5
- package/grammars/log.json +5 -5
- package/grammars/logo.json +1 -1
- package/grammars/lua.json +25 -25
- package/grammars/luau.json +19 -19
- package/grammars/make.json +1 -1
- package/grammars/markdown.json +8 -8
- package/grammars/marko.json +6 -6
- package/grammars/matlab.json +12 -12
- package/grammars/mdc.json +3 -3
- package/grammars/mdx.json +25 -25
- package/grammars/mermaid.json +31 -31
- package/grammars/mipsasm.json +3 -3
- package/grammars/mojo.json +46 -46
- package/grammars/move.json +5 -5
- package/grammars/nextflow.json +1 -1
- package/grammars/nginx.json +10 -10
- package/grammars/nim.json +8 -8
- package/grammars/nix.json +34 -34
- package/grammars/nushell.json +3 -3
- package/grammars/objective-c.json +8 -8
- package/grammars/objective-cpp.json +14 -14
- package/grammars/ocaml.json +94 -94
- package/grammars/perl.json +34 -34
- package/grammars/php.json +87 -87
- package/grammars/polar.json +6 -6
- package/grammars/postcss.json +3 -3
- package/grammars/powerquery.json +1 -1
- package/grammars/powershell.json +5 -5
- package/grammars/prisma.json +3 -3
- package/grammars/prolog.json +6 -6
- package/grammars/proto.json +3 -3
- package/grammars/pug.json +4 -4
- package/grammars/puppet.json +11 -11
- package/grammars/purescript.json +5 -5
- package/grammars/python.json +44 -44
- package/grammars/qml.json +4 -4
- package/grammars/r.json +10 -10
- package/grammars/racket.json +19 -19
- package/grammars/raku.json +2 -2
- package/grammars/razor.json +24 -24
- package/grammars/reg.json +2 -2
- package/grammars/regexp.json +3 -3
- package/grammars/rel.json +4 -4
- package/grammars/riscv.json +5 -5
- package/grammars/rst.json +1 -1
- package/grammars/ruby.json +3 -3
- package/grammars/rust.json +1 -1
- package/grammars/sas.json +2 -2
- package/grammars/sass.json +5 -5
- package/grammars/scala.json +43 -43
- package/grammars/scheme.json +8 -8
- package/grammars/scss.json +7 -7
- package/grammars/shaderlab.json +3 -3
- package/grammars/shellscript.json +24 -24
- package/grammars/smalltalk.json +6 -6
- package/grammars/solidity.json +5 -5
- package/grammars/soy.json +1 -1
- package/grammars/sparql.json +1 -1
- package/grammars/splunk.json +3 -3
- package/grammars/sql.json +2 -2
- package/grammars/ssh-config.json +2 -2
- package/grammars/stata.json +33 -33
- package/grammars/stylus.json +6 -6
- package/grammars/svelte.json +8 -8
- package/grammars/swift.json +27 -27
- package/grammars/system-verilog.json +11 -11
- package/grammars/systemd.json +5 -5
- package/grammars/talonscript.json +1 -1
- package/grammars/tcl.json +2 -2
- package/grammars/templ.json +2 -2
- package/grammars/terraform.json +23 -23
- package/grammars/tex.json +3 -3
- package/grammars/toml.json +5 -5
- package/grammars/tsx.json +264 -264
- package/grammars/turtle.json +1 -1
- package/grammars/twig.json +23 -23
- package/grammars/typescript.json +257 -257
- package/grammars/typespec.json +30 -30
- package/grammars/typst.json +13 -13
- package/grammars/v.json +16 -16
- package/grammars/vala.json +1 -1
- package/grammars/vb.json +2 -2
- package/grammars/verilog.json +5 -5
- package/grammars/vhdl.json +14 -14
- package/grammars/viml.json +11 -11
- package/grammars/vue-html.json +2 -2
- package/grammars/vue.json +1 -1
- package/grammars/vyper.json +44 -44
- package/grammars/wasm.json +2 -2
- package/grammars/wgsl.json +3 -3
- package/grammars/wikitext.json +9 -9
- package/grammars/wolfram.json +331 -331
- package/grammars/xml.json +1 -1
- package/grammars/yaml.json +3 -3
- package/grammars/zenscript.json +2 -2
- package/grammars/zig.json +3 -3
- package/index.js +196 -196
- package/package.json +1 -1
package/grammars/ocaml.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"repository": {
|
|
20
20
|
"attribute": {
|
|
21
|
-
"begin": "(\\[)[
|
|
21
|
+
"begin": "(\\[)[[:space:]]*((?<![#\\-:!?.@*/&%^+<=>|~$])@{1,3}(?![#\\-:!?.@*/&%^+<=>|~$]))",
|
|
22
22
|
"beginCaptures": {
|
|
23
23
|
"1": {
|
|
24
24
|
"name": "constant.language constant.numeric entity.other.attribute-name.id.css strong"
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"name": "punctuation.definition.tag"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"match": "((?<![#\\-:!?.@*/&%^+<=>|~$])%(?![#\\-:!?.@*/&%^+<=>|~$]))((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
51
|
+
"match": "((?<![#\\-:!?.@*/&%^+<=>|~$])%(?![#\\-:!?.@*/&%^+<=>|~$]))((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))"
|
|
52
52
|
},
|
|
53
53
|
"attributePayload": {
|
|
54
54
|
"patterns": [
|
|
55
55
|
{
|
|
56
56
|
"begin": "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]%|^%))(?![#\\-:!?.@*/&%^+<=>|~$]))",
|
|
57
|
-
"end": "((?<![#\\-:!?.@*/&%^+<=>|~$])[
|
|
57
|
+
"end": "((?<![#\\-:!?.@*/&%^+<=>|~$])[:\\?](?![#\\-:!?.@*/&%^+<=>|~$]))|(?<=[[:space:]])|(?=\\])",
|
|
58
58
|
"endCaptures": {
|
|
59
59
|
"1": {
|
|
60
60
|
"name": "variable.other.class.js message.error variable.interpolation string.regexp"
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
"begin": "(?:(?<=(?:[
|
|
102
|
+
"begin": "(?:(?<=(?:[^[:word:]]when|^when))(?![[:word:]]))",
|
|
103
103
|
"end": "(?=\\])",
|
|
104
104
|
"patterns": [
|
|
105
105
|
{
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"bindClassTerm": {
|
|
118
118
|
"patterns": [
|
|
119
119
|
{
|
|
120
|
-
"begin": "(?:(?<=(?:[
|
|
120
|
+
"begin": "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]class|^class|[^[:word:]]type|^type))(?![[:word:]]))",
|
|
121
121
|
"end": "(?<![#\\-:!?.@*/&%^+<=>|~$])(:)|(=)(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
122
122
|
"endCaptures": {
|
|
123
123
|
"1": {
|
|
@@ -129,8 +129,8 @@
|
|
|
129
129
|
},
|
|
130
130
|
"patterns": [
|
|
131
131
|
{
|
|
132
|
-
"begin": "(?:(?<=(?:[
|
|
133
|
-
"end": "(?=(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
132
|
+
"begin": "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]class|^class|[^[:word:]]type|^type))(?![[:word:]]))",
|
|
133
|
+
"end": "(?=(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)[[:space:]]*,|[^[:space:][:lower:]%])|(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)|(?=\\btype\\b)",
|
|
134
134
|
"endCaptures": {
|
|
135
135
|
"0": {
|
|
136
136
|
"name": "entity.name.function strong emphasis"
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"bindClassType": {
|
|
195
195
|
"patterns": [
|
|
196
196
|
{
|
|
197
|
-
"begin": "(?:(?<=(?:[
|
|
197
|
+
"begin": "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]class|^class|[^[:word:]]type|^type))(?![[:word:]]))",
|
|
198
198
|
"end": "(?<![#\\-:!?.@*/&%^+<=>|~$])(:)|(=)(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
199
199
|
"endCaptures": {
|
|
200
200
|
"1": {
|
|
@@ -206,8 +206,8 @@
|
|
|
206
206
|
},
|
|
207
207
|
"patterns": [
|
|
208
208
|
{
|
|
209
|
-
"begin": "(?:(?<=(?:[
|
|
210
|
-
"end": "(?=(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
209
|
+
"begin": "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]class|^class|[^[:word:]]type|^type))(?![[:word:]]))",
|
|
210
|
+
"end": "(?=(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)[[:space:]]*,|[^[:space:][:lower:]%])|(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)|(?=\\btype\\b)",
|
|
211
211
|
"endCaptures": {
|
|
212
212
|
"0": {
|
|
213
213
|
"name": "entity.name.function strong emphasis"
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
"bindConstructor": {
|
|
272
272
|
"patterns": [
|
|
273
273
|
{
|
|
274
|
-
"begin": "(?:(?<=(?:[
|
|
274
|
+
"begin": "(?:(?<=(?:[^[:word:]]exception|^exception))(?![[:word:]]))|(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]\\+=|^\\+=|[^#\\-:!?.@*/&%^+<=>|~$]=|^=|[^#\\-:!?.@*/&%^+<=>|~$]\\||^\\|))(?![#\\-:!?.@*/&%^+<=>|~$]))",
|
|
275
275
|
"end": "(:)|(\\bof\\b)|((?<![#\\-:!?.@*/&%^+<=>|~$])\\|(?![#\\-:!?.@*/&%^+<=>|~$]))|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
276
276
|
"endCaptures": {
|
|
277
277
|
"1": {
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
"name": "variable.other.class.js message.error variable.interpolation string.regexp"
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
|
-
"match": "\\b(?:\\b(?=[
|
|
296
|
+
"match": "\\b(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)\\b(?![[:space:]]*(?:\\.|\\([^\\*]))",
|
|
297
297
|
"name": "constant.language constant.numeric entity.other.attribute-name.id.css strong"
|
|
298
298
|
},
|
|
299
299
|
{
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
]
|
|
303
303
|
},
|
|
304
304
|
{
|
|
305
|
-
"begin": "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[
|
|
305
|
+
"begin": "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[^[:word:]]of|^of))(?![[:word:]]))",
|
|
306
306
|
"end": "(?<![#\\-:!?.@*/&%^+<=>|~$])\\|(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
307
307
|
"endCaptures": {
|
|
308
308
|
"0": {
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
"include": "#comment"
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
|
-
"begin": "(?:(?<=(?:[
|
|
326
|
+
"begin": "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))",
|
|
327
327
|
"end": "(?<![#\\-:!?.@*/&%^+<=>|~$])=(?![#\\-:!?.@*/&%^+<=>|~$])",
|
|
328
328
|
"endCaptures": {
|
|
329
329
|
"0": {
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
"include": "#comment"
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
|
-
"begin": "(?:(?<=(?:[
|
|
364
|
+
"begin": "(?:(?<=(?:[^[:word:]]and|^and))(?![[:word:]]))|(?=[[:upper:]])",
|
|
365
365
|
"end": "(?<![#\\-:!?.@*/&%^+<=>|~$])(:(?!=))|(:?=)(?![#\\-:!?.@*/&%^+<=>|~$])|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|open|type|val)\\b)",
|
|
366
366
|
"endCaptures": {
|
|
367
367
|
"1": {
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename"
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
|
-
"match": "(?:\\b(?=[
|
|
383
|
+
"match": "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)",
|
|
384
384
|
"name": "entity.name.function strong emphasis"
|
|
385
385
|
},
|
|
386
386
|
{
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
"bindTerm": {
|
|
459
459
|
"patterns": [
|
|
460
460
|
{
|
|
461
|
-
"begin": "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]!|^!))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[
|
|
461
|
+
"begin": "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]!|^!))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]external|^external|[^[:word:]]let|^let|[^[:word:]]method|^method|[^[:word:]]val|^val))(?![[:word:]]))",
|
|
462
462
|
"end": "(\\bmodule\\b)|(\\bopen\\b)|(?<![#\\-:!?.@*/&%^+<=>|~$])(:)|((?<![#\\-:!?.@*/&%^+<=>|~$])=(?![#\\-:!?.@*/&%^+<=>|~$]))(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
463
463
|
"endCaptures": {
|
|
464
464
|
"1": {
|
|
@@ -476,8 +476,8 @@
|
|
|
476
476
|
},
|
|
477
477
|
"patterns": [
|
|
478
478
|
{
|
|
479
|
-
"begin": "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]!|^!))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[
|
|
480
|
-
"end": "(?=\\b(?:module|open)\\b)|(?=(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
479
|
+
"begin": "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]!|^!))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]external|^external|[^[:word:]]let|^let|[^[:word:]]method|^method|[^[:word:]]val|^val))(?![[:word:]]))",
|
|
480
|
+
"end": "(?=\\b(?:module|open)\\b)|(?=(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)[[:space:]]*,|[^[:space:][:lower:]%])|(\\brec\\b)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))",
|
|
481
481
|
"endCaptures": {
|
|
482
482
|
"1": {
|
|
483
483
|
"name": "variable.other.class.js message.error variable.interpolation string.regexp"
|
|
@@ -496,8 +496,8 @@
|
|
|
496
496
|
]
|
|
497
497
|
},
|
|
498
498
|
{
|
|
499
|
-
"begin": "(?:(?<=(?:[
|
|
500
|
-
"end": "((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
499
|
+
"begin": "(?:(?<=(?:[^[:word:]]rec|^rec))(?![[:word:]]))",
|
|
500
|
+
"end": "((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))|(?=[^[:space:][:alpha:]])",
|
|
501
501
|
"endCaptures": {
|
|
502
502
|
"0": {
|
|
503
503
|
"name": "entity.name.function strong emphasis"
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
]
|
|
516
516
|
},
|
|
517
517
|
{
|
|
518
|
-
"begin": "(?:(?<=(?:[
|
|
518
|
+
"begin": "(?:(?<=(?:[^[:word:]]module|^module))(?![[:word:]]))",
|
|
519
519
|
"end": "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
520
520
|
"patterns": [
|
|
521
521
|
{
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
]
|
|
525
525
|
},
|
|
526
526
|
{
|
|
527
|
-
"begin": "(?:(?<=(?:[
|
|
527
|
+
"begin": "(?:(?<=(?:[^[:word:]]open|^open))(?![[:word:]]))",
|
|
528
528
|
"end": "(?=\\bin\\b)|(?=\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
529
529
|
"patterns": [
|
|
530
530
|
{
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
"patterns": [
|
|
544
544
|
{
|
|
545
545
|
"begin": "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:))(?![#\\-:!?.@*/&%^+<=>|~$]))",
|
|
546
|
-
"end": "\\btype\\b|(?=[
|
|
546
|
+
"end": "\\btype\\b|(?=[^[:space:]])",
|
|
547
547
|
"endCaptures": {
|
|
548
548
|
"0": {
|
|
549
549
|
"name": "keyword.control"
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
}
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
|
-
"begin": "(?:(?<=(?:[
|
|
554
|
+
"begin": "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))",
|
|
555
555
|
"end": "(?<![#\\-:!?.@*/&%^+<=>|~$])\\.(?![#\\-:!?.@*/&%^+<=>|~$])",
|
|
556
556
|
"endCaptures": {
|
|
557
557
|
"0": {
|
|
@@ -595,7 +595,7 @@
|
|
|
595
595
|
"name": "variable.other.class.js message.error variable.interpolation string.regexp"
|
|
596
596
|
}
|
|
597
597
|
},
|
|
598
|
-
"end": ":|(?=[
|
|
598
|
+
"end": ":|(?=[^[:space:]])",
|
|
599
599
|
"endCaptures": {
|
|
600
600
|
"0": {
|
|
601
601
|
"name": "keyword"
|
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
"patterns": [
|
|
605
605
|
{
|
|
606
606
|
"begin": "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]~|^~|[^#\\-:!?.@*/&%^+<=>|~$]\\?|^\\?))(?![#\\-:!?.@*/&%^+<=>|~$]))",
|
|
607
|
-
"end": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
607
|
+
"end": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)|(?<=\\))",
|
|
608
608
|
"endCaptures": {
|
|
609
609
|
"0": {
|
|
610
610
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename"
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
},
|
|
634
634
|
"patterns": [
|
|
635
635
|
{
|
|
636
|
-
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
636
|
+
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
637
637
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename"
|
|
638
638
|
}
|
|
639
639
|
]
|
|
@@ -675,7 +675,7 @@
|
|
|
675
675
|
"bindType": {
|
|
676
676
|
"patterns": [
|
|
677
677
|
{
|
|
678
|
-
"begin": "(?:(?<=(?:[
|
|
678
|
+
"begin": "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]type|^type))(?![[:word:]]))",
|
|
679
679
|
"end": "(?<![#\\-:!?.@*/&%^+<=>|~$])\\+=|=(?![#\\-:!?.@*/&%^+<=>|~$])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
680
680
|
"endCaptures": {
|
|
681
681
|
"0": {
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
"include": "#pathType"
|
|
691
691
|
},
|
|
692
692
|
{
|
|
693
|
-
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
693
|
+
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
694
694
|
"name": "entity.name.function strong"
|
|
695
695
|
},
|
|
696
696
|
{
|
|
@@ -731,7 +731,7 @@
|
|
|
731
731
|
]
|
|
732
732
|
},
|
|
733
733
|
"commentBlock": {
|
|
734
|
-
"begin": "\\(\\*(?!\\*[
|
|
734
|
+
"begin": "\\(\\*(?!\\*[^\\)])",
|
|
735
735
|
"contentName": "emphasis",
|
|
736
736
|
"end": "\\*\\)",
|
|
737
737
|
"name": "comment constant.regexp meta.separator.markdown",
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
"include": "#pragma"
|
|
804
804
|
},
|
|
805
805
|
{
|
|
806
|
-
"begin": "(?:(?<=(?:[
|
|
806
|
+
"begin": "(?:(?<=(?:[^[:word:]]class|^class))(?![[:word:]]))",
|
|
807
807
|
"beginCaptures": {
|
|
808
808
|
"0": {
|
|
809
809
|
"name": "entity.name.class constant.numeric markup.underline"
|
|
@@ -822,7 +822,7 @@
|
|
|
822
822
|
]
|
|
823
823
|
},
|
|
824
824
|
{
|
|
825
|
-
"begin": "(?:(?<=(?:[
|
|
825
|
+
"begin": "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))",
|
|
826
826
|
"end": "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
827
827
|
"patterns": [
|
|
828
828
|
{
|
|
@@ -889,7 +889,7 @@
|
|
|
889
889
|
]
|
|
890
890
|
},
|
|
891
891
|
"declModule": {
|
|
892
|
-
"begin": "(?:(?<=(?:[
|
|
892
|
+
"begin": "(?:(?<=(?:[^[:word:]]module|^module))(?![[:word:]]))|\\bmodule\\b",
|
|
893
893
|
"beginCaptures": {
|
|
894
894
|
"0": {
|
|
895
895
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename markup.underline"
|
|
@@ -909,8 +909,8 @@
|
|
|
909
909
|
"include": "#pragma"
|
|
910
910
|
},
|
|
911
911
|
{
|
|
912
|
-
"begin": "(?:(?<=(?:[
|
|
913
|
-
"end": "(\\btype\\b)|(?=[
|
|
912
|
+
"begin": "(?:(?<=(?:[^[:word:]]module|^module))(?![[:word:]]))",
|
|
913
|
+
"end": "(\\btype\\b)|(?=[[:upper:]])",
|
|
914
914
|
"endCaptures": {
|
|
915
915
|
"0": {
|
|
916
916
|
"name": "keyword"
|
|
@@ -930,7 +930,7 @@
|
|
|
930
930
|
]
|
|
931
931
|
},
|
|
932
932
|
{
|
|
933
|
-
"begin": "(?:(?<=(?:[
|
|
933
|
+
"begin": "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))",
|
|
934
934
|
"end": "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
935
935
|
"patterns": [
|
|
936
936
|
{
|
|
@@ -939,7 +939,7 @@
|
|
|
939
939
|
]
|
|
940
940
|
},
|
|
941
941
|
{
|
|
942
|
-
"begin": "(?=[
|
|
942
|
+
"begin": "(?=[[:upper:]])",
|
|
943
943
|
"end": "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
944
944
|
"patterns": [
|
|
945
945
|
{
|
|
@@ -1012,7 +1012,7 @@
|
|
|
1012
1012
|
]
|
|
1013
1013
|
},
|
|
1014
1014
|
"declType": {
|
|
1015
|
-
"begin": "(?:(?<=(?:[
|
|
1015
|
+
"begin": "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))|\\btype\\b",
|
|
1016
1016
|
"beginCaptures": {
|
|
1017
1017
|
"0": {
|
|
1018
1018
|
"name": "keyword markup.underline"
|
|
@@ -1111,7 +1111,7 @@
|
|
|
1111
1111
|
"name": "constant.language constant.numeric entity.other.attribute-name.id.css strong"
|
|
1112
1112
|
},
|
|
1113
1113
|
"literalCharacter": {
|
|
1114
|
-
"begin": "(?<![
|
|
1114
|
+
"begin": "(?<![[:word:]])'",
|
|
1115
1115
|
"end": "'",
|
|
1116
1116
|
"name": "markup.punctuation.quote.beginning",
|
|
1117
1117
|
"patterns": [
|
|
@@ -1121,7 +1121,7 @@
|
|
|
1121
1121
|
]
|
|
1122
1122
|
},
|
|
1123
1123
|
"literalCharacterEscape": {
|
|
1124
|
-
"match": "\\\\(?:[\\\\\"'ntbr]|[
|
|
1124
|
+
"match": "\\\\(?:[\\\\\"'ntbr]|[[:digit:]][[:digit:]][[:digit:]]|x[[:xdigit:]][[:xdigit:]]|o[0-3][0-7][0-7])"
|
|
1125
1125
|
},
|
|
1126
1126
|
"literalClassType": {
|
|
1127
1127
|
"patterns": [
|
|
@@ -1203,7 +1203,7 @@
|
|
|
1203
1203
|
]
|
|
1204
1204
|
},
|
|
1205
1205
|
"literalNumber": {
|
|
1206
|
-
"match": "(?<![
|
|
1206
|
+
"match": "(?<![[:alpha:]])[[:digit:]][[:digit:]]*(\\.[[:digit:]][[:digit:]]*)?",
|
|
1207
1207
|
"name": "constant.numeric"
|
|
1208
1208
|
},
|
|
1209
1209
|
"literalObjectTerm": {
|
|
@@ -1301,13 +1301,13 @@
|
|
|
1301
1301
|
"include": "#pathModulePrefixSimple"
|
|
1302
1302
|
},
|
|
1303
1303
|
{
|
|
1304
|
-
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
1304
|
+
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
1305
1305
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
|
|
1306
1306
|
}
|
|
1307
1307
|
]
|
|
1308
1308
|
},
|
|
1309
1309
|
{
|
|
1310
|
-
"begin": "(?:(?<=(?:[
|
|
1310
|
+
"begin": "(?:(?<=(?:[^[:word:]]with|^with))(?![[:word:]]))",
|
|
1311
1311
|
"end": "(:)|(=)|(;)|(?=\\})",
|
|
1312
1312
|
"endCaptures": {
|
|
1313
1313
|
"1": {
|
|
@@ -1322,7 +1322,7 @@
|
|
|
1322
1322
|
},
|
|
1323
1323
|
"patterns": [
|
|
1324
1324
|
{
|
|
1325
|
-
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
1325
|
+
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
1326
1326
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
|
|
1327
1327
|
}
|
|
1328
1328
|
]
|
|
@@ -1373,7 +1373,7 @@
|
|
|
1373
1373
|
]
|
|
1374
1374
|
},
|
|
1375
1375
|
{
|
|
1376
|
-
"begin": "(\\{)([
|
|
1376
|
+
"begin": "(\\{)([_[:lower:]]*?)(\\|)",
|
|
1377
1377
|
"end": "(\\|)(\\2)(\\})",
|
|
1378
1378
|
"name": "string beginning.punctuation.definition.quote.markdown",
|
|
1379
1379
|
"patterns": [
|
|
@@ -1385,7 +1385,7 @@
|
|
|
1385
1385
|
]
|
|
1386
1386
|
},
|
|
1387
1387
|
"literalStringEscape": {
|
|
1388
|
-
"match": "\\\\(?:[\\\\\"ntbr]|[
|
|
1388
|
+
"match": "\\\\(?:[\\\\\"ntbr]|[[:digit:]][[:digit:]][[:digit:]]|x[[:xdigit:]][[:xdigit:]]|o[0-3][0-7][0-7])"
|
|
1389
1389
|
},
|
|
1390
1390
|
"literalUnit": {
|
|
1391
1391
|
"match": "\\(\\)",
|
|
@@ -1397,19 +1397,19 @@
|
|
|
1397
1397
|
"include": "#pathModulePrefixExtended"
|
|
1398
1398
|
},
|
|
1399
1399
|
{
|
|
1400
|
-
"match": "(?:\\b(?=[
|
|
1400
|
+
"match": "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)",
|
|
1401
1401
|
"name": "entity.name.class constant.numeric"
|
|
1402
1402
|
}
|
|
1403
1403
|
]
|
|
1404
1404
|
},
|
|
1405
1405
|
"pathModulePrefixExtended": {
|
|
1406
|
-
"begin": "(?:\\b(?=[
|
|
1406
|
+
"begin": "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\.|$|\\()",
|
|
1407
1407
|
"beginCaptures": {
|
|
1408
1408
|
"0": {
|
|
1409
1409
|
"name": "entity.name.class constant.numeric"
|
|
1410
1410
|
}
|
|
1411
1411
|
},
|
|
1412
|
-
"end": "(?![
|
|
1412
|
+
"end": "(?![[:space:]\\.]|$|\\()",
|
|
1413
1413
|
"patterns": [
|
|
1414
1414
|
{
|
|
1415
1415
|
"include": "#comment"
|
|
@@ -1424,7 +1424,7 @@
|
|
|
1424
1424
|
"end": "\\)",
|
|
1425
1425
|
"patterns": [
|
|
1426
1426
|
{
|
|
1427
|
-
"match": "((?:\\b(?=[
|
|
1427
|
+
"match": "((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\)))",
|
|
1428
1428
|
"name": "string.other.link variable.language variable.parameter emphasis"
|
|
1429
1429
|
},
|
|
1430
1430
|
{
|
|
@@ -1439,7 +1439,7 @@
|
|
|
1439
1439
|
"name": "keyword strong"
|
|
1440
1440
|
}
|
|
1441
1441
|
},
|
|
1442
|
-
"end": "((?:\\b(?=[
|
|
1442
|
+
"end": "((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\.|$))|((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*(?:$|\\()))|((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\)))|(?![[:space:]\\.[:upper:]]|$|\\()",
|
|
1443
1443
|
"endCaptures": {
|
|
1444
1444
|
"1": {
|
|
1445
1445
|
"name": "entity.name.class constant.numeric"
|
|
@@ -1464,7 +1464,7 @@
|
|
|
1464
1464
|
"end": "\\)",
|
|
1465
1465
|
"patterns": [
|
|
1466
1466
|
{
|
|
1467
|
-
"match": "((?:\\b(?=[
|
|
1467
|
+
"match": "((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\)))",
|
|
1468
1468
|
"name": "string.other.link variable.language variable.parameter emphasis"
|
|
1469
1469
|
},
|
|
1470
1470
|
{
|
|
@@ -1473,13 +1473,13 @@
|
|
|
1473
1473
|
]
|
|
1474
1474
|
},
|
|
1475
1475
|
"pathModulePrefixSimple": {
|
|
1476
|
-
"begin": "(?:\\b(?=[
|
|
1476
|
+
"begin": "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\.)",
|
|
1477
1477
|
"beginCaptures": {
|
|
1478
1478
|
"0": {
|
|
1479
1479
|
"name": "entity.name.class constant.numeric"
|
|
1480
1480
|
}
|
|
1481
1481
|
},
|
|
1482
|
-
"end": "(?![
|
|
1482
|
+
"end": "(?![[:space:]\\.])",
|
|
1483
1483
|
"patterns": [
|
|
1484
1484
|
{
|
|
1485
1485
|
"include": "#comment"
|
|
@@ -1491,7 +1491,7 @@
|
|
|
1491
1491
|
"name": "keyword strong"
|
|
1492
1492
|
}
|
|
1493
1493
|
},
|
|
1494
|
-
"end": "((?:\\b(?=[
|
|
1494
|
+
"end": "((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*\\.))|((?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)(?=[[:space:]]*))|(?![[:space:]\\.[:upper:]])",
|
|
1495
1495
|
"endCaptures": {
|
|
1496
1496
|
"1": {
|
|
1497
1497
|
"name": "entity.name.class constant.numeric"
|
|
@@ -1509,7 +1509,7 @@
|
|
|
1509
1509
|
"include": "#pathModulePrefixSimple"
|
|
1510
1510
|
},
|
|
1511
1511
|
{
|
|
1512
|
-
"match": "(?:\\b(?=[
|
|
1512
|
+
"match": "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)",
|
|
1513
1513
|
"name": "entity.name.class constant.numeric"
|
|
1514
1514
|
}
|
|
1515
1515
|
]
|
|
@@ -1517,8 +1517,8 @@
|
|
|
1517
1517
|
"pathRecord": {
|
|
1518
1518
|
"patterns": [
|
|
1519
1519
|
{
|
|
1520
|
-
"begin": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
1521
|
-
"end": "(?=[
|
|
1520
|
+
"begin": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
1521
|
+
"end": "(?=[^[:space:]\\.])(?!\\(\\*)",
|
|
1522
1522
|
"patterns": [
|
|
1523
1523
|
{
|
|
1524
1524
|
"include": "#comment"
|
|
@@ -1530,7 +1530,7 @@
|
|
|
1530
1530
|
"name": "keyword strong"
|
|
1531
1531
|
}
|
|
1532
1532
|
},
|
|
1533
|
-
"end": "((?<![#\\-:!?.@*/&%^+<=>|~$])\\.(?![#\\-:!?.@*/&%^+<=>|~$]))|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|mutable|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
1533
|
+
"end": "((?<![#\\-:!?.@*/&%^+<=>|~$])\\.(?![#\\-:!?.@*/&%^+<=>|~$]))|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|mutable|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))|(?<=\\))|(?<=\\])",
|
|
1534
1534
|
"endCaptures": {
|
|
1535
1535
|
"1": {
|
|
1536
1536
|
"name": "keyword strong"
|
|
@@ -1745,13 +1745,13 @@
|
|
|
1745
1745
|
"include": "#pathModulePrefixSimple"
|
|
1746
1746
|
},
|
|
1747
1747
|
{
|
|
1748
|
-
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
1748
|
+
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
1749
1749
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
|
|
1750
1750
|
}
|
|
1751
1751
|
]
|
|
1752
1752
|
},
|
|
1753
1753
|
{
|
|
1754
|
-
"begin": "(?:(?<=(?:[
|
|
1754
|
+
"begin": "(?:(?<=(?:[^[:word:]]with|^with))(?![[:word:]]))",
|
|
1755
1755
|
"end": "(:)|(=)|(;)|(?=\\})",
|
|
1756
1756
|
"endCaptures": {
|
|
1757
1757
|
"1": {
|
|
@@ -1766,7 +1766,7 @@
|
|
|
1766
1766
|
},
|
|
1767
1767
|
"patterns": [
|
|
1768
1768
|
{
|
|
1769
|
-
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
1769
|
+
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
1770
1770
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
|
|
1771
1771
|
}
|
|
1772
1772
|
]
|
|
@@ -1873,7 +1873,7 @@
|
|
|
1873
1873
|
"end": "(?=\\))|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
1874
1874
|
"patterns": [
|
|
1875
1875
|
{
|
|
1876
|
-
"begin": "(?:(?<=(?:[
|
|
1876
|
+
"begin": "(?:(?<=(?:[^[:word:]]with|^with))(?![[:word:]]))",
|
|
1877
1877
|
"end": "\\b(?:(module)|(type))\\b",
|
|
1878
1878
|
"endCaptures": {
|
|
1879
1879
|
"1": {
|
|
@@ -1904,7 +1904,7 @@
|
|
|
1904
1904
|
"end": "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
1905
1905
|
"patterns": [
|
|
1906
1906
|
{
|
|
1907
|
-
"begin": "(?:(?<=(?:[
|
|
1907
|
+
"begin": "(?:(?<=(?:[^[:word:]]functor|^functor))(?![[:word:]]))",
|
|
1908
1908
|
"end": "(\\(\\))|(\\((?!\\)))",
|
|
1909
1909
|
"endCaptures": {
|
|
1910
1910
|
"1": {
|
|
@@ -2029,8 +2029,8 @@
|
|
|
2029
2029
|
"signatureRecovered": {
|
|
2030
2030
|
"patterns": [
|
|
2031
2031
|
{
|
|
2032
|
-
"begin": "\\(|(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:|[^#\\-:!?.@*/&%^+<=>|~$]->|^->))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[
|
|
2033
|
-
"end": "\\bmodule\\b|(?!$|[
|
|
2032
|
+
"begin": "\\(|(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]:|^:|[^#\\-:!?.@*/&%^+<=>|~$]->|^->))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?:(?<=(?:[^[:word:]]include|^include|[^[:word:]]open|^open))(?![[:word:]]))",
|
|
2033
|
+
"end": "\\bmodule\\b|(?!$|[[:space:]]|\\bmodule\\b)",
|
|
2034
2034
|
"endCaptures": {
|
|
2035
2035
|
"0": {
|
|
2036
2036
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename"
|
|
@@ -2038,11 +2038,11 @@
|
|
|
2038
2038
|
}
|
|
2039
2039
|
},
|
|
2040
2040
|
{
|
|
2041
|
-
"begin": "(?:(?<=(?:[
|
|
2041
|
+
"begin": "(?:(?<=(?:[^[:word:]]module|^module))(?![[:word:]]))",
|
|
2042
2042
|
"end": "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
2043
2043
|
"patterns": [
|
|
2044
2044
|
{
|
|
2045
|
-
"begin": "(?:(?<=(?:[
|
|
2045
|
+
"begin": "(?:(?<=(?:[^[:word:]]module|^module))(?![[:word:]]))",
|
|
2046
2046
|
"end": "\\btype\\b",
|
|
2047
2047
|
"endCaptures": {
|
|
2048
2048
|
"0": {
|
|
@@ -2051,7 +2051,7 @@
|
|
|
2051
2051
|
}
|
|
2052
2052
|
},
|
|
2053
2053
|
{
|
|
2054
|
-
"begin": "(?:(?<=(?:[
|
|
2054
|
+
"begin": "(?:(?<=(?:[^[:word:]]type|^type))(?![[:word:]]))",
|
|
2055
2055
|
"end": "\\bof\\b",
|
|
2056
2056
|
"endCaptures": {
|
|
2057
2057
|
"0": {
|
|
@@ -2060,7 +2060,7 @@
|
|
|
2060
2060
|
}
|
|
2061
2061
|
},
|
|
2062
2062
|
{
|
|
2063
|
-
"begin": "(?:(?<=(?:[
|
|
2063
|
+
"begin": "(?:(?<=(?:[^[:word:]]of|^of))(?![[:word:]]))",
|
|
2064
2064
|
"end": "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
2065
2065
|
"patterns": [
|
|
2066
2066
|
{
|
|
@@ -2103,7 +2103,7 @@
|
|
|
2103
2103
|
"end": "(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
2104
2104
|
"patterns": [
|
|
2105
2105
|
{
|
|
2106
|
-
"begin": "(?:(?<=(?:[
|
|
2106
|
+
"begin": "(?:(?<=(?:[^[:word:]]functor|^functor))(?![[:word:]]))",
|
|
2107
2107
|
"end": "(\\(\\))|(\\((?!\\)))",
|
|
2108
2108
|
"endCaptures": {
|
|
2109
2109
|
"1": {
|
|
@@ -2286,7 +2286,7 @@
|
|
|
2286
2286
|
"include": "#pathModulePrefixSimple"
|
|
2287
2287
|
},
|
|
2288
2288
|
{
|
|
2289
|
-
"match": "(?:\\b(?=[
|
|
2289
|
+
"match": "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)",
|
|
2290
2290
|
"name": "constant.language constant.numeric entity.other.attribute-name.id.css strong"
|
|
2291
2291
|
}
|
|
2292
2292
|
]
|
|
@@ -2343,7 +2343,7 @@
|
|
|
2343
2343
|
},
|
|
2344
2344
|
"patterns": [
|
|
2345
2345
|
{
|
|
2346
|
-
"begin": "(?:(?<=(?:[
|
|
2346
|
+
"begin": "(?:(?<=(?:[^[:word:]]for|^for))(?![[:word:]]))",
|
|
2347
2347
|
"end": "(?<![#\\-:!?.@*/&%^+<=>|~$])=(?![#\\-:!?.@*/&%^+<=>|~$])",
|
|
2348
2348
|
"endCaptures": {
|
|
2349
2349
|
"0": {
|
|
@@ -2371,7 +2371,7 @@
|
|
|
2371
2371
|
]
|
|
2372
2372
|
},
|
|
2373
2373
|
{
|
|
2374
|
-
"begin": "(?:(?<=(?:[
|
|
2374
|
+
"begin": "(?:(?<=(?:[^[:word:]]to|^to))(?![[:word:]]))",
|
|
2375
2375
|
"end": "\\bdo\\b",
|
|
2376
2376
|
"endCaptures": {
|
|
2377
2377
|
"0": {
|
|
@@ -2385,7 +2385,7 @@
|
|
|
2385
2385
|
]
|
|
2386
2386
|
},
|
|
2387
2387
|
{
|
|
2388
|
-
"begin": "(?:(?<=(?:[
|
|
2388
|
+
"begin": "(?:(?<=(?:[^[:word:]]do|^do))(?![[:word:]]))",
|
|
2389
2389
|
"end": "(?=\\bdone\\b)",
|
|
2390
2390
|
"patterns": [
|
|
2391
2391
|
{
|
|
@@ -2411,8 +2411,8 @@
|
|
|
2411
2411
|
"termLet": {
|
|
2412
2412
|
"patterns": [
|
|
2413
2413
|
{
|
|
2414
|
-
"begin": "(?:(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=|[^#\\-:!?.@*/&%^+<=>|~$]->|^->))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?<=;|\\())(?=[
|
|
2415
|
-
"end": "\\b(?:(and)|(let))\\b|(?=[
|
|
2414
|
+
"begin": "(?:(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]=|^=|[^#\\-:!?.@*/&%^+<=>|~$]->|^->))(?![#\\-:!?.@*/&%^+<=>|~$]))|(?<=;|\\())(?=[[:space:]]|\\blet\\b)|(?:(?<=(?:[^[:word:]]begin|^begin|[^[:word:]]do|^do|[^[:word:]]else|^else|[^[:word:]]in|^in|[^[:word:]]struct|^struct|[^[:word:]]then|^then|[^[:word:]]try|^try))(?![[:word:]]))|(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]@@|^@@))(?![#\\-:!?.@*/&%^+<=>|~$]))[[:space:]]+",
|
|
2415
|
+
"end": "\\b(?:(and)|(let))\\b|(?=[^[:space:]])(?!\\(\\*)",
|
|
2416
2416
|
"endCaptures": {
|
|
2417
2417
|
"1": {
|
|
2418
2418
|
"name": "variable.other.class.js message.error variable.interpolation string.regexp markup.underline"
|
|
@@ -2428,7 +2428,7 @@
|
|
|
2428
2428
|
]
|
|
2429
2429
|
},
|
|
2430
2430
|
{
|
|
2431
|
-
"begin": "(?:(?<=(?:[
|
|
2431
|
+
"begin": "(?:(?<=(?:[^[:word:]]and|^and|[^[:word:]]let|^let))(?![[:word:]]))|(let)",
|
|
2432
2432
|
"beginCaptures": {
|
|
2433
2433
|
"1": {
|
|
2434
2434
|
"name": "storage.type markup.underline"
|
|
@@ -2468,7 +2468,7 @@
|
|
|
2468
2468
|
"termMatchRule": {
|
|
2469
2469
|
"patterns": [
|
|
2470
2470
|
{
|
|
2471
|
-
"begin": "(?:(?<=(?:[
|
|
2471
|
+
"begin": "(?:(?<=(?:[^[:word:]]fun|^fun|[^[:word:]]function|^function|[^[:word:]]with|^with))(?![[:word:]]))",
|
|
2472
2472
|
"end": "(?<![#\\-:!?.@*/&%^+<=>|~$])(\\|)|(->)(?![#\\-:!?.@*/&%^+<=>|~$])",
|
|
2473
2473
|
"endCaptures": {
|
|
2474
2474
|
"1": {
|
|
@@ -2537,7 +2537,7 @@
|
|
|
2537
2537
|
"name": "keyword"
|
|
2538
2538
|
}
|
|
2539
2539
|
},
|
|
2540
|
-
"end": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
2540
|
+
"end": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
2541
2541
|
"endCaptures": {
|
|
2542
2542
|
"0": {
|
|
2543
2543
|
"name": "entity.name.function"
|
|
@@ -2577,7 +2577,7 @@
|
|
|
2577
2577
|
"name": "variable.other.class.js message.error variable.interpolation string.regexp"
|
|
2578
2578
|
}
|
|
2579
2579
|
},
|
|
2580
|
-
"end": ":|(?=[
|
|
2580
|
+
"end": ":|(?=[^[:space:]:])",
|
|
2581
2581
|
"endCaptures": {
|
|
2582
2582
|
"0": {
|
|
2583
2583
|
"name": "keyword"
|
|
@@ -2586,7 +2586,7 @@
|
|
|
2586
2586
|
"patterns": [
|
|
2587
2587
|
{
|
|
2588
2588
|
"begin": "(?:(?<=(?:[^#\\-:!?.@*/&%^+<=>|~$]\\?|^\\?|[^#\\-:!?.@*/&%^+<=>|~$]~|^~))(?![#\\-:!?.@*/&%^+<=>|~$]))",
|
|
2589
|
-
"end": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
2589
|
+
"end": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
2590
2590
|
"endCaptures": {
|
|
2591
2591
|
"0": {
|
|
2592
2592
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename"
|
|
@@ -2626,7 +2626,7 @@
|
|
|
2626
2626
|
},
|
|
2627
2627
|
"patterns": [
|
|
2628
2628
|
{
|
|
2629
|
-
"begin": "(?:(?<=(?:[
|
|
2629
|
+
"begin": "(?:(?<=(?:[^[:word:]]while|^while))(?![[:word:]]))",
|
|
2630
2630
|
"end": "\\bdo\\b",
|
|
2631
2631
|
"endCaptures": {
|
|
2632
2632
|
"0": {
|
|
@@ -2640,7 +2640,7 @@
|
|
|
2640
2640
|
]
|
|
2641
2641
|
},
|
|
2642
2642
|
{
|
|
2643
|
-
"begin": "(?:(?<=(?:[
|
|
2643
|
+
"begin": "(?:(?<=(?:[^[:word:]]do|^do))(?![[:word:]]))",
|
|
2644
2644
|
"end": "(?=\\bdone\\b)",
|
|
2645
2645
|
"patterns": [
|
|
2646
2646
|
{
|
|
@@ -2690,7 +2690,7 @@
|
|
|
2690
2690
|
"typeConstructor": {
|
|
2691
2691
|
"patterns": [
|
|
2692
2692
|
{
|
|
2693
|
-
"begin": "(_)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
2693
|
+
"begin": "(_)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))|(')((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))|(?<=[^\\*]\\)|\\])",
|
|
2694
2694
|
"beginCaptures": {
|
|
2695
2695
|
"1": {
|
|
2696
2696
|
"name": "comment constant.regexp meta.separator.markdown"
|
|
@@ -2702,7 +2702,7 @@
|
|
|
2702
2702
|
"name": "keyword.control emphasis"
|
|
2703
2703
|
}
|
|
2704
2704
|
},
|
|
2705
|
-
"end": "(?=\\((?!\\*)|\\*|:|,|=|\\.|>|-|\\{|\\[|\\+|\\}|\\)|\\]|;|\\|)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
2705
|
+
"end": "(?=\\((?!\\*)|\\*|:|,|=|\\.|>|-|\\{|\\[|\\+|\\}|\\)|\\]|;|\\|)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))[:space:]*(?!\\(\\*|[[:word:]])|(?=;;|\\}|\\)|\\]|\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\b)",
|
|
2706
2706
|
"endCaptures": {
|
|
2707
2707
|
"1": {
|
|
2708
2708
|
"name": "entity.name.function strong"
|
|
@@ -2722,7 +2722,7 @@
|
|
|
2722
2722
|
"typeLabel": {
|
|
2723
2723
|
"patterns": [
|
|
2724
2724
|
{
|
|
2725
|
-
"begin": "(\\??)((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
2725
|
+
"begin": "(\\??)((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))[[:space:]]*((?<![#\\-:!?.@*/&%^+<=>|~$]):(?![#\\-:!?.@*/&%^+<=>|~$]))",
|
|
2726
2726
|
"captures": {
|
|
2727
2727
|
"1": {
|
|
2728
2728
|
"name": "keyword strong emphasis"
|
|
@@ -2791,7 +2791,7 @@
|
|
|
2791
2791
|
"include": "#pathModulePrefixSimple"
|
|
2792
2792
|
},
|
|
2793
2793
|
{
|
|
2794
|
-
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
2794
|
+
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
2795
2795
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
|
|
2796
2796
|
}
|
|
2797
2797
|
]
|
|
@@ -2884,13 +2884,13 @@
|
|
|
2884
2884
|
"include": "#pathModulePrefixSimple"
|
|
2885
2885
|
},
|
|
2886
2886
|
{
|
|
2887
|
-
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
2887
|
+
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
2888
2888
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
|
|
2889
2889
|
}
|
|
2890
2890
|
]
|
|
2891
2891
|
},
|
|
2892
2892
|
{
|
|
2893
|
-
"begin": "(?:(?<=(?:[
|
|
2893
|
+
"begin": "(?:(?<=(?:[^[:word:]]with|^with))(?![[:word:]]))",
|
|
2894
2894
|
"end": "(:)|(=)|(;)|(?=\\})",
|
|
2895
2895
|
"endCaptures": {
|
|
2896
2896
|
"1": {
|
|
@@ -2905,7 +2905,7 @@
|
|
|
2905
2905
|
},
|
|
2906
2906
|
"patterns": [
|
|
2907
2907
|
{
|
|
2908
|
-
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
2908
|
+
"match": "(?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*)",
|
|
2909
2909
|
"name": "markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"
|
|
2910
2910
|
}
|
|
2911
2911
|
]
|
|
@@ -2949,7 +2949,7 @@
|
|
|
2949
2949
|
"name": "string.other.link variable.language variable.parameter emphasis"
|
|
2950
2950
|
}
|
|
2951
2951
|
},
|
|
2952
|
-
"match": "(?:\\b(?=[
|
|
2952
|
+
"match": "(?:\\b(?=[[:upper:]])[[:alpha:]_][[:word:]']*)"
|
|
2953
2953
|
},
|
|
2954
2954
|
"variablePattern": {
|
|
2955
2955
|
"captures": {
|
|
@@ -2960,7 +2960,7 @@
|
|
|
2960
2960
|
"name": "string.other.link variable.language variable.parameter emphasis"
|
|
2961
2961
|
}
|
|
2962
2962
|
},
|
|
2963
|
-
"match": "(\\b_\\b)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[
|
|
2963
|
+
"match": "(\\b_\\b)|((?:(?!\\b(?:and|'|as|asr|assert|\\*|begin|class|:|,|@|constraint|do|done|downto|else|end|=|exception|external|false|for|\\.|fun|function|functor|>|-|if|in|include|inherit|initializer|land|lazy|\\{|\\(|\\[|<|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|%|\\+|private|\\?|\"|rec|\\\\|\\}|\\)|\\]|;|sig|/|struct|then|~|to|true|try|type|val|\\||virtual|when|while|with)\\b(?:[^']|$))\\b(?=[[:lower:]_])[[:alpha:]_][[:word:]']*))"
|
|
2964
2964
|
}
|
|
2965
2965
|
},
|
|
2966
2966
|
"scopeName": "source.ocaml"
|