tm-grammars 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,7 +31,7 @@ import { grammars } from 'tm-grammars'
31
31
  | `applescript` | | [textmate/applescript.tmbundle](https://github.com/textmate/applescript.tmbundle/blob/4947cad7494eba084c21cfe04689b4efce96700f/Syntaxes/AppleScript.tmLanguage) | | | 28.73 kB |
32
32
  | `ara` | | [ara-lang/highlighting](https://github.com/ara-lang/highlighting/blob/ed1dbedcf03d0b67207e41fe2e11218cc925dc0d/syntaxes/ara.json) | [Apache-2.0](https://raw.githubusercontent.com/ara-lang/highlighting/main/LICENSE-APACHE) | | 6.82 kB |
33
33
  | `asm` | | [13xforever/x86_64-assembly-vscode](https://github.com/13xforever/x86_64-assembly-vscode/blob/15c07b12741ac75f5bb6e7701dc7c0d742add8dd/syntaxes/language-x86_64-assembly.tmLanguage) | [MIT](https://raw.githubusercontent.com/13xforever/x86_64-assembly-vscode/master/LICENSE.txt) | | 38.59 kB |
34
- | `astro` | | [withastro/language-tools](https://github.com/withastro/language-tools/blob/37434ab5ee2149dd74a7c1e800d8c279a0617912/packages/vscode/syntaxes/astro.tmLanguage.src.yaml) | [MIT](https://raw.githubusercontent.com/withastro/language-tools/main/LICENSE) | `json` `javascript` `typescript` `stylus` `sass` `css` `scss` `less` `postcss` `tsx` | 10.63 kB |
34
+ | `astro` | | [withastro/language-tools](https://github.com/withastro/language-tools/blob/db49ff7cbeb2910ddac6ce0b15f3973b72827ccd/packages/vscode/syntaxes/astro.tmLanguage.src.yaml) | [MIT](https://raw.githubusercontent.com/withastro/language-tools/main/LICENSE) | `json` `javascript` `typescript` `stylus` `sass` `css` `scss` `less` `postcss` `tsx` | 22.88 kB |
35
35
  | `awk` | | [luggage66/vscode-awk](https://github.com/luggage66/vscode-awk/blob/eff8c0f160ae16592c8d9963fd77046137fd2612/syntaxes/awk.tmLanguage) | [MIT](https://raw.githubusercontent.com/luggage66/vscode-awk/master/LICENSE.txt) | | 5.18 kB |
36
36
  | `ballerina` | | [ballerina-platform/ballerina-grammar](https://github.com/ballerina-platform/ballerina-grammar/blob/42ddcc1c63c86bdd6ba712e86bf965f5063831d3/syntaxes/ballerina.tmLanguage) | [Apache-2.0](https://raw.githubusercontent.com/ballerina-platform/ballerina-grammar/master/LICENSE) | | 56.58 kB |
37
37
  | `bat` | `batch` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/df15c8e832a341633acd2e9bb26e1b275d09cfe0/extensions/bat/syntaxes/batchfile.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 12.38 kB |
@@ -116,14 +116,14 @@ import { grammars } from 'tm-grammars'
116
116
  | `logo` | | [textmate/logo.tmbundle](https://github.com/textmate/logo.tmbundle/blob/3205e987ed2a2aa11accdd55a7d094832441f89c/Syntaxes/Logo.tmLanguage) | | | 3.03 kB |
117
117
  | `lua` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/lua/syntaxes/lua.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `c` | 14.39 kB |
118
118
  | `make` | `makefile` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/91db8ea85fee30ebb3c7a5e7939aa2a8d79811c5/extensions/make/syntaxes/make.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 8.45 kB |
119
- | `markdown` | `md` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/markdown-basics/syntaxes/markdown.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `css` `html` `ini` `java` `lua` `make` `perl` `r` `ruby` `php` `sql` `vb` `xml` `xsl` `yaml` `bat` `clojure` `coffee` `c` `cpp` `diff` `docker` `git-commit` `git-rebase` `go` `groovy` `pug` `javascript` `json` `jsonc` `less` `objective-c` `swift` `scss` `raku` `powershell` `python` `julia` `rust` `scala` `shellscript` `typescript` `tsx` `csharp` `fsharp` `dart` `handlebars` `erlang` `elixir` `latex` `bibtex` `html-derivative` | 52.58 kB |
119
+ | `markdown` | `md` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6b0a582e595fab7da09fcd267f4f8248e7ec437e/extensions/markdown-basics/syntaxes/markdown.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `css` `html` `ini` `java` `lua` `make` `perl` `r` `ruby` `php` `sql` `vb` `xml` `xsl` `yaml` `bat` `clojure` `coffee` `c` `cpp` `diff` `docker` `git-commit` `git-rebase` `go` `groovy` `pug` `javascript` `json` `jsonc` `less` `objective-c` `swift` `scss` `raku` `powershell` `python` `julia` `rust` `scala` `shellscript` `typescript` `tsx` `csharp` `fsharp` `dart` `handlebars` `erlang` `elixir` `latex` `bibtex` `html-derivative` | 52.58 kB |
120
120
  | `marko` | | [marko-js/marko-tmbundle](https://github.com/marko-js/marko-tmbundle/blob/dd3a0c39e656bedd276d3bcbdea92a2d627755c7/Syntaxes/marko.tmLanguage) | [MIT](https://raw.githubusercontent.com/marko-js/marko-tmbundle/master/LICENSE) | `css` `less` `scss` `javascript` | 18.31 kB |
121
121
  | `matlab` | | [mathworks/MATLAB-Language-grammar](https://github.com/mathworks/MATLAB-Language-grammar/blob/69dbf20c1eb19efd629c0438a2a493e60617e8de/Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage) | | | 19.38 kB |
122
122
  | `mdc` | | [nuxtlabs/vscode-mdc](https://github.com/nuxtlabs/vscode-mdc/blob/6294dbce9706f538a521e7dccce9609e928dc3be/syntaxes/mdc.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nuxtlabs/vscode-mdc/main/LICENSE) | `markdown` `yaml` `html-derivative` | 19.05 kB |
123
123
  | `mdx` | | [wooorm/markdown-tm-language](https://github.com/wooorm/markdown-tm-language/blob/371d61df9ddc3850e12aabe61b602d02e259e8a4/source.mdx.tmLanguage) | [MIT](https://raw.githubusercontent.com/wooorm/markdown-tm-language/main/license) | `tsx` `toml` `yaml` `c` `clojure` `coffee` `cpp` `csharp` `css` `diff` `docker` `elixir` `elm` `erlang` `go` `graphql` `haskell` `html` `ini` `java` `javascript` `json` `julia` `kotlin` `less` `lua` `make` `markdown` `objective-c` `perl` `python` `r` `ruby` `rust` `scala` `scss` `shellscript` `shellsession` `sql` `xml` `swift` `typescript` | 120.76 kB |
124
124
  | `mermaid` | | [bpruitt-goddard/vscode-mermaid-syntax-highlight](https://github.com/bpruitt-goddard/vscode-mermaid-syntax-highlight/blob/8b62f487cb7a89afcd152febfbf47f5d4787657f/syntaxes/mermaid.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/bpruitt-goddard/vscode-mermaid-syntax-highlight/master/LICENSE) | | 19.88 kB |
125
125
  | `mojo` | | [modularml/mojo-syntax](https://github.com/modularml/mojo-syntax/blob/a2241dda06d9a20503394c3affa606114d007049/syntaxes/mojo.syntax.json) | [MIT](https://raw.githubusercontent.com/modularml/mojo-syntax/main/LICENSE) | | 72.95 kB |
126
- | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/de9244e81505ff9154dc9422dbce434ac86fb981/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 13.82 kB |
126
+ | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/ec2884fdaee236db42d8999e5f9cd2923e317f8b/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 16.28 kB |
127
127
  | `narrat` | `nar` | [liana-p/narrat-syntax-highlighting-vscode](https://github.com/liana-p/narrat-syntax-highlighting-vscode/blob/00d4b410338fc50ca0ce77a1f7e873c1fb66d376/syntaxes/narrat.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/liana-p/narrat-syntax-highlighting-vscode/main/LICENSE) | | 3.41 kB |
128
128
  | `nextflow` | `nf` | [nextflow-io/vscode-language-nextflow](https://github.com/nextflow-io/vscode-language-nextflow/blob/7eeb9be8d01556b7c51c59307275c2f720f2ddf4/syntaxes/nextflow.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nextflow-io/vscode-language-nextflow/master/LICENSE.md) | | 4.40 kB |
129
129
  | `nginx` | | [hangxingliu/vscode-nginx-conf-hint](https://github.com/hangxingliu/vscode-nginx-conf-hint/blob/49159c02fd09dce264ded7802c9499a0f09646f5/src/syntax/nginx.tmLanguage) | [GPL-3.0](https://raw.githubusercontent.com/hangxingliu/vscode-nginx-conf-hint/main/LICENSE) | `lua` | 34.14 kB |
@@ -448,6 +448,50 @@
448
448
  }
449
449
  ]
450
450
  },
451
+ "entities": {
452
+ "patterns": [
453
+ {
454
+ "captures": {
455
+ "1": {
456
+ "name": "punctuation.definition.entity.astro"
457
+ },
458
+ "912": {
459
+ "name": "punctuation.definition.entity.astro"
460
+ }
461
+ },
462
+ "match": "(?x)\n(&)\t(?=[a-zA-Z])\n(\n(a(s(ymp(eq)?|cr|t)|n(d(slope|d|v|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a(h|c|d|e|f|a|g|b))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|e|E|acir)?|elig|f(r)?|w(conint|int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))\n| (B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h(d|u|D|U)?|times|H(d|u|D|U)?|d(R|l|r|L)|u(R|l|r|L)|plus|D(R|l|r|L)|v(R|h|H|l|r|L)?|U(R|l|r|L)|V(R|h|H|l|r|L)?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1(2|4)|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))\n| (c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr(l|r)|p(s|c(up|ap)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w(conint|int)|lubs(uit)?|a(cute|p(s|c(up|ap)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly(DoubleQuote|Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))\n| (d(s(c(y|r)|trok|ol)|har(l|r)|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up(DownArrow|Arrow)|VerticalBar|L(ong(RightArrow|Left(RightArrow|Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))\n| (e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t(h|a)|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(ot|Dot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1(3|4))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty(SmallSquare|VerySmallSquare)|acr)))\n| (f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(ig|lig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1(2|8|3|4|5|6)|78|2(3|5)|3(8|4|5)|45|5(8|6)))))|F(scr|cy|illed(SmallSquare|VerySmallSquare)|o(uriertrf|pf|rAll)|fr))\n| (G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im(e|l)?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(qless|less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l(j|E|a)?|a(cute|p|mma(d)?)|rave|g(g)?|breve))\n| (h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok(leftarrow|rightarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks(earow|warow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))\n| (i(s(cr|in(s(v)?|dot|v|E)?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(nt|int)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f(f|r)|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))\n| (j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))\n| (k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))\n| (l(s(h|cr|trok|im(e|g)?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(il|dil)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i(e|f)?|Par))?|Har|o(ng(left(arrow|rightarrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r(dhar|ushar))|ur(dshar|uhar)|jcy|par(lt)?|e(s(s(sim|dot|eq(qgtr|gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl(d|u)|e)|ac(e|k))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left(arrow|rightarrow)|rightarrow|Left(RightArrow|Arrow))|pf|wer(RightArrow|LeftArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))\n| (M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u(ltimap|map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))\n| (n(s(hort(parallel|mid)|c(cue|e|r)?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|e|E)?|b(set(eq(q)?)?|e|E)?)|par|qsu(pe|be)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v(c|a|b))?|in(dot|v(c|a|b)|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g(t|e))|fr|w(near|ar(hk|r(ow)?)|Arr)|V(dash|Dash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft(arrow|rightarrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr(c|w)?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft(arrow|rightarrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes(SlantEqual|Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi(nSpace|ckSpace)|VeryThinSpace))|Jcy|fr|acute))\n| (o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|f|m)?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly(DoubleQuote|Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))\n| (p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d(o|u)|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))\n| (q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))\n| (R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(il|dil)|aron)|Barr|t(hree|imes|ri(e|f|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng(d|e|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl(d|u)|e)|ac(e|k))|brk)|A(tail|arr|rr)))\n| (s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma(v|f)?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot(e|b)?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u(p|b)|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n(e|E)|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u(p|b)|et(neq(q)?|eq(q)?)?)|n(e|E)|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar(e|f))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort(RightArrow|DownArrow|UpArrow|LeftArrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))\n| (t(s(hcy|c(y|r)|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead(leftarrow|rightarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i(nSpace|ckSpace)|e(ta|refore))|c(y|edil|aron)|S(cy|Hcy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a(u|b)|ripleDot))\n| (u(scr|h(ar(l|r)|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per(RightArrow|LeftArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))\n| (v(s(cr|u(pn(e|E)|bn(e|E)))|nsu(p|b)|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))\n| (w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))\n| (X(scr|i|opf|fr)|x(s(cr|qcup)|h(arr|Arr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l(arr|Arr)|r(arr|Arr)|map))\n| (y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))\n| (z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(nj|j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute))\n)\n(;)\n",
463
+ "name": "constant.character.entity.named.$2.astro"
464
+ },
465
+ {
466
+ "captures": {
467
+ "1": {
468
+ "name": "punctuation.definition.entity.astro"
469
+ },
470
+ "3": {
471
+ "name": "punctuation.definition.entity.astro"
472
+ }
473
+ },
474
+ "match": "(&)#[0-9]+(;)",
475
+ "name": "constant.character.entity.numeric.decimal.astro"
476
+ },
477
+ {
478
+ "captures": {
479
+ "1": {
480
+ "name": "punctuation.definition.entity.astro"
481
+ },
482
+ "3": {
483
+ "name": "punctuation.definition.entity.astro"
484
+ }
485
+ },
486
+ "match": "(&)#[xX][0-9a-fA-F]+(;)",
487
+ "name": "constant.character.entity.numeric.hexadecimal.astro"
488
+ },
489
+ {
490
+ "match": "&(?=[a-zA-Z0-9]+;)",
491
+ "name": "invalid.illegal.ambiguous-ampersand.astro"
492
+ }
493
+ ]
494
+ },
451
495
  "frontmatter": {
452
496
  "begin": "\\A(-{3})\\s*$",
453
497
  "beginCaptures": {
@@ -513,9 +557,17 @@
513
557
  "include": "#interpolation"
514
558
  },
515
559
  {
516
- "begin": "(?<=>|})",
517
- "end": "(?=<|{)",
518
- "name": "text.astro"
560
+ "include": "#entities"
561
+ },
562
+ {
563
+ "begin": "(?<=^|>|})",
564
+ "end": "(?=<|{|$)",
565
+ "name": "text.astro",
566
+ "patterns": [
567
+ {
568
+ "include": "#entities"
569
+ }
570
+ ]
519
571
  }
520
572
  ]
521
573
  },
@@ -1540,7 +1540,7 @@
1540
1540
  ]
1541
1541
  },
1542
1542
  "fenced_code_block_powershell": {
1543
- "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(powershell|ps1|psm1|psd1)((\\s+|:|,|\\{|\\?)[^`]*)?$)",
1543
+ "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(powershell|ps1|psm1|psd1|pwsh)((\\s+|:|,|\\{|\\?)[^`]*)?$)",
1544
1544
  "beginCaptures": {
1545
1545
  "3": {
1546
1546
  "name": "punctuation.definition.markdown"
@@ -15,10 +15,17 @@
15
15
  "include": "#script"
16
16
  },
17
17
  {
18
- "include": "#macros"
18
+ "include": "#attributes"
19
19
  }
20
20
  ],
21
21
  "repository": {
22
+ "=== DEPRECATED_BELOW ===": {
23
+ },
24
+ "abilities": {
25
+ "comment": "Ability",
26
+ "match": "\\b(store|key|drop|copy)\\b",
27
+ "name": "entity.name.type.ability.move"
28
+ },
22
29
  "address": {
23
30
  "begin": "\\b(address)\\b",
24
31
  "beginCaptures": {
@@ -57,39 +64,19 @@
57
64
  }
58
65
  ]
59
66
  },
60
- "address_literal": {
61
- "patterns": [
62
- {
63
- "comment": "16-byte (or shorter) hex address in Libra",
64
- "match": "\\b(0x[A-Fa-f0-9][A-Fa-f0-9]{,31})\\b",
65
- "name": "support.constant.diem.address.move"
66
- },
67
- {
68
- "comment": "Bech32 with wallet1 prefix - Dfinance format",
69
- "match": "\\b(wallet1\\w{38})",
70
- "name": "support.constant.dfinance.address.move"
71
- },
72
- {
73
- "comment": "Named address parameter (as build flag)",
74
- "match": "\\s([@]\\w+)\\b",
75
- "name": "support.constant.named.address.move"
76
- }
77
- ]
78
- },
79
67
  "as": {
80
- "comment": "Keyword as",
68
+ "comment": "Keyword as (highlighted)",
81
69
  "match": "\\b(as)\\b",
82
- "name": "keyword.control.move"
70
+ "name": "keyword.control.as.move"
83
71
  },
84
72
  "as-import": {
85
- "comment": "Keyword as in import statement",
73
+ "comment": "Keyword as in import statement; not highlighted",
86
74
  "match": "\\b(as)\\b",
87
- "name": "meta.import_as.move"
75
+ "name": "meta.import.as.move"
88
76
  },
89
- "assert": {
90
- "comment": "Assert built-in",
91
- "match": "\\b(assert)\\b",
92
- "name": "support.function.assert.move"
77
+ "attributes": {
78
+ "match": "#\\[(?:[\\w0-9=,_\\(\\)\\s\"\\:=]+)\\]",
79
+ "name": "support.constant.attribute.move"
93
80
  },
94
81
  "block": {
95
82
  "begin": "{",
@@ -98,43 +85,7 @@
98
85
  "name": "meta.block.move",
99
86
  "patterns": [
100
87
  {
101
- "include": "#comments"
102
- },
103
- {
104
- "include": "#as"
105
- },
106
- {
107
- "include": "#mut"
108
- },
109
- {
110
- "include": "#let"
111
- },
112
- {
113
- "include": "#types"
114
- },
115
- {
116
- "include": "#assert"
117
- },
118
- {
119
- "include": "#literals"
120
- },
121
- {
122
- "include": "#control"
123
- },
124
- {
125
- "include": "#move_copy"
126
- },
127
- {
128
- "include": "#resource_methods"
129
- },
130
- {
131
- "include": "#module_access"
132
- },
133
- {
134
- "include": "#fun_call"
135
- },
136
- {
137
- "include": "#block"
88
+ "include": "#expr"
138
89
  }
139
90
  ]
140
91
  },
@@ -182,9 +133,6 @@
182
133
  {
183
134
  "include": "#primitives"
184
135
  },
185
- {
186
- "include": "#vector"
187
- },
188
136
  {
189
137
  "include": "#literals"
190
138
  },
@@ -199,94 +147,123 @@
199
147
  "match": "\\b(return|while|loop|if|else|break|continue|abort)\\b",
200
148
  "name": "keyword.control.move"
201
149
  },
202
- "entry_fun": {
203
- "begin": "\\b(entry)\\b",
150
+ "entry": {
151
+ "comment": "entry",
152
+ "match": "\\b(entry)\\b",
153
+ "name": "storage.modifier.visibility.entry.move"
154
+ },
155
+ "enum": {
156
+ "begin": "\\b(enum)\\b",
204
157
  "beginCaptures": {
205
158
  "1": {
206
- "name": "storage.modifier.entry.move"
159
+ "name": "keyword.control.enum.move"
207
160
  }
208
161
  },
209
- "comment": "entry fun name() {}",
162
+ "comment": "Enum syntax",
210
163
  "end": "(?<=})",
211
- "name": "meta.entry_fun.move",
164
+ "name": "meta.enum.move",
212
165
  "patterns": [
213
166
  {
214
167
  "include": "#comments"
215
168
  },
216
169
  {
217
- "comment": "entry native function",
218
- "match": "\\b(native)\\b",
219
- "name": "storage.modifier.native.move"
170
+ "include": "#escaped_identifier"
220
171
  },
221
172
  {
222
- "comment": "entry public function",
223
- "match": "\\b(public)\\b",
224
- "name": "storage.modifier.public.move"
173
+ "include": "#type_param"
225
174
  },
226
175
  {
227
- "include": "#fun"
228
- }
229
- ]
230
- },
231
- "friend": {
232
- "begin": "\\b(friend)\\b",
233
- "beginCaptures": {
234
- "1": {
235
- "name": "storage.modifier.type.move"
236
- }
237
- },
238
- "end": ";",
239
- "name": "meta.friend.move",
240
- "patterns": [
176
+ "comment": "Enum name (ident)",
177
+ "match": "\\b[A-Z][a-zA-Z_0-9]*\\b",
178
+ "name": "entity.name.type.enum.move"
179
+ },
241
180
  {
242
- "include": "#comments"
181
+ "include": "#has"
243
182
  },
244
183
  {
245
- "include": "#address_literal"
184
+ "include": "#abilities"
246
185
  },
247
186
  {
248
- "comment": "Name of the imported module",
249
- "match": "\\b(\\w+)\\b",
250
- "name": "entity.name.type.module.move"
187
+ "begin": "{",
188
+ "end": "}",
189
+ "name": "meta.enum.definition.move",
190
+ "patterns": [
191
+ {
192
+ "include": "#comments"
193
+ },
194
+ {
195
+ "begin": "\\(",
196
+ "end": "\\)",
197
+ "name": "meta.enum.tuple.move",
198
+ "patterns": [
199
+ {
200
+ "include": "#comments"
201
+ },
202
+ {
203
+ "include": "#types"
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "begin": "{",
209
+ "end": "}",
210
+ "name": "meta.enum.struct.move",
211
+ "patterns": [
212
+ {
213
+ "include": "#comments"
214
+ },
215
+ {
216
+ "include": "#escaped_identifier"
217
+ },
218
+ {
219
+ "include": "#types"
220
+ }
221
+ ]
222
+ }
223
+ ]
251
224
  }
252
225
  ]
253
226
  },
254
- "fun": {
227
+ "error_const": {
228
+ "match": "\\b(E[A-Z][A-Za-z_]*)\\b",
229
+ "name": "variable.language.error.move"
230
+ },
231
+ "escaped_identifier": {
232
+ "begin": "`",
233
+ "comment": "Escaped variable",
234
+ "end": "`",
235
+ "name": "variable.language.escaped.move"
236
+ },
237
+ "expr": {
238
+ "comment": "Aggregate Expression",
239
+ "name": "meta.expression.move",
255
240
  "patterns": [
256
241
  {
257
- "include": "#fun_signature"
242
+ "include": "#comments"
258
243
  },
259
244
  {
260
- "include": "#fun_body"
261
- }
262
- ]
263
- },
264
- "fun_body": {
265
- "begin": "{",
266
- "comment": "Function body",
267
- "end": "}",
268
- "name": "meta.fun_body.move",
269
- "patterns": [
245
+ "include": "#escaped_identifier"
246
+ },
270
247
  {
271
- "include": "#comments"
248
+ "include": "#expr_generic"
272
249
  },
273
250
  {
274
- "include": "#import"
251
+ "include": "#error_const"
275
252
  },
276
253
  {
277
- "include": "#as"
254
+ "include": "#packed_field"
278
255
  },
279
256
  {
280
- "include": "#mut"
257
+ "include": "#import"
281
258
  },
282
259
  {
283
- "include": "#let"
260
+ "include": "#as"
284
261
  },
285
262
  {
286
- "include": "#types"
263
+ "include": "#mut"
287
264
  },
288
265
  {
289
- "include": "#assert"
266
+ "include": "#let"
290
267
  },
291
268
  {
292
269
  "include": "#literals"
@@ -307,13 +284,97 @@
307
284
  "include": "#module_access"
308
285
  },
309
286
  {
310
- "include": "#fun_call"
287
+ "include": "#label"
288
+ },
289
+ {
290
+ "include": "#macro_call"
291
+ },
292
+ {
293
+ "include": "#local_call"
294
+ },
295
+ {
296
+ "include": "#method_call"
297
+ },
298
+ {
299
+ "include": "#path_access"
300
+ },
301
+ {
302
+ "match": "\\$(?=[a-z])",
303
+ "name": "keyword.operator.macro.dollar.move"
304
+ },
305
+ {
306
+ "match": "(?<=[$])[a-z][A-Z_0-9a-z]*",
307
+ "name": "variable.other.meta.move"
308
+ },
309
+ {
310
+ "include": "#paren"
311
+ },
312
+ {
313
+ "include": "#block"
314
+ }
315
+ ]
316
+ },
317
+ "expr_generic": {
318
+ "begin": "<(?=([\\sa-z_,0-9A-Z<>]+>))",
319
+ "comment": "< angle brackets >",
320
+ "end": ">",
321
+ "name": "meta.expression.generic.type.move",
322
+ "patterns": [
323
+ {
324
+ "include": "#comments"
325
+ },
326
+ {
327
+ "include": "#types"
328
+ },
329
+ {
330
+ "include": "#expr_generic"
331
+ }
332
+ ]
333
+ },
334
+ "friend": {
335
+ "begin": "\\b(friend)\\b",
336
+ "beginCaptures": {
337
+ "1": {
338
+ "name": "storage.modifier.type.move"
339
+ }
340
+ },
341
+ "end": ";",
342
+ "name": "meta.friend.move",
343
+ "patterns": [
344
+ {
345
+ "include": "#comments"
346
+ },
347
+ {
348
+ "include": "#address_literal"
349
+ },
350
+ {
351
+ "comment": "Name of the imported module",
352
+ "match": "\\b([a-zA-Z][A-Za-z_0-9]*)\\b",
353
+ "name": "entity.name.type.module.move"
354
+ }
355
+ ]
356
+ },
357
+ "fun": {
358
+ "patterns": [
359
+ {
360
+ "include": "#fun_signature"
311
361
  },
312
362
  {
313
363
  "include": "#block"
314
364
  }
315
365
  ]
316
366
  },
367
+ "fun_body": {
368
+ "begin": "{",
369
+ "comment": "Function body",
370
+ "end": "(?<=})",
371
+ "name": "meta.fun_body.move",
372
+ "patterns": [
373
+ {
374
+ "include": "#expr"
375
+ }
376
+ ]
377
+ },
317
378
  "fun_call": {
318
379
  "begin": "\\b(\\w+)\\s*(?:<[\\w\\s,]+>)?\\s*[(]",
319
380
  "beginCaptures": {
@@ -389,6 +450,9 @@
389
450
  {
390
451
  "include": "#comments"
391
452
  },
453
+ {
454
+ "include": "#escaped_identifier"
455
+ },
392
456
  {
393
457
  "match": "\\b(\\w+)\\b",
394
458
  "name": "entity.name.function.move"
@@ -428,6 +492,15 @@
428
492
  }
429
493
  ]
430
494
  },
495
+ "has": {
496
+ "comment": "Has Abilities",
497
+ "match": "\\b(has)\\b",
498
+ "name": "keyword.control.ability.has.move"
499
+ },
500
+ "ident": {
501
+ "match": "\\b([a-zA-Z][A-Z_a-z0-9]*)\\b",
502
+ "name": "meta.identifier.move"
503
+ },
431
504
  "import": {
432
505
  "begin": "\\b(use)\\b",
433
506
  "beginCaptures": {
@@ -441,6 +514,9 @@
441
514
  {
442
515
  "include": "#comments"
443
516
  },
517
+ {
518
+ "include": "#use_fun"
519
+ },
444
520
  {
445
521
  "include": "#address_literal"
446
522
  },
@@ -477,6 +553,11 @@
477
553
  }
478
554
  ]
479
555
  },
556
+ "label": {
557
+ "comment": "Label",
558
+ "match": "'[a-z][a-z_0-9]*",
559
+ "name": "string.quoted.single.label.move"
560
+ },
480
561
  "let": {
481
562
  "comment": "Keyword let",
482
563
  "match": "\\b(let)\\b",
@@ -489,10 +570,22 @@
489
570
  "name": "comment.line.double-slash.move"
490
571
  },
491
572
  "literals": {
573
+ "comment": "Literals supported in Move",
574
+ "name": "meta.literal.move",
492
575
  "patterns": [
493
576
  {
494
- "comment": "Hex literal (still to find out)",
495
- "match": "0x[_a-fA-F0-9]+(?:[iu](?:8|16|32|64|size))?",
577
+ "comment": "base16 address literal",
578
+ "match": "@0x[A-F0-9a-f]+",
579
+ "name": "support.constant.address.base16.move"
580
+ },
581
+ {
582
+ "comment": "named address literal @[ident]",
583
+ "match": "@[a-zA-Z][a-zA-Z_0-9]*",
584
+ "name": "support.constant.address.name.move"
585
+ },
586
+ {
587
+ "comment": "Hex literal",
588
+ "match": "0x[_a-fA-F0-9]+(?:u(?:8|16|32|64|128|256))?",
496
589
  "name": "constant.numeric.hex.move"
497
590
  },
498
591
  {
@@ -500,20 +593,11 @@
500
593
  "match": "(?<!(?:\\w|(?:(?<!\\.)\\.)))[0-9][_0-9]*(?:\\.(?!\\.)(?:[0-9][_0-9]*)?)?(?:[eE][+\\-]?[_0-9]+)?(?:[u](?:8|16|32|64|128|256))?",
501
594
  "name": "constant.numeric.move"
502
595
  },
503
- {
504
- "captures": {
505
- "1": {
506
- "name": "constant.character.move"
507
- }
508
- },
509
- "comment": "Bytearray hex literal",
510
- "match": "\\b(?:h)(\"[a-fA-F0-9]+\")"
511
- },
512
596
  {
513
597
  "begin": "\\bb\"",
514
- "comment": "ASCII Bytestring literal",
598
+ "comment": "vector ascii bytestring literal",
515
599
  "end": "\"",
516
- "name": "meta.ascii_literal.move",
600
+ "name": "meta.vector.literal.ascii.move",
517
601
  "patterns": [
518
602
  {
519
603
  "comment": "Special symbol escape",
@@ -533,28 +617,79 @@
533
617
  ]
534
618
  },
535
619
  {
536
- "captures": {
537
- "1": {
538
- "name": "constant.numeric.hex.move"
620
+ "begin": "x\"",
621
+ "comment": "vector hex literal",
622
+ "end": "\"",
623
+ "name": "meta.vector.literal.hex.move",
624
+ "patterns": [
625
+ {
626
+ "comment": "vector hex literal",
627
+ "match": "[A-Fa-f0-9]+",
628
+ "name": "constant.character.move"
539
629
  }
540
- },
541
- "comment": "vector<u8> as hex literal: x",
542
- "match": "x\"([A-F0-9a-f]+)\"",
543
- "name": "meta.hex_literal.move"
630
+ ]
544
631
  },
545
632
  {
546
- "comment": "Booleans",
633
+ "comment": "bool literal",
547
634
  "match": "\\b(?:true|false)\\b",
548
635
  "name": "constant.language.boolean.move"
549
636
  },
550
637
  {
551
- "include": "#address_literal"
638
+ "begin": "vector\\[",
639
+ "comment": "vector literal (macro?)",
640
+ "end": "\\]",
641
+ "name": "meta.vector.literal.macro.move",
642
+ "patterns": [
643
+ {
644
+ "include": "#expr"
645
+ }
646
+ ]
552
647
  }
553
648
  ]
554
649
  },
555
- "macros": {
556
- "match": "#\\[(?:[\\w0-9=,_\\(\\)\\s\"\\:=]+)\\]",
557
- "name": "support.constant.macro.move"
650
+ "local_call": {
651
+ "comment": "call to a local / imported fun",
652
+ "match": "\\b([a-z][_a-z0-9]*)(?=[<\\(])",
653
+ "name": "entity.name.function.call.local.move"
654
+ },
655
+ "macro": {
656
+ "begin": "\\b(macro)\\b",
657
+ "beginCaptures": {
658
+ "1": {
659
+ "name": "keyword.control.macro.move"
660
+ }
661
+ },
662
+ "comment": "macro fun [ident] {}",
663
+ "end": "(?<=})",
664
+ "name": "meta.macro.move",
665
+ "patterns": [
666
+ {
667
+ "include": "#comments"
668
+ },
669
+ {
670
+ "include": "#fun"
671
+ }
672
+ ]
673
+ },
674
+ "macro_call": {
675
+ "captures": {
676
+ "2": {
677
+ "name": "support.function.macro.move"
678
+ }
679
+ },
680
+ "comment": "Macro fun call",
681
+ "match": "(\\b|\\.)([a-z][A-Za-z0-9_]*)!",
682
+ "name": "meta.macro.call"
683
+ },
684
+ "method_call": {
685
+ "captures": {
686
+ "1": {
687
+ "name": "entity.name.function.call.path.move"
688
+ }
689
+ },
690
+ "comment": "<expr>.[ident]<>?() call",
691
+ "match": "\\.([a-z][_a-z0-9]*)(?=[<\\(])",
692
+ "name": "meta.path.call.move"
558
693
  },
559
694
  "module": {
560
695
  "begin": "\\b(module|spec)\\b",
@@ -578,6 +713,9 @@
578
713
  {
579
714
  "include": "#comments"
580
715
  },
716
+ {
717
+ "include": "#escaped_identifier"
718
+ },
581
719
  {
582
720
  "begin": "(?<=(module|spec))",
583
721
  "comment": "Module namespace / address",
@@ -602,7 +740,19 @@
602
740
  "include": "#comments"
603
741
  },
604
742
  {
605
- "include": "#macros"
743
+ "include": "#attributes"
744
+ },
745
+ {
746
+ "include": "#entry"
747
+ },
748
+ {
749
+ "include": "#public-scope"
750
+ },
751
+ {
752
+ "include": "#public"
753
+ },
754
+ {
755
+ "include": "#native"
606
756
  },
607
757
  {
608
758
  "include": "#import"
@@ -617,13 +767,10 @@
617
767
  "include": "#struct"
618
768
  },
619
769
  {
620
- "include": "#entry_fun"
770
+ "include": "#enum"
621
771
  },
622
772
  {
623
- "include": "#native_fun"
624
- },
625
- {
626
- "include": "#public_fun"
773
+ "include": "#macro"
627
774
  },
628
775
  {
629
776
  "include": "#fun"
@@ -657,39 +804,35 @@
657
804
  "name": "variable.language.move"
658
805
  },
659
806
  "mut": {
660
- "comment": "&mut reference",
661
- "match": "(?<=&)(mut)\\b",
807
+ "comment": "Mutable reference and let mut",
808
+ "match": "\\b(mut)\\b",
662
809
  "name": "storage.modifier.mut.move"
663
810
  },
664
- "native_fun": {
665
- "begin": "\\b(native)\\b",
666
- "beginCaptures": {
667
- "1": {
668
- "name": "storage.modifier.native.move"
669
- }
670
- },
671
- "comment": "Native function",
672
- "end": "(?<=[;}])",
673
- "name": "meta.native_fun.move",
811
+ "native": {
812
+ "comment": "native",
813
+ "match": "\\b(native)\\b",
814
+ "name": "storage.modifier.visibility.native.move"
815
+ },
816
+ "packed_field": {
817
+ "comment": "[ident]: ",
818
+ "match": "[a-z][a-z0-9_]+\\s*:\\s[^:]",
819
+ "name": "meta.struct.field.move"
820
+ },
821
+ "paren": {
822
+ "begin": "\\(",
823
+ "end": "\\)",
824
+ "name": "meta.paren.move",
674
825
  "patterns": [
675
826
  {
676
- "include": "#comments"
677
- },
678
- {
679
- "comment": "native public function",
680
- "match": "\\b(public)\\b",
681
- "name": "storage.modifier.public.move"
682
- },
683
- {
684
- "comment": "native entry function",
685
- "match": "\\b(entry)\\b",
686
- "name": "storage.modifier.entry.move"
687
- },
688
- {
689
- "include": "#fun_signature"
827
+ "include": "#expr"
690
828
  }
691
829
  ]
692
830
  },
831
+ "path_access": {
832
+ "comment": "<expr>.[ident] access",
833
+ "match": "\\.[a-z][_a-z0-9]*\\b",
834
+ "name": "meta.path.access.move"
835
+ },
693
836
  "phantom": {
694
837
  "comment": "Keyword phantom inside type parameters",
695
838
  "match": "\\b(phantom)\\b",
@@ -700,47 +843,23 @@
700
843
  "match": "\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\b",
701
844
  "name": "support.type.primitives.move"
702
845
  },
703
- "public_fun": {
704
- "begin": "\\b(public)\\b",
705
- "beginCaptures": {
706
- "1": {
707
- "name": "storage.modifier.public.move"
708
- }
709
- },
710
- "comment": "Public function",
711
- "end": "(?<=[;}])",
712
- "name": "meta.public_fun.move",
846
+ "public": {
847
+ "comment": "public",
848
+ "match": "\\b(public)\\b",
849
+ "name": "storage.modifier.visibility.public.move"
850
+ },
851
+ "public-scope": {
852
+ "begin": "(?<=(public))\\s*\\(",
853
+ "comment": "public (friend/script/package)",
854
+ "end": "\\)",
855
+ "name": "meta.public.scoped.move",
713
856
  "patterns": [
714
857
  {
715
858
  "include": "#comments"
716
859
  },
717
860
  {
718
- "comment": "Public native function",
719
- "match": "\\b(native)\\b",
720
- "name": "storage.modifier.native.move"
721
- },
722
- {
723
- "comment": "Public entry function",
724
- "match": "\\b(entry)\\b",
725
- "name": "storage.modifier.entry.move"
726
- },
727
- {
728
- "begin": "\\(",
729
- "comment": "Script visibility",
730
- "end": "\\)",
731
- "patterns": [
732
- {
733
- "include": "#comments"
734
- },
735
- {
736
- "comment": "Friend or Script visibility",
737
- "match": "\\b(script|friend)\\b",
738
- "name": "storage.modifier.public.script.move"
739
- }
740
- ]
741
- },
742
- {
743
- "include": "#fun"
861
+ "match": "\\b(friend|script|package)\\b",
862
+ "name": "keyword.control.public.scope.move"
744
863
  }
745
864
  ]
746
865
  },
@@ -945,7 +1064,7 @@
945
1064
  "name": "storage.modifier.type.move"
946
1065
  }
947
1066
  },
948
- "end": "(?<=})",
1067
+ "end": "(?<=[};])",
949
1068
  "name": "meta.struct.move",
950
1069
  "patterns": [
951
1070
  {
@@ -954,37 +1073,64 @@
954
1073
  {
955
1074
  "begin": "(?<=struct)",
956
1075
  "comment": "Struct definition",
957
- "end": "(?={)",
958
- "name": "meta.struct_def.move",
1076
+ "end": "(?=[;{])",
1077
+ "name": "meta.struct.definition.move",
959
1078
  "patterns": [
960
1079
  {
961
1080
  "include": "#comments"
962
1081
  },
963
1082
  {
964
- "comment": "Has Abilities",
965
- "match": "\\b(has)\\b",
966
- "name": "keyword.control.ability.has.move"
1083
+ "include": "#escaped_identifier"
967
1084
  },
968
1085
  {
969
- "comment": "Ability",
970
- "match": "\\b(store|key|drop|copy)\\b",
971
- "name": "entity.name.type.ability.move"
1086
+ "include": "#has"
972
1087
  },
973
1088
  {
974
- "comment": "Struct name",
975
- "match": "\\b(\\w+)\\b",
976
- "name": "entity.name.type.move"
1089
+ "include": "#abilities"
1090
+ },
1091
+ {
1092
+ "comment": "Struct name (ident)",
1093
+ "match": "\\b[A-Z][a-zA-Z_0-9]*\\b",
1094
+ "name": "entity.name.type.struct.move"
1095
+ },
1096
+ {
1097
+ "begin": "\\(",
1098
+ "comment": "Simple struct",
1099
+ "end": "\\)",
1100
+ "name": "meta.struct.paren.move",
1101
+ "patterns": [
1102
+ {
1103
+ "include": "#comments"
1104
+ },
1105
+ {
1106
+ "include": "#types"
1107
+ }
1108
+ ]
977
1109
  },
978
1110
  {
979
1111
  "include": "#type_param"
980
1112
  }
981
1113
  ]
982
1114
  },
1115
+ {
1116
+ "begin": "\\(",
1117
+ "comment": "Simple struct",
1118
+ "end": "\\)",
1119
+ "name": "meta.struct.paren.move",
1120
+ "patterns": [
1121
+ {
1122
+ "include": "#comments"
1123
+ },
1124
+ {
1125
+ "include": "#types"
1126
+ }
1127
+ ]
1128
+ },
983
1129
  {
984
1130
  "begin": "{",
985
1131
  "comment": "Struct body",
986
1132
  "end": "}",
987
- "name": "meta.struct_body.move",
1133
+ "name": "meta.struct.body.move",
988
1134
  "patterns": [
989
1135
  {
990
1136
  "include": "#comments"
@@ -1002,6 +1148,17 @@
1002
1148
  }
1003
1149
  ]
1004
1150
  },
1151
+ "struct_pack": {
1152
+ "begin": "(?<=[A-Za-z0-9_>])\\s*{",
1153
+ "comment": "Struct { field: value... }; identified as generic / ident followed by curly's",
1154
+ "end": "}",
1155
+ "name": "meta.struct.pack.move",
1156
+ "patterns": [
1157
+ {
1158
+ "include": "#comments"
1159
+ }
1160
+ ]
1161
+ },
1005
1162
  "type_param": {
1006
1163
  "begin": "<",
1007
1164
  "comment": "Generic type param",
@@ -1018,9 +1175,7 @@
1018
1175
  "include": "#module_access"
1019
1176
  },
1020
1177
  {
1021
- "comment": "Trait-like condition",
1022
- "match": "\\b(store|drop|key|copy)\\b",
1023
- "name": "entity.name.type.kind.move"
1178
+ "include": "#abilities"
1024
1179
  }
1025
1180
  ]
1026
1181
  },
@@ -1036,7 +1191,7 @@
1036
1191
  },
1037
1192
  {
1038
1193
  "comment": "Capitalized type names",
1039
- "match": "\\b([A-Z][A-Za-z_]+)\\b",
1194
+ "match": "\\b([A-Z][A-Za-z_]*)\\b",
1040
1195
  "name": "entity.name.type"
1041
1196
  },
1042
1197
  {
@@ -1046,23 +1201,39 @@
1046
1201
  }
1047
1202
  ]
1048
1203
  },
1049
- "vector": {
1050
- "begin": "\\b(vector)<",
1204
+ "use_fun": {
1205
+ "begin": "\\b(fun)\\b",
1051
1206
  "beginCaptures": {
1052
1207
  "1": {
1053
- "name": "support.type.vector.move"
1208
+ "name": "storage.modifier.fun.move"
1054
1209
  }
1055
1210
  },
1056
- "end": ">",
1057
- "name": "meta.vector.move",
1211
+ "comment": "use { fun } internals",
1212
+ "end": "(?=;)",
1213
+ "name": "meta.import.fun.move",
1058
1214
  "patterns": [
1059
1215
  {
1060
- "include": "#primitives"
1216
+ "include": "#comments"
1061
1217
  },
1062
1218
  {
1063
- "include": "#vector"
1219
+ "include": "#as-import"
1220
+ },
1221
+ {
1222
+ "comment": "Self keyword",
1223
+ "match": "\\b(Self)\\b",
1224
+ "name": "variable.language.self.use.fun.move"
1225
+ },
1226
+ {
1227
+ "comment": "Function name",
1228
+ "match": "\\b([a-z][a-z_0-9]+)\\b",
1229
+ "name": "entity.name.function.use.move"
1064
1230
  }
1065
1231
  ]
1232
+ },
1233
+ "vector": {
1234
+ "comment": "vector type",
1235
+ "match": "\\b(vector)\\b",
1236
+ "name": "support.type.vector.move"
1066
1237
  }
1067
1238
  },
1068
1239
  "scopeName": "source.move"
package/index.js CHANGED
@@ -152,7 +152,7 @@ export const grammars = [
152
152
  source: 'https://github.com/13xforever/x86_64-assembly-vscode/blob/15c07b12741ac75f5bb6e7701dc7c0d742add8dd/syntaxes/language-x86_64-assembly.tmLanguage',
153
153
  },
154
154
  {
155
- byteSize: 10881,
155
+ byteSize: 23427,
156
156
  categories: [
157
157
  'web',
158
158
  ],
@@ -169,13 +169,13 @@ export const grammars = [
169
169
  'postcss',
170
170
  'tsx',
171
171
  ],
172
- lastUpdate: '2023-12-29T02:14:17Z',
172
+ lastUpdate: '2024-03-13T17:14:29Z',
173
173
  license: 'MIT',
174
174
  licenseUrl: 'https://raw.githubusercontent.com/withastro/language-tools/main/LICENSE',
175
175
  name: 'astro',
176
176
  scopeName: 'source.astro',
177
- sha: '37434ab5ee2149dd74a7c1e800d8c279a0617912',
178
- source: 'https://github.com/withastro/language-tools/blob/37434ab5ee2149dd74a7c1e800d8c279a0617912/packages/vscode/syntaxes/astro.tmLanguage.src.yaml',
177
+ sha: 'db49ff7cbeb2910ddac6ce0b15f3973b72827ccd',
178
+ source: 'https://github.com/withastro/language-tools/blob/db49ff7cbeb2910ddac6ce0b15f3973b72827ccd/packages/vscode/syntaxes/astro.tmLanguage.src.yaml',
179
179
  },
180
180
  {
181
181
  byteSize: 5303,
@@ -1489,7 +1489,7 @@ export const grammars = [
1489
1489
  aliases: [
1490
1490
  'md',
1491
1491
  ],
1492
- byteSize: 53837,
1492
+ byteSize: 53842,
1493
1493
  categories: [
1494
1494
  'web',
1495
1495
  'markup',
@@ -1549,13 +1549,13 @@ export const grammars = [
1549
1549
  'bibtex',
1550
1550
  'html-derivative',
1551
1551
  ],
1552
- lastUpdate: '2023-12-13T12:08:01Z',
1552
+ lastUpdate: '2024-03-13T17:25:52Z',
1553
1553
  license: 'MIT',
1554
1554
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
1555
1555
  name: 'markdown',
1556
1556
  scopeName: 'text.html.markdown',
1557
- sha: '3c86ede5f554f6e196c832394e126b291a1de606',
1558
- source: 'https://github.com/microsoft/vscode/blob/3c86ede5f554f6e196c832394e126b291a1de606/extensions/markdown-basics/syntaxes/markdown.tmLanguage.json',
1557
+ sha: '6b0a582e595fab7da09fcd267f4f8248e7ec437e',
1558
+ source: 'https://github.com/microsoft/vscode/blob/6b0a582e595fab7da09fcd267f4f8248e7ec437e/extensions/markdown-basics/syntaxes/markdown.tmLanguage.json',
1559
1559
  },
1560
1560
  {
1561
1561
  byteSize: 18747,
@@ -1689,15 +1689,15 @@ export const grammars = [
1689
1689
  source: 'https://github.com/modularml/mojo-syntax/blob/a2241dda06d9a20503394c3affa606114d007049/syntaxes/mojo.syntax.json',
1690
1690
  },
1691
1691
  {
1692
- byteSize: 14150,
1692
+ byteSize: 16667,
1693
1693
  displayName: 'Move',
1694
- lastUpdate: '2023-05-22T07:53:33Z',
1694
+ lastUpdate: '2024-03-13T20:37:02Z',
1695
1695
  license: 'MIT',
1696
1696
  licenseUrl: 'https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE',
1697
1697
  name: 'move',
1698
1698
  scopeName: 'source.move',
1699
- sha: 'de9244e81505ff9154dc9422dbce434ac86fb981',
1700
- source: 'https://github.com/damirka/move-syntax/blob/de9244e81505ff9154dc9422dbce434ac86fb981/syntaxes/move.tmLanguage.json',
1699
+ sha: 'ec2884fdaee236db42d8999e5f9cd2923e317f8b',
1700
+ source: 'https://github.com/damirka/move-syntax/blob/ec2884fdaee236db42d8999e5f9cd2923e317f8b/syntaxes/move.tmLanguage.json',
1701
1701
  },
1702
1702
  {
1703
1703
  aliases: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "packageManager": "pnpm@8.15.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",