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/julia.json
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"name": "meta.bracket.julia"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"end": "(
|
|
58
|
+
"end": "(])(\\.?'*)",
|
|
59
59
|
"endCaptures": {
|
|
60
60
|
"1": {
|
|
61
61
|
"name": "meta.bracket.julia"
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"name": "meta.bracket.julia"
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
|
-
"end": "(
|
|
93
|
+
"end": "(})(\\.?'*)",
|
|
94
94
|
"endCaptures": {
|
|
95
95
|
"1": {
|
|
96
96
|
"name": "meta.bracket.julia"
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"name": "keyword.control.julia"
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
|
-
"end": "(
|
|
188
|
+
"end": "(?<![,\\s])(\\s*\\n)",
|
|
189
189
|
"patterns": [
|
|
190
190
|
{
|
|
191
191
|
"match": "\\bouter\\b",
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"function_call": {
|
|
202
202
|
"patterns": [
|
|
203
203
|
{
|
|
204
|
-
"begin": "(
|
|
204
|
+
"begin": "([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)(\\{(?:[^{}]|\\{(?:[^{}]|\\{[^{}]*})*})*})?\\.?(\\()",
|
|
205
205
|
"beginCaptures": {
|
|
206
206
|
"1": {
|
|
207
207
|
"name": "support.function.julia"
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"name": "support.type.julia"
|
|
242
242
|
}
|
|
243
243
|
},
|
|
244
|
-
"match": "(
|
|
244
|
+
"match": "([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)(\\{(?:[^{}]|\\{(?:[^{}]|\\{[^{}]*})*})*})?(?=\\([^#]*\\)(::\\S+)?(\\s*\\bwhere\\b\\s+.+?)?\\s*?=(?![=>]))"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"captures": {
|
|
@@ -258,14 +258,14 @@
|
|
|
258
258
|
"name": "support.type.julia"
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
|
-
"match": "\\b(function|macro)(?:\\s+(?:
|
|
261
|
+
"match": "\\b(function|macro)(?:\\s+(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*(\\.))?([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)(\\{(?:[^{}]|\\{(?:[^{}]|\\{[^{}]*})*})*})?|\\s*)(?=\\()"
|
|
262
262
|
}
|
|
263
263
|
]
|
|
264
264
|
},
|
|
265
265
|
"keyword": {
|
|
266
266
|
"patterns": [
|
|
267
267
|
{
|
|
268
|
-
"match": "\\b(?<![:_
|
|
268
|
+
"match": "\\b(?<![:_.])(?:function|mutable\\s+struct|struct|macro|quote|abstract\\s+type|primitive\\s+type|module|baremodule|where)\\b",
|
|
269
269
|
"name": "keyword.other.julia"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
@@ -281,19 +281,19 @@
|
|
|
281
281
|
"name": "keyword.storage.modifier.julia"
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
|
-
"match": "\\b(?<![:_])
|
|
284
|
+
"match": "\\b(?<![:_])export\\b",
|
|
285
285
|
"name": "keyword.control.export.julia"
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
|
-
"match": "^
|
|
288
|
+
"match": "^public\\b",
|
|
289
289
|
"name": "keyword.control.public.julia"
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
|
-
"match": "\\b(?<![:_])
|
|
292
|
+
"match": "\\b(?<![:_])import\\b",
|
|
293
293
|
"name": "keyword.control.import.julia"
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
|
-
"match": "\\b(?<![:_])
|
|
296
|
+
"match": "\\b(?<![:_])using\\b",
|
|
297
297
|
"name": "keyword.control.using.julia"
|
|
298
298
|
},
|
|
299
299
|
{
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"name": "keyword.control.as.julia"
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
|
-
"match": "(@(\\.|
|
|
304
|
+
"match": "(@(\\.|[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*))",
|
|
305
305
|
"name": "support.function.macro.julia"
|
|
306
306
|
}
|
|
307
307
|
]
|
|
@@ -317,14 +317,14 @@
|
|
|
317
317
|
"name": "keyword.operator.conjugate-number.julia"
|
|
318
318
|
}
|
|
319
319
|
},
|
|
320
|
-
"match": "((?<!
|
|
320
|
+
"match": "((?<![[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]])\\b(?:0[xX]\\h(?:_?\\h)*|0o[0-7](?:_?[0-7])*|0b[0-1](?:_?[0-1])*|(?:[0-9](?:_?[0-9])*\\.?(?!\\.)[_0-9]*|\\.[0-9](?:_?[0-9])*)(?:[efE][+\\-]?[0-9](?:_?[0-9])*)?(?:im\\b|Inf(?:16|32|64)?\\b|NaN(?:16|32|64)?\\b|π\\b|pi\\b|ℯ\\b)?|[0-9]+|Inf(?:16|32|64)?\\b|NaN(?:16|32|64)?\\b|π\\b|pi\\b|ℯ\\b))('*)"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
|
-
"match": "\\
|
|
323
|
+
"match": "\\b(?:ARGS\\b|C_NULL\\b|DEPOT_PATH\\b|ENDIAN_BOM\\b|ENV\\b|LOAD_PATH\\b|PROGRAM_FILE\\b|stdin\\b|stdout\\b|stderr\\b|VERSION\\b|devnull\\b)",
|
|
324
324
|
"name": "constant.global.julia"
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
|
-
"match": "\\
|
|
327
|
+
"match": "\\b(?:true\\b|false\\b|nothing\\b|missing\\b)",
|
|
328
328
|
"name": "constant.language.julia"
|
|
329
329
|
}
|
|
330
330
|
]
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"operator": {
|
|
333
333
|
"patterns": [
|
|
334
334
|
{
|
|
335
|
-
"match": "\\.?(
|
|
335
|
+
"match": "\\.?(?:<-->|->|-->|<--|[←→↔↚↛↞↠↢↣↦↤↮⇎⇍⇏⇐⇒⇔⇴⇶⇷⇸⇹⇺⇻⇼⇽⇾⇿⟵⟶⟷⟹⟺⟻⟼⟽⟾⟿⤀⤁⤂⤃⤄⤅⤆⤇⤌⤍⤎⤏⤐⤑⤔⤕⤖⤗⤘⤝⤞⤟⤠⥄⥅⥆⥇⥈⥊⥋⥎⥐⥒⥓⥖⥗⥚⥛⥞⥟⥢⥤⥦⥧⥨⥩⥪⥫⥬⥭⥰⧴⬱⬰⬲⬳⬴⬵⬶⬷⬸⬹⬺⬻⬼⬽⬾⬿⭀⭁⭂⭃⥷⭄⥺⭇⭈⭉⭊⭋⭌←→⇜⇝↜↝↩↪↫↬↼↽⇀⇁⇄⇆⇇⇉⇋⇌⇚⇛⇠⇢↷↶↺↻]|=>)",
|
|
336
336
|
"name": "keyword.operator.arrow.julia"
|
|
337
337
|
},
|
|
338
338
|
{
|
|
@@ -355,42 +355,42 @@
|
|
|
355
355
|
"name": "keyword.operator.transpose.julia"
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
|
-
"match": "
|
|
358
|
+
"match": "\\s*(::|>:|<:)\\s*((?:(?:Union)?\\([^)]*\\)|[[:alpha:]_$∇][[:word:]⁺-ₜ!′.]*(?:\\{(?:[^{}]|\\{(?:[^{}]|\\{[^{}]*})*})*}|\".+?(?<!\\\\)\")?))(?:\\.\\.\\.)?(\\.?'*)"
|
|
359
359
|
},
|
|
360
360
|
{
|
|
361
|
-
"match": "(\\.?((?<!<)<=|(?<!>)
|
|
361
|
+
"match": "(\\.?((?<!<)<=|(?<!>)>=|[><≥≤]|===|==|≡|!=|≠|!==|[≢∈∉∋∌⊆⊈⊂⊄⊊∝∊∍∥∦∷∺∻∽∾≁≃≂≄≅≆≇≈≉≊≋≌≍≎≐≑≒≓≖≗≘≙≚≛≜≝≞≟≣≦≧≨≩≪≫≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿⊀⊁⊃⊅⊇⊉⊋⊏⊐⊑⊒⊜⊩⊬⊮⊰⊱⊲⊳⊴⊵⊶⊷⋍⋐⋑⋕⋖⋗⋘⋙⋚⋛⋜⋝⋞⋟⋠⋡⋢⋣⋤⋥⋦⋧⋨⋩⋪⋫⋬⋭⋲⋳⋴⋵⋶⋷⋸⋹⋺⋻⋼⋽⋾⋿⟈⟉⟒⦷⧀⧁⧡⧣⧤⧥⩦⩧⩪⩫⩬⩭⩮⩯⩰⩱⩲⩳⩵⩶⩷⩸⩹⩺⩻⩼⩽⩾⩿⪀⪁⪂⪃⪄⪅⪆⪇⪈⪉⪊⪋⪌⪍⪎⪏⪐⪑⪒⪓⪔⪕⪖⪗⪘⪙⪚⪛⪜⪝⪞⪟⪠⪡⪢⪣⪤⪥⪦⪧⪨⪩⪪⪫⪬⪭⪮⪯⪰⪱⪲⪳⪴⪵⪶⪷⪸⪹⪺⪻⪼⪽⪾⪿⫀⫁⫂⫃⫄⫅⫆⫇⫈⫉⫊⫋⫌⫍⫎⫏⫐⫑⫒⫓⫔⫕⫖⫗⫘⫙⫷⫸⫹⫺⊢⊣⟂⫪⫫]|<:|>:))",
|
|
362
362
|
"name": "keyword.operator.relation.julia"
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
|
-
"match": "(?<=\\s)(
|
|
365
|
+
"match": "(?<=\\s)\\?(?=\\s)",
|
|
366
366
|
"name": "keyword.operator.ternary.julia"
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
|
-
"match": "(?<=\\s)(
|
|
369
|
+
"match": "(?<=\\s):(?=\\s)",
|
|
370
370
|
"name": "keyword.operator.ternary.julia"
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
|
-
"match": "(?:\\|\\||&&|(?<!
|
|
373
|
+
"match": "(?:\\|\\||&&|(?<![[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]])!)",
|
|
374
374
|
"name": "keyword.operator.boolean.julia"
|
|
375
375
|
},
|
|
376
376
|
{
|
|
377
|
-
"match": "(?<=[[:word:]
|
|
377
|
+
"match": "(?<=[[:word:]⁺-ₜ!′∇)\\]}]):",
|
|
378
378
|
"name": "keyword.operator.range.julia"
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
|
-
"match": "
|
|
381
|
+
"match": "\\|>",
|
|
382
382
|
"name": "keyword.operator.applies.julia"
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
|
-
"match": "(
|
|
385
|
+
"match": "(?:\\||\\.\\||&|\\.&|[~¬]|\\.~|⊻|\\.⊻)",
|
|
386
386
|
"name": "keyword.operator.bitwise.julia"
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
|
-
"match": "\\.?(
|
|
389
|
+
"match": "\\.?(?:\\+\\+|--|[+\\-−¦|⊕⊖⊞⊟∪∨⊔±∓∔∸≏⊎⊻⊽⋎⋓⟇⧺⧻⨈⨢⨣⨤⨥⨦⨧⨨⨩⨪⨫⨬⨭⨮⨹⨺⩁⩂⩅⩊⩌⩏⩐⩒⩔⩖⩗⩛⩝⩡⩢⩣*]|//?|[⌿÷%\\&··⋅∘×\\\\∩∧⊗⊘⊙⊚⊛⊠⊡⊓∗∙∤⅋≀⊼⋄⋆⋇⋉⋊⋋⋌⋏⋒⟑⦸⦼⦾⦿⧶⧷⨇⨰⨱⨲⨳⨴⨵⨶⨷⨸⨻⨼⨽⩀⩃⩄⩋⩍⩎⩑⩓⩕⩘⩚⩜⩞⩟⩠⫛⊍▷⨝⟕⟖⟗⨟\\^↑↓⇵⟰⟱⤈⤉⤊⤋⤒⤓⥉⥌⥍⥏⥑⥔⥕⥘⥙⥜⥝⥠⥡⥣⥥⥮⥯↑↓√∛∜±∓])",
|
|
390
390
|
"name": "keyword.operator.arithmetic.julia"
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
|
-
"match": "
|
|
393
|
+
"match": "∘",
|
|
394
394
|
"name": "keyword.operator.compose.julia"
|
|
395
395
|
},
|
|
396
396
|
{
|
|
@@ -398,15 +398,15 @@
|
|
|
398
398
|
"name": "keyword.operator.isa.julia"
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
|
-
"match": "(
|
|
401
|
+
"match": "(?<=\\s)in(?=\\s)",
|
|
402
402
|
"name": "keyword.operator.relation.in.julia"
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
|
-
"match": "(?:\\.(?=
|
|
405
|
+
"match": "(?:\\.(?=[@_\\p{L}])|\\.\\.+|[…⁝⋮⋱⋰⋯])",
|
|
406
406
|
"name": "keyword.operator.dots.julia"
|
|
407
407
|
},
|
|
408
408
|
{
|
|
409
|
-
"match": "(
|
|
409
|
+
"match": "\\$(?=.+)",
|
|
410
410
|
"name": "keyword.operator.interpolation.julia"
|
|
411
411
|
},
|
|
412
412
|
{
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
"name": "keyword.operator.transposed-variable.julia"
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
|
-
"match": "(
|
|
418
|
+
"match": "([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)(('|(\\.'))*\\.?')"
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
421
|
"captures": {
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
"name": "keyword.operator.transposed-matrix.julia"
|
|
427
427
|
}
|
|
428
428
|
},
|
|
429
|
-
"match": "(
|
|
429
|
+
"match": "(])((?:'|\\.')*\\.?')"
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
432
|
"captures": {
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
"name": "keyword.operator.transposed-parens.julia"
|
|
438
438
|
}
|
|
439
439
|
},
|
|
440
|
-
"match": "(\\))((?:'
|
|
440
|
+
"match": "(\\))((?:'|\\.')*\\.?')"
|
|
441
441
|
}
|
|
442
442
|
]
|
|
443
443
|
},
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"name": "meta.bracket.julia"
|
|
451
451
|
}
|
|
452
452
|
},
|
|
453
|
-
"end": "(\\))(
|
|
453
|
+
"end": "(\\))(\\.?'*)",
|
|
454
454
|
"endCaptures": {
|
|
455
455
|
"1": {
|
|
456
456
|
"name": "meta.bracket.julia"
|
|
@@ -893,7 +893,7 @@
|
|
|
893
893
|
]
|
|
894
894
|
},
|
|
895
895
|
{
|
|
896
|
-
"begin": "(?<!\")(
|
|
896
|
+
"begin": "(?<!\")([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)\"\"\"",
|
|
897
897
|
"beginCaptures": {
|
|
898
898
|
"0": {
|
|
899
899
|
"name": "punctuation.definition.string.begin.julia"
|
|
@@ -902,7 +902,7 @@
|
|
|
902
902
|
"name": "support.function.macro.julia"
|
|
903
903
|
}
|
|
904
904
|
},
|
|
905
|
-
"end": "(\"\"\")(
|
|
905
|
+
"end": "(\"\"\")([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)?",
|
|
906
906
|
"endCaptures": {
|
|
907
907
|
"1": {
|
|
908
908
|
"name": "punctuation.definition.string.end.julia"
|
|
@@ -919,7 +919,7 @@
|
|
|
919
919
|
]
|
|
920
920
|
},
|
|
921
921
|
{
|
|
922
|
-
"begin": "(?<!\")(
|
|
922
|
+
"begin": "(?<!\")([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)\"",
|
|
923
923
|
"beginCaptures": {
|
|
924
924
|
"0": {
|
|
925
925
|
"name": "punctuation.definition.string.begin.julia"
|
|
@@ -928,7 +928,7 @@
|
|
|
928
928
|
"name": "support.function.macro.julia"
|
|
929
929
|
}
|
|
930
930
|
},
|
|
931
|
-
"end": "(?<![^\\\\]\\\\)(\")(
|
|
931
|
+
"end": "(?<![^\\\\]\\\\)(\")([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)?",
|
|
932
932
|
"endCaptures": {
|
|
933
933
|
"1": {
|
|
934
934
|
"name": "punctuation.definition.string.end.julia"
|
|
@@ -945,7 +945,7 @@
|
|
|
945
945
|
]
|
|
946
946
|
},
|
|
947
947
|
{
|
|
948
|
-
"begin": "(?<!`)(
|
|
948
|
+
"begin": "(?<!`)([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)?```",
|
|
949
949
|
"beginCaptures": {
|
|
950
950
|
"0": {
|
|
951
951
|
"name": "punctuation.definition.string.begin.julia"
|
|
@@ -954,7 +954,7 @@
|
|
|
954
954
|
"name": "support.function.macro.julia"
|
|
955
955
|
}
|
|
956
956
|
},
|
|
957
|
-
"end": "(```)(
|
|
957
|
+
"end": "(```)([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)?",
|
|
958
958
|
"endCaptures": {
|
|
959
959
|
"1": {
|
|
960
960
|
"name": "punctuation.definition.string.end.julia"
|
|
@@ -974,7 +974,7 @@
|
|
|
974
974
|
]
|
|
975
975
|
},
|
|
976
976
|
{
|
|
977
|
-
"begin": "(?<!`)(
|
|
977
|
+
"begin": "(?<!`)([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)?`",
|
|
978
978
|
"beginCaptures": {
|
|
979
979
|
"0": {
|
|
980
980
|
"name": "punctuation.definition.string.begin.julia"
|
|
@@ -983,7 +983,7 @@
|
|
|
983
983
|
"name": "support.function.macro.julia"
|
|
984
984
|
}
|
|
985
985
|
},
|
|
986
|
-
"end": "(?<![^\\\\]\\\\)(`)(
|
|
986
|
+
"end": "(?<![^\\\\]\\\\)(`)([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)?",
|
|
987
987
|
"endCaptures": {
|
|
988
988
|
"1": {
|
|
989
989
|
"name": "punctuation.definition.string.end.julia"
|
|
@@ -1007,7 +1007,7 @@
|
|
|
1007
1007
|
"string_dollar_sign_interpolate": {
|
|
1008
1008
|
"patterns": [
|
|
1009
1009
|
{
|
|
1010
|
-
"match": "\\$
|
|
1010
|
+
"match": "\\$[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿][^\\P{Sc}$]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿][^\\P{Sc}$]]*",
|
|
1011
1011
|
"name": "variable.interpolation.julia"
|
|
1012
1012
|
},
|
|
1013
1013
|
{
|
|
@@ -1035,7 +1035,7 @@
|
|
|
1035
1035
|
"string_escaped_char": {
|
|
1036
1036
|
"patterns": [
|
|
1037
1037
|
{
|
|
1038
|
-
"match": "\\\\(\\\\|[0-3]\\d{,2}|[4-7]\\d?|x
|
|
1038
|
+
"match": "\\\\(\\\\|[0-3]\\d{0,2}|[4-7]\\d?|x\\h{0,2}|u\\h{0,4}|U\\h{0,8}|.)",
|
|
1039
1039
|
"name": "constant.character.escape.julia"
|
|
1040
1040
|
}
|
|
1041
1041
|
]
|
|
@@ -1043,7 +1043,7 @@
|
|
|
1043
1043
|
"symbol": {
|
|
1044
1044
|
"patterns": [
|
|
1045
1045
|
{
|
|
1046
|
-
"match": "(?<![[:word:]
|
|
1046
|
+
"match": "(?<![[:word:]⁺-ₜ!′∇)\\]}]):[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*(?![[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]])(?![\"`])",
|
|
1047
1047
|
"name": "constant.other.symbol.julia"
|
|
1048
1048
|
}
|
|
1049
1049
|
]
|
|
@@ -1062,7 +1062,7 @@
|
|
|
1062
1062
|
"name": "punctuation.separator.inheritance.julia"
|
|
1063
1063
|
}
|
|
1064
1064
|
},
|
|
1065
|
-
"match": "
|
|
1065
|
+
"match": "!:_(?:struct|mutable\\s+struct|abstract\\s+type|primitive\\s+type)\\s+([[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*)(\\s*(<:)\\s*[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{So}←-⇿]][[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡[^\\P{Mn}\\x01-¡][^\\P{Mc}\\x01-¡][^\\D\\x01-¡][^\\P{Pc}\\x01-¡][^\\P{Sk}\\x01-¡][^\\P{Me}\\x01-¡][^\\P{No}\\x01-¡]′-‷⁗[^\\P{So}←-⇿]]*(?:\\{.*})?)?",
|
|
1066
1066
|
"name": "meta.type.julia"
|
|
1067
1067
|
}
|
|
1068
1068
|
]
|
package/grammars/kotlin.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"repository": {
|
|
20
20
|
"annotation-simple": {
|
|
21
|
-
"match": "(?<!\\w)@[\\w
|
|
21
|
+
"match": "(?<!\\w)@[\\w.]+\\b(?!:)",
|
|
22
22
|
"name": "entity.name.type.annotation.kotlin"
|
|
23
23
|
},
|
|
24
24
|
"annotation-site": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"name": "entity.name.type.annotation-site.kotlin"
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
"end": "
|
|
45
|
+
"end": "]",
|
|
46
46
|
"patterns": [
|
|
47
47
|
{
|
|
48
48
|
"include": "#unescaped-annotation"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
"binary-literal": {
|
|
53
|
-
"match": "0(
|
|
53
|
+
"match": "0([bB])[01][01_]*",
|
|
54
54
|
"name": "constant.numeric.binary.kotlin"
|
|
55
55
|
},
|
|
56
56
|
"boolean-literal": {
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"name": "variable.parameter.kotlin"
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
|
-
"match": "(@
|
|
199
|
+
"match": "(@p(?:aram|roperty))\\s+(\\S+)"
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"captures": {
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"name": "variable.parameter.kotlin"
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
|
-
"match": "(@param)\\[(\\S+)
|
|
210
|
+
"match": "(@param)\\[(\\S+)]"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"captures": {
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"name": "variable.parameter.kotlin"
|
|
233
233
|
}
|
|
234
234
|
},
|
|
235
|
-
"match": "{(@link)\\s+(\\S+)?#([\\w$]+\\s*\\([
|
|
235
|
+
"match": "\\{(@link)\\s+(\\S+)?#([\\w$]+\\s*\\([^()]*\\)).*}"
|
|
236
236
|
}
|
|
237
237
|
]
|
|
238
238
|
}
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
"name": "keyword.control.kotlin"
|
|
262
262
|
},
|
|
263
263
|
"decimal-literal": {
|
|
264
|
-
"match": "\\b\\d[\\d_]*(\\.[\\d_]+)?((
|
|
264
|
+
"match": "\\b\\d[\\d_]*(\\.[\\d_]+)?(([eE])\\d+)?([uU])?([LFf])?\\b",
|
|
265
265
|
"name": "constant.numeric.decimal.kotlin"
|
|
266
266
|
},
|
|
267
267
|
"function": {
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
"name": "keyword.hard.kotlin"
|
|
306
306
|
},
|
|
307
307
|
"hex-literal": {
|
|
308
|
-
"match": "0(
|
|
308
|
+
"match": "0([xX])\\h[_\\h]*([uU])?",
|
|
309
309
|
"name": "constant.numeric.hex.kotlin"
|
|
310
310
|
},
|
|
311
311
|
"import": {
|
|
@@ -391,11 +391,11 @@
|
|
|
391
391
|
"operators": {
|
|
392
392
|
"patterns": [
|
|
393
393
|
{
|
|
394
|
-
"match": "(
|
|
394
|
+
"match": "(===?|!==?|<=|>=|[<>])",
|
|
395
395
|
"name": "keyword.operator.comparison.kotlin"
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
|
-
"match": "([
|
|
398
|
+
"match": "([+*/%\\-]=)",
|
|
399
399
|
"name": "keyword.operator.assignment.arithmetic.kotlin"
|
|
400
400
|
},
|
|
401
401
|
{
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
"name": "keyword.operator.assignment.kotlin"
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
|
-
"match": "([
|
|
406
|
+
"match": "([+*/%\\-])",
|
|
407
407
|
"name": "keyword.operator.arithmetic.kotlin"
|
|
408
408
|
},
|
|
409
409
|
{
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
"name": "punctuation.definition.template-expression.begin"
|
|
481
481
|
}
|
|
482
482
|
},
|
|
483
|
-
"end": "(
|
|
483
|
+
"end": "(})",
|
|
484
484
|
"endCaptures": {
|
|
485
485
|
"1": {
|
|
486
486
|
"name": "punctuation.definition.template-expression.end"
|
|
@@ -542,7 +542,7 @@
|
|
|
542
542
|
]
|
|
543
543
|
}
|
|
544
544
|
},
|
|
545
|
-
"match": "(?<![:?]):\\s*(\\w
|
|
545
|
+
"match": "(?<![:?]):\\s*([\\w?\\s]|->|(?<GROUP>[<(]([^<>()\"']|\\g<GROUP>)+[)>]))+"
|
|
546
546
|
},
|
|
547
547
|
"type-parameter": {
|
|
548
548
|
"patterns": [
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
]
|
|
558
558
|
},
|
|
559
559
|
"unescaped-annotation": {
|
|
560
|
-
"match": "\\b[\\w
|
|
560
|
+
"match": "\\b[\\w.]+\\b",
|
|
561
561
|
"name": "entity.name.type.annotation.kotlin"
|
|
562
562
|
},
|
|
563
563
|
"variable-declaration": {
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
]
|
|
574
574
|
}
|
|
575
575
|
},
|
|
576
|
-
"match": "\\b(
|
|
576
|
+
"match": "\\b(va[lr])\\b\\s*(?<GROUP><([^<>]|\\g<GROUP>)+>)?"
|
|
577
577
|
}
|
|
578
578
|
},
|
|
579
579
|
"scopeName": "source.kotlin"
|