github-linguist 9.6.0 → 9.8.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.
- checksums.yaml +4 -4
- data/grammars/documentation.markdown.injection.haxe.json +1 -1
- data/grammars/gno.mod.json +1 -0
- data/grammars/inline.hbs.json +1 -1
- data/grammars/inline.template.json +1 -1
- data/grammars/markdown.glimmer.codeblock.json +1 -1
- data/grammars/markdown.goose.codeblock.json +1 -0
- data/grammars/markdown.nextflow.codeblock.json +1 -0
- data/grammars/markdown.ocaml.codeblock.json +1 -0
- data/grammars/markdown.reason.codeblock.json +1 -0
- data/grammars/markdown.roc.codeblock.json +1 -0
- data/grammars/nextflow.interpolation.injection.json +1 -0
- data/grammars/nextflow.script.injection.json +1 -0
- data/grammars/source.abl.json +1 -1
- data/grammars/source.abnf.json +1 -1
- data/grammars/source.action.menhir.json +1 -0
- data/grammars/source.aleo.json +1 -0
- data/grammars/source.ampl.dat.json +1 -0
- data/grammars/source.ampl.json +1 -1
- data/grammars/source.apl.json +1 -1
- data/grammars/source.armasm.json +1 -0
- data/grammars/source.astro.json +1 -1
- data/grammars/source.astylerc.json +1 -0
- data/grammars/source.atd.json +1 -0
- data/grammars/source.avisynth.json +1 -0
- data/grammars/source.baml.json +1 -1
- data/grammars/source.bbcbasic.json +1 -0
- data/grammars/source.bend.json +1 -0
- data/grammars/source.bird2.json +1 -0
- data/grammars/source.blueprint.json +1 -0
- data/grammars/source.bnd.json +1 -1
- data/grammars/source.bsl.json +1 -1
- data/grammars/source.c++.json +1 -1
- data/grammars/source.c.json +1 -1
- data/grammars/source.c3.json +1 -1
- data/grammars/source.carbon.json +1 -0
- data/grammars/source.cedar.json +1 -0
- data/grammars/source.cj.json +1 -1
- data/grammars/source.cl.json +1 -1
- data/grammars/source.clar.json +1 -1
- data/grammars/source.cmake.json +1 -1
- data/grammars/source.cmd.json +1 -1
- data/grammars/source.cmhg.json +1 -0
- data/grammars/source.comment-string.wesl.json +1 -1
- data/grammars/source.comment-string.wgsl.json +1 -1
- data/grammars/source.compact.json +1 -0
- data/grammars/source.cram.json +1 -0
- data/grammars/source.cs.json +1 -1
- data/grammars/source.csswg.json +1 -1
- data/grammars/source.cue.json +1 -1
- data/grammars/source.curlrc.json +1 -1
- data/grammars/source.dart.json +1 -1
- data/grammars/source.dataflex.json +1 -0
- data/grammars/source.dax.json +1 -0
- data/grammars/source.dds.dspf.json +1 -1
- data/grammars/source.dds.icff.json +1 -1
- data/grammars/source.dds.lf.json +1 -1
- data/grammars/source.dds.pf.json +1 -1
- data/grammars/source.dds.prtf.json +1 -1
- data/grammars/source.deq.json +1 -0
- data/grammars/source.ditroff.desc.json +1 -1
- data/grammars/source.dm.json +1 -1
- data/grammars/source.dml.json +1 -0
- data/grammars/source.dune-project.json +1 -0
- data/grammars/source.dune-workspace.json +1 -0
- data/grammars/source.dune.json +1 -1
- data/grammars/source.easycrypt.json +1 -0
- data/grammars/source.emacs.lisp.json +1 -1
- data/grammars/source.env-spec.json +1 -0
- data/grammars/source.erlang.json +1 -1
- data/grammars/source.ets.json +1 -0
- data/grammars/source.fift.json +1 -0
- data/grammars/source.flix.json +1 -1
- data/grammars/source.fpp.json +1 -0
- data/grammars/source.func.json +1 -0
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.gedcom.json +1 -1
- data/grammars/source.gitconfig.json +1 -1
- data/grammars/source.gjs.json +1 -1
- data/grammars/source.gno.json +1 -0
- data/grammars/source.goose.json +1 -0
- data/grammars/source.graphql.json +1 -1
- data/grammars/source.gts.json +1 -1
- data/grammars/source.hack.json +1 -1
- data/grammars/source.hx.json +1 -1
- data/grammars/source.hxml.json +1 -1
- data/grammars/source.ice.json +1 -1
- data/grammars/source.ifc.json +1 -0
- data/grammars/source.indent-profile.json +1 -0
- data/grammars/source.ink.json +1 -1
- data/grammars/source.jac.json +1 -1
- data/grammars/source.jass.json +1 -0
- data/grammars/source.julia.console.json +1 -1
- data/grammars/source.julia.json +1 -1
- data/grammars/source.kcl.json +1 -1
- data/grammars/source.kerml.json +1 -0
- data/grammars/source.koka.json +1 -1
- data/grammars/source.leo.json +1 -1
- data/grammars/source.liquidsoap.json +1 -1
- data/grammars/source.lobster.json +1 -0
- data/grammars/source.logos.json +1 -1
- data/grammars/source.lsf.json +1 -0
- data/grammars/source.luau.json +1 -1
- data/grammars/source.lumscript.json +1 -0
- data/grammars/source.m2.json +1 -1
- data/grammars/source.maple.json +1 -0
- data/grammars/source.metafont.json +1 -0
- data/grammars/source.metapost.json +1 -0
- data/grammars/source.mi.json +1 -1
- data/grammars/source.mo.json +1 -1
- data/grammars/source.mojo.json +1 -1
- data/grammars/source.moonbit.config.json +1 -1
- data/grammars/source.moonbit.json +1 -1
- data/grammars/source.ms.json +1 -0
- data/grammars/source.nextflow-config.json +1 -0
- data/grammars/source.nextflow-groovy.json +1 -1
- data/grammars/source.nextflow-log.json +1 -0
- data/grammars/source.nextflow.json +1 -1
- data/grammars/source.nim.json +1 -1
- data/grammars/source.nushell.json +1 -1
- data/grammars/source.ocaml.META.json +1 -0
- data/grammars/source.ocaml.interface.json +1 -0
- data/grammars/source.ocaml.json +1 -1
- data/grammars/source.ocaml.menhir.json +1 -0
- data/grammars/source.ocaml.merlin.json +1 -0
- data/grammars/source.ocaml.mlx.json +1 -0
- data/grammars/source.ocaml.oasis.json +1 -0
- data/grammars/source.ocaml.ocamlbuild.json +1 -0
- data/grammars/source.ocaml.ocamldoc.json +1 -0
- data/grammars/source.ocaml.ocamlformat.json +1 -0
- data/grammars/source.ocaml.ocamllex.json +1 -0
- data/grammars/source.ocaml.opam-install.json +1 -0
- data/grammars/source.ocaml.opam.json +1 -0
- data/grammars/source.openqasm.json +1 -1
- data/grammars/source.opy.json +1 -1
- data/grammars/source.paperspecs.json +1 -0
- data/grammars/source.pkl.json +1 -1
- data/grammars/source.pl.json +1 -0
- data/grammars/source.pnlgrp.json +1 -1
- data/grammars/source.prisma.json +1 -1
- data/grammars/source.qsharp.json +1 -1
- data/grammars/source.quint.json +1 -1
- data/grammars/source.rarlist.json +1 -0
- data/grammars/source.rascal.json +1 -1
- data/grammars/source.rascript.json +1 -1
- data/grammars/source.reason.json +1 -1
- data/grammars/source.rego.json +1 -1
- data/grammars/source.rhai.json +1 -0
- data/grammars/source.roc.json +1 -1
- data/grammars/source.ron.json +1 -1
- data/grammars/source.rpg.json +1 -1
- data/grammars/source.rpgle.json +1 -1
- data/grammars/source.rpm-spec.json +1 -1
- data/grammars/source.rust.json +1 -1
- data/grammars/source.scala.json +1 -1
- data/grammars/source.skip.json +1 -0
- data/grammars/source.skript.json +1 -0
- data/grammars/source.slice.json +1 -1
- data/grammars/source.smithy.json +1 -1
- data/grammars/source.spicedb.json +1 -1
- data/grammars/source.stim.json +1 -0
- data/grammars/source.surrealql.json +1 -1
- data/grammars/source.swift.json +1 -1
- data/grammars/source.sysml.json +1 -0
- data/grammars/source.tablegen.json +1 -0
- data/grammars/source.tasm.json +1 -0
- data/grammars/source.tlb.json +1 -0
- data/grammars/source.tolk.json +1 -0
- data/grammars/source.tsp.json +1 -1
- data/grammars/source.tsq.json +1 -0
- data/grammars/source.tsrx.json +1 -0
- data/grammars/source.ucode-template.json +1 -0
- data/grammars/source.ucode.json +1 -0
- data/grammars/source.uiua.json +1 -0
- data/grammars/source.vento.json +1 -1
- data/grammars/source.verse.json +1 -0
- data/grammars/source.veryl.json +1 -0
- data/grammars/source.vespaSchema.json +1 -0
- data/grammars/source.vespaYQL.json +1 -0
- data/grammars/source.vhs.json +1 -0
- data/grammars/source.vim9.json +1 -0
- data/grammars/source.wdl.json +1 -1
- data/grammars/source.webassembly.json +1 -1
- data/grammars/source.wesl.json +1 -1
- data/grammars/source.wgsl.json +1 -1
- data/grammars/source.yaml.salt.json +1 -1
- data/grammars/text.bbcode.json +1 -0
- data/grammars/text.html.cobmd.json +1 -0
- data/grammars/text.html.ember-handlebars.json +1 -1
- data/grammars/text.html.handlebars.json +1 -1
- data/grammars/text.html.jte.json +1 -1
- data/grammars/text.html.markdown.json +1 -0
- data/grammars/text.html.pfm.json +1 -0
- data/grammars/text.html.ss.json +1 -0
- data/grammars/text.html.statamic.json +1 -1
- data/grammars/text.marko.json +1 -1
- data/grammars/text.recfile.json +1 -0
- data/grammars/text.roff.json +1 -1
- data/grammars/text.valve-cfg.json +1 -1
- data/grammars/text.vtt.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/blob_helper.rb +21 -2
- data/lib/linguist/documentation.yml +3 -0
- data/lib/linguist/generated.rb +99 -8
- data/lib/linguist/generic.yml +3 -0
- data/lib/linguist/heuristics.yml +239 -62
- data/lib/linguist/language.rb +5 -9
- data/lib/linguist/languages.yml +610 -30
- data/lib/linguist/languages_data.rb +7965 -0
- data/lib/linguist/lazy_blob.rb +6 -1
- data/lib/linguist/samples.rb +4 -10
- data/lib/linguist/samples_data.rb +203998 -0
- data/lib/linguist/strategy/modeline.rb +0 -1
- data/lib/linguist/vendor.yml +3 -0
- metadata +95 -25
- data/grammars/markdown.bicep.codeblock.json +0 -1
- data/grammars/source.baml-jinja.json +0 -1
- data/grammars/source.camlp4.ocaml.json +0 -1
- data/grammars/source.ocamllex.json +0 -1
- data/grammars/source.ocamlyacc.json +0 -1
- data/grammars/source.reason.hover.type.json +0 -1
- data/grammars/source.scm.json +0 -1
- data/grammars/text.plain.json +0 -1
- data/lib/linguist/languages.json +0 -1
- data/lib/linguist/samples.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"ucode Template","scopeName":"source.ucode-template","patterns":[{"name":"comment.block.ucode-template","begin":"\\{#-?","end":"-?#\\}","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.ucode-template"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.ucode-template"}}},{"contentName":"meta.embedded.block.ucode","begin":"\\{\\{-?","end":"-?\\}\\}","patterns":[{"include":"source.ucode"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.ucode-template"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.ucode-template"}}},{"contentName":"meta.embedded.block.ucode","begin":"\\{%[+-]?","end":"-?%\\}","patterns":[{"include":"source.ucode"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.ucode-template"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.ucode-template"}}},{"include":"text.html.basic"}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"ucode","scopeName":"source.ucode","patterns":[{"include":"#template_blocks"},{"include":"#comments"},{"include":"#regexp"},{"include":"#strings"},{"include":"#numbers"},{"include":"#property_access"},{"include":"#keywords"},{"include":"#operators"},{"include":"#functions"},{"include":"#objects"},{"include":"#variables"}],"repository":{"comments":{"patterns":[{"name":"comment.line.double-slash.ucode","match":"//.*$"},{"name":"comment.block.empty.ucode","match":"/\\*/(?!/)"},{"name":"comment.block.ucode","begin":"/\\*","end":"\\*/"},{"name":"comment.block.template.ucode","begin":"{#","end":"#}"}]},"functions":{"patterns":[{"name":"support.function.builtin.ucode","match":"\\b(print|printf|sprintf|length|substr|split|join|trim|ltrim|rtrim|chr|ord|uc|lc|type|keys|values|push|pop|shift|unshift|index|rindex|require|include|json|match|replace|system|time|sleep|localtime|gmtime|timelocal|timegm|min|max|uniq|b64enc|b64dec|hexenc|hexdec|hex|uchr|iptoarr|arrtoip|int|loadstring|loadfile|wildcard|regexp|assert|call|signal|clock|sourcepath|gc|die|exists|exit|filter|getenv|map|proto|render|reverse|slice|sort|splice|trace|warn)\\b(?=\\s*\\()"},{"name":"entity.name.function.ucode","match":"\\b([a-zA-Z_$][a-zA-Z0-9_$]*)\\s*(?=\\()"}]},"keywords":{"patterns":[{"match":"\\b(default)\\s+(?=as\\b)","captures":{"1":{"name":"variable.other.ucode"}}},{"match":"\\bas\\s+(default)\\b","captures":{"1":{"name":"variable.other.ucode"}}},{"name":"keyword.control.ucode","match":"\\b(if|else|elif|endif|while|endwhile|for|endfor|break|continue|return|try|catch|switch|case|default|in)\\b"},{"name":"storage.type.ucode","match":"\\b(let|const|function|endfunction)\\b"},{"name":"keyword.operator.delete.ucode","match":"\\b(delete)\\b(?!\\s*\\()"},{"name":"keyword.control.module.ucode","match":"\\b(import|export)\\b"},{"name":"constant.language.ucode","match":"\\b(true|false|null|this)\\b"}]},"numbers":{"patterns":[{"name":"constant.numeric.hex.ucode","match":"\\b0[xX][0-9a-fA-F]+\\b"},{"name":"constant.numeric.binary.ucode","match":"\\b0[bB][01]+\\b"},{"name":"constant.numeric.octal.ucode","match":"\\b0[oO][0-7]+\\b"},{"name":"constant.numeric.decimal.ucode","match":"\\b\\d+(\\.\\d+)?([eE][+-]?\\d+)?\\b"}]},"objects":{"patterns":[{"name":"meta.object.literal.ucode","begin":"\\{","end":"\\}","patterns":[{"name":"meta.object.property.ucode","begin":"\\b(try|catch|if|else|while|for|return|break|continue|function|let|const|true|false|null|this|switch|case|default|import|export|in|delete|[a-zA-Z_$][a-zA-Z0-9_$]*)\\s*(?=:)","end":"(?=:)","beginCaptures":{"1":{"name":"variable.other.property.ucode"}}},{"include":"$self"}]}]},"operators":{"patterns":[{"name":"keyword.operator.arithmetic.ucode","match":"(\\+|\\-|\\*|/|%|\\*\\*|\\+\\+|--)"},{"name":"keyword.operator.assignment.ucode","match":"(=|\\+=|\\-=|\\*=|/=|%=|\\*\\*=|\u0026=|\\^=|\\|=|\u003c\u003c=|\u003e\u003e=|\u0026\u0026=|\\|\\|=|\\?\\?=)"},{"name":"keyword.operator.comparison.ucode","match":"(===|!==|==|!=|\u003c|\u003c=|\u003e|\u003e=)"},{"name":"keyword.operator.logical.ucode","match":"(\u0026\u0026|\\|\\||!)"},{"name":"keyword.operator.bitwise.ucode","match":"(\u0026|\\||\\^|~|\u003c\u003c|\u003e\u003e)"},{"name":"keyword.operator.ternary.ucode","match":"(\\?|:)"},{"name":"keyword.operator.optional-chaining.ucode","match":"(\\?\\.)"},{"name":"keyword.operator.nullish-coalescing.ucode","match":"(\\?\\?)"},{"name":"keyword.operator.arrow.ucode","match":"(=\u003e)"}]},"property_access":{"patterns":[{"name":"entity.name.function.method.ucode","match":"(?\u003c=\\.)\\b([a-zA-Z_$][a-zA-Z0-9_$]*)\\s*(?=\\()"},{"name":"variable.other.property.ucode","match":"(?\u003c=\\.)\\b(try|catch|if|else|elif|endif|while|endwhile|for|endfor|break|continue|return|switch|case|default|in|let|const|function|endfunction|delete|import|export|true|false|null|this|[a-zA-Z_$][a-zA-Z0-9_$]*)\\b"}]},"regexp":{"patterns":[{"contentName":"string.regexp.ucode","begin":"(?\u003c=[=(,:;!?\\[]|\\breturn|\\bcase|\u0026\u0026|\\|\\|)\\s*(/(?![/*]))","end":"/[gis]*","patterns":[{"name":"constant.character.escape.regexp.ucode","match":"\\\\."},{"name":"constant.other.character-class.regexp.ucode","begin":"\\[\\^?\\]?","end":"\\]","patterns":[{"name":"constant.character.escape.regexp.ucode","match":"\\\\."}]}],"beginCaptures":{"1":{"name":"string.regexp.ucode"}},"endCaptures":{"0":{"name":"string.regexp.ucode"}}}]},"strings":{"patterns":[{"name":"string.quoted.double.ucode","begin":"\"","end":"\"|((?\u003c!\\\\)$)","patterns":[{"name":"constant.character.escape.ucode","match":"\\\\."}]},{"name":"string.quoted.single.ucode","begin":"'","end":"'|((?\u003c!\\\\)$)","patterns":[{"name":"constant.character.escape.ucode","match":"\\\\."}]},{"name":"string.template.ucode","begin":"`","end":"`","patterns":[{"name":"constant.character.escape.ucode","match":"\\\\."},{"name":"keyword.control.interpolation.ucode","begin":"\\$\\{","end":"\\}","patterns":[{"include":"$self"}]}]}]},"template_blocks":{"patterns":[{"name":"meta.embedded.block.expression.ucode","begin":"{{","end":"}}","patterns":[{"include":"$self"}]},{"name":"meta.embedded.block.statement.ucode","begin":"{%","end":"%}","patterns":[{"include":"$self"}]}]},"variables":{"patterns":[{"name":"variable.other.ucode","match":"\\b[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Uiua","scopeName":"source.uiua","patterns":[{"include":"#comments"},{"include":"#strings-multiline-format"},{"include":"#strings-multiline"},{"include":"#strings-format"},{"include":"#strings-normal"},{"include":"#characters"},{"include":"#labels"},{"include":"#module_delim"},{"include":"#strand"},{"include":"#stack"},{"include":"#noadic"},{"include":"#monadic"},{"include":"#dyadic"},{"include":"#mod1"},{"include":"#mod2"},{"include":"#idents"},{"include":"#numbers"}],"repository":{"characters":{"name":"constant.character.escape","match":"@(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|.)|.)"},"comments":{"name":"comment.line.uiua","match":"(#.*$|$[a-zA-Z]*)"},"dyadic":{"name":"entity.name.function.uiua","match":"[==≠\u003c≤\u003e≥+\\-×\\*⨰⨱÷%◿∨ⁿ↧↥∠ℂ≍⊟⊂⊏⊡↯↙↘↻⤸▽⌕⦷∊⨂⊥⍤⯾]|(?\u003c![a-zA-Z$])(eq(u(a(l(s)?)?)?)?|not (e(q(u(a(l(s)?)?)?)?)?)?|less( (t(h(a(n)?)?)?)?)?|le(s(s( (o(r( (e(q(u(a(l)?)?)?)?)?)?)?)?)?)?)?|greater( (t(h(a(n)?)?)?)?)?|greater o(r( (e(q(u(a(l)?)?)?)?)?)?)?|add|sub(t(r(a(c(t)?)?)?)?)?|multip(l(y)?)?|inn(e(r( (p(r(o(d(u(c(t)?)?)?)?)?)?)?)?)?)?|out(e(r( (p(r(o(d(u(c(t)?)?)?)?)?)?)?)?)?)?|div(i(d(e)?)?)?|mod(u(l(o)?)?)?|or|pow(e(r)?)?|min(i(m(u(m)?)?)?)?|max(i(m(u(m)?)?)?)?|ata(n(g(e(n(t)?)?)?)?)?|com(p(l(e(x)?)?)?)?|gen|mat(c(h)?)?|cou(p(l(e)?)?)?|joi(n)?|sel(e(c(t)?)?)?|pic(k)?|res(h(a(p(e)?)?)?)?|tak(e)?|dro(p)?|rot(a(t(e)?)?)?|ori(e(n(t)?)?)?|kee(p)?|fin(d)?|mas(k)?|mem(b(e(r(o(f)?)?)?)?)?|ind(e(x(i(n)?)?)?)?|bas(e)?|ass(e(r(t)?)?)?|val(i(d(a(t(e)?)?)?)?)?|send|regex|map|has|get|remove|compress|bytes|img|gif|apng|layout|\u0026rs|\u0026rb|\u0026ru|\u0026w|\u0026seek|\u0026fwa|\u0026gifs|\u0026apngs|\u0026tcpsrt|\u0026tcpswt|\u0026udpsml|\u0026ffi|\u0026memcpy|compress|\u0026memcpy|\u0026udpsml|\u0026tcpswt|\u0026tcpsrt|\u0026apngs|layout|remove|\u0026gifs|\u0026seek|bytes|regex|\u0026ffi|\u0026fwa|apng|send|\u0026ru|\u0026rb|\u0026rs|gif|img|get|has|map|gen|\u0026w)(?![a-zA-Z])"},"idents":{"name":"variable.parameter.uiua","match":"\\b[a-zA-Z]+['′″‴]*(₋?[₀₁₂₃₄₅₆₇₈₉⌞⌟]|,`?\\d+)*[!‼]*\\b"},"labels":{"name":"label.uiua","match":"\\$[a-zA-Z]*"},"mod1":{"name":"entity.name.type.uiua","match":"[˙˜⊙⋅⟜⊸⤙⤚◠◡∩/∧\\\\≡⍚⊞⧅⧈⍥⊕⊜⧋◇∪⌅°⌝⍩∂∫]|(?\u003c![a-zA-Z$])(self|bac(k(w(a(r(d)?)?)?)?)?|dip|ga(p)?|on|by|wit(h)?|off|abo(v(e)?)?|bel(o(w)?)?|bot(h)?|dump|red(u(c(e)?)?)?|fol(d)?|sca(n)?|row(s)?|inv(e(n(t(o(r(y)?)?)?)?)?)?|tab(l(e)?)?|tup(l(e(s)?)?)?|st(e(n(c(i(l)?)?)?)?)?|rep(e(a(t)?)?)?|gro(u(p)?)?|par(t(i(t(i(o(n)?)?)?)?)?)?|eve(r(t)?)?|con(t(e(n(t)?)?)?)?|rea(c(h)?)?|obv(e(r(s(e)?)?)?)?|un|ant(i)?|cas(e)?|memo|comptime|spawn|pool|quote|der(i(v(a(t(i(v(e)?)?)?)?)?)?)?|inte(g(r(a(l)?)?)?)?|\u0026rl|\u0026ast|comptime|quote|spawn|\u0026ast|pool|memo|dump|\u0026rl)(?![a-zA-Z])"},"mod2":{"name":"keyword.control.uiua","match":"[⊃⊓⍜⍢⬚⨬⍣⍡]|(?\u003c![a-zA-Z$])(for(k)?|bra(c(k(e(t)?)?)?)?|und(e(r)?)?|do|fil(l)?|sw(i(t(c(h)?)?)?)?|try|pat(t(e(r(n)?)?)?)?|path|recur|recur|path)(?![a-zA-Z])"},"module_delim":{"match":"---"},"monadic":{"name":"string.quoted","match":"[¬±¯`⨪⌵√ₑ∿⌊⌈⁅𝕍⧻△⇡⊢⊣⇌♭¤⋯⍉⍆⍏⍖⊚◴⊛⧆□⋕]|(?\u003c![a-zA-Z$])(not|sig(n)?|neg(a(t(e)?)?)?|rec(i(p(r(o(c(a(l)?)?)?)?)?)?)?|abs(o(l(u(t(e( (v(a(l(u(e)?)?)?)?)?)?)?)?)?)?)?|sqr(t)?|exp(o(n(e(n(t(i(a(l)?)?)?)?)?)?)?)?|sin(e)?|flo(o(r)?)?|cei(l(i(n(g)?)?)?)?|rou(n(d)?)?|multiv(e(c(t(o(r)?)?)?)?)?|len(g(t(h)?)?)?|sha(p(e)?)?|ran(g(e)?)?|fir(s(t)?)?|las(t)?|rev(e(r(s(e)?)?)?)?|des(h(a(p(e)?)?)?)?|fix|bit(s)?|tra(n(s(p(o(s(e)?)?)?)?)?)?|sor(t)?|ris(e)?|fal(l)?|whe(r(e)?)?|ded(u(p(l(i(c(a(t(e)?)?)?)?)?)?)?)?|cla(s(s(i(f(y)?)?)?)?)?|occ(u(r(r(e(n(c(e(s)?)?)?)?)?)?)?)?|box|pars(e)?|wait|recv|tryrecv|hsv|oklch|utf(₈)?|graphemes|type|datetime|fft|json|csv|xlsx|binary|repr|pretty|voxels|\u0026s|\u0026pf|\u0026p|\u0026epf|\u0026ep|\u0026exit|\u0026raw|\u0026var|\u0026runi|\u0026runc|\u0026runs|\u0026cd|\u0026sl|\u0026invk|\u0026cl|\u0026fo|\u0026fc|\u0026fmd|\u0026fde|\u0026ftr|\u0026fe|\u0026fld|\u0026fif|\u0026fras|\u0026frab|\u0026ims|\u0026ap|\u0026tcpl|\u0026tcpa|\u0026tcpc|\u0026tlsc|\u0026tcpsnb|\u0026tcpaddr|\u0026fetch|\u0026udpb|\u0026udpr|\u0026camcap|\u0026memfree|\u0026malloc|graphemes|\u0026memfree|\u0026tcpaddr|datetime|\u0026malloc|\u0026camcap|\u0026tcpsnb|tryrecv|\u0026fetch|voxels|pretty|binary|utf₈|\u0026udpr|\u0026udpb|\u0026tlsc|\u0026tcpc|\u0026tcpa|\u0026tcpl|\u0026frab|\u0026fras|\u0026invk|\u0026runs|\u0026runc|\u0026runi|\u0026exit|oklch|\u0026ims|\u0026fif|\u0026fld|\u0026ftr|\u0026fde|\u0026fmd|\u0026var|\u0026raw|\u0026epf|repr|xlsx|json|type|recv|wait|\u0026ap|\u0026fe|\u0026fc|\u0026fo|\u0026cl|\u0026sl|\u0026cd|\u0026ep|\u0026pf|csv|fft|hsv|\u0026p|\u0026s)(?![a-zA-Z])|⋊[a-zA-Z]*"},"noadic":{"name":"entity.name.tag.uiua","match":"[⚂]|(?\u003c![a-zA-Z$])(rand(o(m)?)?|now|timezone|os|osfamily|arch|dllext|exeext|pathsep|numprocs|\u0026b|\u0026sc|\u0026ts|\u0026args|\u0026clip|\u0026asr|\u0026camlist|\u0026camlist|numprocs|osfamily|timezone|pathsep|exeext|dllext|\u0026clip|\u0026args|\u0026asr|arch|\u0026ts|\u0026sc|now|\u0026b|os)(?![a-zA-Z])"},"numbers":{"name":"constant.numeric.uiua","match":"[`¯]?(\\d+|η|π|τ|∞|eta|pi|tau|inf(i(n(i(t(y)?)?)?)?)?)([./]\\d+|e[+-]?\\d+)?"},"stack":{"match":"[∘◌?∘]|(?\u003c![a-zA-Z$])(id(e(n(t(i(t(y)?)?)?)?)?)?|po(p)?|arg(s)?|id(e(n(t(i(t(y)?)?)?)?)?)?)(?![a-zA-Z])"},"strand":{"name":"comment.line","match":"(_|‿)"},"strings-format":{"name":"constant.character.escape","begin":"\\$\"","end":"\"","patterns":[{"name":"string.quoted","match":"\\\\[\\\\\"0nrtW_]"},{"name":"constant.numeric","match":"(?\u003c!\\\\)_"}]},"strings-multiline":{"name":"constant.character.escape","begin":"\\$ ","end":"$"},"strings-multiline-format":{"name":"constant.character.escape","begin":"\\$\\$ ","end":"$","patterns":[{"name":"constant.numeric","match":"(?\u003c!\\\\)_"}]},"strings-normal":{"name":"constant.character.escape","begin":"\"","end":"\"","patterns":[{"name":"string.quoted","match":"\\\\[\\\\\"0nrtW]"}]}}}
|
data/grammars/source.vento.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Vento","scopeName":"source.vento","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"#front_matter"},{"include":"text.html.basic#core-minus-invalid"},{"name":"meta.tag.other.vento.html.derivative","begin":"(\u003c/?)((?:(?!{{)[^\\s\u003c\u003e])*+)(?\u003c!/)(?={{)","end":"(?: ?/)?\u003e","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"text.html.basic#attribute"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}}},{"include":"text.html.basic#tags-invalid"}],"repository":{"attributes":{"name":"meta.attribute.vento.$0.html","begin":"(?:(?!{{)[^\\x{0020}\"'\u003c\u003e/=\\x{0000}-\\x{001F}\\x{007F}-\\x{009F}\\x{FDD0}-\\x{FDEF}\\x{FFFE}\\x{FFFF}\\x{1FFFE}\\x{1FFFF}\\x{2FFFE}\\x{2FFFF}\\x{3FFFE}\\x{3FFFF}\\x{4FFFE}\\x{4FFFF}\\x{5FFFE}\\x{5FFFF}\\x{6FFFE}\\x{6FFFF}\\x{7FFFE}\\x{7FFFF}\\x{8FFFE}\\x{8FFFF}\\x{9FFFE}\\x{9FFFF}\\x{AFFFE}\\x{AFFFF}\\x{BFFFE}\\x{BFFFF}\\x{CFFFE}\\x{CFFFF}\\x{DFFFE}\\x{DFFFF}\\x{EFFFE}\\x{EFFFF}\\x{FFFFE}\\x{FFFFF}\\x{10FFFE}\\x{10FFFF}])*+(?={{)","end":"(?=\\s*+[^=\\s])","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"text.html.basic#attribute-interior"}],"beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}}},"comment":{"name":"comment.block.vento","begin":"{{#","end":"#}}"},"front_matter":{"name":"meta.embedded.block.yaml","contentName":"source.yaml","begin":"^---[a-zA-Z0-9_-]*\\s*\\n","end":"---\\s*\\n","patterns":[{"include":"source.yaml"}]},"js_code":{"name":"meta.embedded.block.vento source.vento","contentName":"meta.embedded.block.javascript source.js","begin":"{{(-)?\u003e","end":"(-)?}}","patterns":[{"include":"source.js"}]},"template_keyword":{"name":"keyword.vento","match":"/(if|for|set|layout|echo|function|slot|default)\\b|\\b(for|of|if|else\\s+if|else|include|set|layout|echo|function|async\\s+function|import|from|export|await|continue|break|slot|default)\\b"},"template_tag":{"name":"meta.embedded.block.vento source.vento","contentName":"meta.embedded.block.javascript source.js","begin":"{{(-)?","end":"(-)?}}","patterns":[{"include":"#template_keyword"},{"include":"source.js"}],"captures":{"0":{"name":"punctuation.definition.tag.vento"}}}},"injections":{"L:source.vento (meta.tag.metadata | meta.tag.structure | meta.tag.inline | meta.tag.object | meta.tag.other | meta.tag.custom | string) -meta.embedded -comment":{"patterns":[{"include":"source.vento"},{"include":"#attributes"}]}}}
|
|
1
|
+
{"name":"Vento","scopeName":"source.vento","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"#front_matter"},{"include":"text.html.basic#core-minus-invalid"},{"name":"meta.tag.other.vento.html.derivative","begin":"(\u003c/?)((?:(?!{{)[^\\s\u003c\u003e])*+)(?\u003c!/)(?={{)","end":"(?: ?/)?\u003e","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"text.html.basic#attribute"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}}},{"include":"text.html.basic#tags-invalid"}],"repository":{"attributes":{"name":"meta.attribute.vento.$0.html","begin":"(?:(?!{{)[^\\x{0020}\"'\u003c\u003e/=\\x{0000}-\\x{001F}\\x{007F}-\\x{009F}\\x{FDD0}-\\x{FDEF}\\x{FFFE}\\x{FFFF}\\x{1FFFE}\\x{1FFFF}\\x{2FFFE}\\x{2FFFF}\\x{3FFFE}\\x{3FFFF}\\x{4FFFE}\\x{4FFFF}\\x{5FFFE}\\x{5FFFF}\\x{6FFFE}\\x{6FFFF}\\x{7FFFE}\\x{7FFFF}\\x{8FFFE}\\x{8FFFF}\\x{9FFFE}\\x{9FFFF}\\x{AFFFE}\\x{AFFFF}\\x{BFFFE}\\x{BFFFF}\\x{CFFFE}\\x{CFFFF}\\x{DFFFE}\\x{DFFFF}\\x{EFFFE}\\x{EFFFF}\\x{FFFFE}\\x{FFFFF}\\x{10FFFE}\\x{10FFFF}])*+(?={{)","end":"(?=\\s*+[^=\\s])","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"text.html.basic#attribute-interior"}],"beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}}},"comment":{"name":"comment.block.vento","begin":"{{#","end":"#}}"},"front_matter":{"name":"meta.embedded.block.yaml","contentName":"source.yaml","begin":"^---[a-zA-Z0-9_-]*\\s*\\n","end":"---\\s*\\n","patterns":[{"include":"source.yaml"}]},"js_code":{"name":"meta.embedded.block.vento source.vento","contentName":"meta.embedded.block.javascript source.js","begin":"{{(-)?\u003e","end":"(-)?}}","patterns":[{"include":"source.js"}]},"template_keyword":{"name":"keyword.vento","match":"/(if|for|set|layout|echo|function|slot|default)\\b|\\b(for|of|if|else\\s+if|else|include|set|layout|echo|function|async\\s+function|import|from|export|await|continue|break|slot|default)\\b"},"template_tag":{"name":"meta.embedded.block.vento source.vento","contentName":"meta.embedded.block.javascript source.js","begin":"{{(-)?","end":"(-)?}}","patterns":[{"include":"#template_keyword"},{"include":"source.js"}],"captures":{"0":{"name":"punctuation.definition.tag.vento"}}}},"injections":{"L:source.css -comment -string":{"patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"}]},"L:source.vento (meta.tag.metadata | meta.tag.structure | meta.tag.inline | meta.tag.object | meta.tag.other | meta.tag.custom | string) -meta.embedded -comment":{"patterns":[{"include":"source.vento"},{"include":"#attributes"}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Verse","scopeName":"source.verse","patterns":[{"include":"#ListInd"}],"repository":{"Backslash":{"name":"constant.character.escape.verse","match":"\\\\(\\\u003c(?!#)|[rnt'\\\"\\\\{}#\u003c\u003e\u0026~]|$)"},"BlockCmt":{"name":"comment.block.verse","begin":"\u003c#(?!\u003e)","end":"(?\u003c!\u003c)#\u003e","patterns":[{"include":"#BlockCmt"}]},"Braces":{"begin":"[{]","end":"[}]","patterns":[{"include":"#ListInd"}]},"Brackets":{"begin":"\\[","end":"\\]","patterns":[{"include":"#ListInd"}]},"Call":{"patterns":[{"include":"#BlockCmt"},{"include":"#LineCmt"},{"include":"#Num"},{"include":"#Char"},{"include":"#Path"},{"include":"#String"},{"include":"#CodeMarkup"},{"include":"#Keyword"},{"include":"#Ident"},{"include":"#Parens"},{"include":"#Brackets"},{"include":"#Braces"},{"include":"#Specs"}]},"Char":{"patterns":[{"include":"#CharLit"},{"include":"#Char8"},{"include":"#Char32"}]},"Char32":{"name":"string.quoted.single.verse","match":"0u[0-9A-Fa-f]++"},"Char8":{"name":"string.quoted.single.verse","match":"0o[0-9A-Fa-f]++"},"CharLit":{"patterns":[{"include":"#CharLit0"},{"include":"#CharLit1"},{"include":"#CharLitInvalid"}]},"CharLit0":{"name":"string.quoted.single.verse","match":"'(.|$)('(?!')|$)"},"CharLit1":{"begin":"'(?=\\\\(\\\u003c(?!#)|[rnt'\\\"\\\\{}#\u003c\u003e\u0026~]|$)('|$))","end":"'|$","patterns":[{"include":"#Backslash"}],"beginCaptures":{"0":{"name":"string.quoted.single.verse"}},"endCaptures":{"0":{"name":"string.quoted.single.verse"}}},"CharLitInvalid":{"patterns":[{"name":"invalid.verse","match":"'[^']*'?"}]},"CodeMark0":{"begin":"^(?=(\\t| ){0}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){0}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){0}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark1":{"begin":"^(?=(\\t| ){1}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){1}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){1}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark2":{"begin":"^(?=(\\t| ){2}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){2}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){2}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark3":{"begin":"^(?=(\\t| ){3}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){3}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){3}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark4":{"begin":"^(?=(\\t| ){4}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){4}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){4}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark5":{"begin":"^(?=(\\t| ){5}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){5}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){5}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark6":{"begin":"^(?=(\\t| ){6}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){6}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){6}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark7":{"begin":"^(?=(\\t| ){7}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){7}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){7}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMarkup":{"begin":"(^|(?\u003c=[({\\[\\-\\\u0026;,+*/=|:\u003c.@]|-\u003e|=\u003e|\\Win|^in|\\Wis|^is|\\Wdo|^do|\\Wthen|^then|\\Wuntil|^until|\\Welse|^else|\\Wwhere|^where|\\Wof|\\Wreturn|^return|\\Wyield|^yield|\\Wbreak|^break|\\Wcontinue|^continue))([?^\\s]*+)(\u003c(?![/#=\u003e])\\s*([A-Za-z_][A-Za-z0-9_]*)?)","end":"(?\u003c!#\u003e)(?\u003c=\u003e)","patterns":[{"include":"#Call"},{"include":"#MarkupTail1"},{"include":"#MarkupTail2"}],"beginCaptures":{"2":{"name":"keyword.operator.verse"},"3":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},"Contents":{"patterns":[{"include":"#BlockCmt"},{"include":"#LineCmt"},{"include":"#Backslash"},{"include":"#Markup"},{"include":"#Interp"},{"name":"punctuation.definition.tag","match":"~"},{"begin":"(?=\u0026)","end":"$|\\#|\\;","patterns":[{"include":"#ListInd"}],"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},{"name":"text.verse","match":"[\"\\-\\[\\]`!@$%^*()+=|:;',.?/A-Za-z0-9_ ]+"}]},"ContentsInd":{"patterns":[{"include":"#MarkCmt7"},{"include":"#MarkCmt6"},{"include":"#MarkCmt5"},{"include":"#MarkCmt4"},{"include":"#MarkCmt3"},{"include":"#MarkCmt2"},{"include":"#MarkCmt1"},{"include":"#MarkCmt0"},{"include":"#MarkCode7"},{"include":"#MarkCode6"},{"include":"#MarkCode5"},{"include":"#MarkCode4"},{"include":"#MarkCode3"},{"include":"#MarkCode2"},{"include":"#MarkCode1"},{"include":"#MarkCode0"},{"include":"#Contents"}]},"DefineIdent1":{"match":"(^|(?\u003c=[({\\[\\-\\\u0026;,+*/|\u003c=\u003e.]|-\u003e|=\u003e|:\\)|\\Wvar|^var|\\Wref|^ref|\\Walias|^alias|\\Wlive|^live|\\Win|^in|\\Wis|^is|\\Wdo|^do|\\Wthen|^then|\\Wuntil|^until|\\Welse|^else|\\Wover|\\Wwhile|\\Wupon|\\Wnext|\\Wwhere|\\Wof|^of|\\Wat|^at|\\Wreturn|^return|\\Wyield|^yield|\\Wbreak|^break|\\Wcontinue|^continue))([\\s\\^?]*+)([A-Za-z_][A-Za-z0-9_]*+('((?!\u003c#|#\u003e|[\\\\{}\"'])[ -~])*')?+)(?=((?\u003cCall\u003e(?\u003cBlockCmt\u003e\u003c#(\\g\u003cBlockCmt\u003e|(?!#\u003e).)*+#\u003e)|[\\s\\^?]++|(\u0026|-\u003e)\\s*[A-Za-z_][A-Za-z0-9_]*+|-\u003e|'(\\\\.|[^'])*+'|\"(\\\\.|[{](\\g\u003cCall\u003e)*+[}]|\u003c[^#]|#[^\u003e]|[^\\\u003c#\"{}]|\\g\u003cBlockCmt\u003e)*+\"|\u003c(\\g\u003cCall\u003e|[A-Za-z0-9_])*+\u003e|[\\[({](\\g\u003cCall\u003e|\u003c[^#]|[A-Za-z0-9_\\-\\\u0026\\^.%+*/,;\u003e:@=!|?])*+[\\])}]))*+((:|in\\W|is\\W)\\s*+(?![)#]|$)))","captures":{"3":{"name":"entity.name.function.verse"}}},"DefineIdent2":{"match":"(?\u003c=\\Wvar|^var|\\Wref|^ref|\\Walias|^alias|\\Wlive|^live)([\\s\\^?]*+)([A-Za-z_][A-Za-z0-9_]*+)(?=((?\u003cCall\u003e(?\u003cBlockCmt\u003e\u003c#(\\g\u003cBlockCmt\u003e|(?!#\u003e).)*+#\u003e)|[\\s\\^?]++|(\u0026|-\u003e)\\s*[A-Za-z_][A-Za-z0-9_]*+|-\u003e|'(\\\\.|[^'])*+'|\"(\\\\.|[{](\\g\u003cCall\u003e)*+[}]|\u003c[^#]|#[^\u003e]|[^\\\u003c#\"{}]|\\g\u003cBlockCmt\u003e)*+\"|\u003c(\\g\u003cCall\u003e|[A-Za-z0-9_])*+\u003e|[\\[({](\\g\u003cCall\u003e|\u003c[^#]|[A-Za-z0-9_\\-\\\u0026\\^.%+*/,;\u003e:@=!|?])*+[\\])}]))*+=)","captures":{"2":{"name":"entity.name.function.verse"}}},"EatIndCmt":{"name":"comment.block.verse","begin":"\u003c#\u003e","end":"$","patterns":[{"include":"#BlockCmt"}]},"Ident":{"name":"variable.verse","match":"[.]?[A-Za-z_][A-Za-z0-9_]*+('((?!\u003c#|#\u003e|[\\\\{}\"'])[ -~])*+')?+"},"In":{"begin":"((?!:[)]):|in(?=\\W)|(?=(var|set|ref|alias|live)\\W))\\s*+(?!#|$)","end":"(=(?!\u003e)|$|(\\+=|-=|\\*=|/=)|(?=:|=\u003e|@|,|;|\\)|\\]|\\}|(over|when|where|while|next|in|is|with|do|until|catch|then|else|of|at)\\W))","patterns":[{"name":"keyword.declaration.verse","match":"(var|set|ref|alias|live)(?=\\W)"},{"include":"#DefineIdent1"},{"include":"#DefineIdent2"},{"include":"#Call"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},"IndCmt0":{"begin":"^(?=(\\t| ){0}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){0}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){0}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt1":{"begin":"^(?=(\\t| ){1}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){1}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){1}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt2":{"begin":"^(?=(\\t| ){2}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){2}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){2}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt3":{"begin":"^(?=(\\t| ){3}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){3}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){3}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt4":{"begin":"^(?=(\\t| ){4}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){4}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){4}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt5":{"begin":"^(?=(\\t| ){5}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){5}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){5}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt6":{"begin":"^(?=(\\t| ){6}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){6}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){6}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt7":{"begin":"^(?=(\\t| ){7}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){7}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){7}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"Interp":{"begin":"\\{","end":"\\}","patterns":[{"include":"#ListInd"}],"beginCaptures":{"0":{"name":"constant.character.escape.verse"}},"endCaptures":{"0":{"name":"constant.character.escape.verse"}}},"Keyword":{"patterns":[{"name":"keyword.operator.logical.verse","match":"(and|or|not)(?=\\W)"},{"name":"punctuation.definition.tag","match":"[:.]\\s*+(?=(#|$))|[.](?=\\s)|@|\u0026"},{"name":"keyword.declaration.verse","match":"(with|do|until|catch|then|else|of|at)(?=\\W)"}]},"LineCmt":{"name":"comment.line.verse","begin":"(?\u003c!\u003c)#(?!\u003e)","end":"$","patterns":[{"include":"#BlockCmt"}]},"List":{"patterns":[{"include":"#Keyword"},{"name":"keyword.control.verse","match":"(return|yield|break|continue)(?=\\W)"},{"name":"keyword.declaration.verse","match":"(is)(?=\\W)"},{"name":"keyword.declaration.verse","match":"(?\u003c=\\w\\s|\\)|\\]|\\})\\s*(over|when|where|while|next)(?=\\W)"},{"include":"#DefineIdent1"},{"include":"#DefineIdent2"},{"include":"#In"},{"name":"keyword.declaration.verse","match":"(in|var|set|ref|alias|live)(?=\\W)"},{"include":"#Call"},{"name":"punctuation.definition.tag","match":":="},{"name":"keyword.operator.verse","match":"[|]|[.][.]|=\u003e|[+\\-*/]="},{"name":"keyword.operator.arithmetic.verse","match":"[+\\-*/]|-\u003e"},{"name":"keyword.operator.comparison.verse","match":"=(?!=)|\u003c\u003e|\u003c=|\u003c|\u003e=|\u003e"},{"name":"punctuation.definition.tag","match":"[;,]"},{"name":"invalid.verse","match":"[`~$\u003e)},\\]\\\\]|#\u003e|[.][0-9]+|!=|=="}]},"ListInd":{"patterns":[{"include":"#CodeMark7"},{"include":"#CodeMark6"},{"include":"#CodeMark5"},{"include":"#CodeMark4"},{"include":"#CodeMark3"},{"include":"#CodeMark2"},{"include":"#CodeMark1"},{"include":"#CodeMark0"},{"include":"#IndCmt7"},{"include":"#IndCmt6"},{"include":"#IndCmt5"},{"include":"#IndCmt4"},{"include":"#IndCmt3"},{"include":"#IndCmt2"},{"include":"#IndCmt1"},{"include":"#IndCmt0"},{"include":"#List"}]},"MarkCmt0":{"begin":"^(?=(\\t| ){0}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){0}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){0}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt1":{"begin":"^(?=(\\t| ){1}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){1}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){1}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt2":{"begin":"^(?=(\\t| ){2}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){2}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){2}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt3":{"begin":"^(?=(\\t| ){3}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){3}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){3}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt4":{"begin":"^(?=(\\t| ){4}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){4}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){4}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt5":{"begin":"^(?=(\\t| ){5}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){5}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){5}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt6":{"begin":"^(?=(\\t| ){6}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){6}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){6}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt7":{"begin":"^(?=(\\t| ){7}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){7}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){7}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCode0":{"begin":"^(?=(\\t| ){0}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){0}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){0}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode1":{"begin":"^(?=(\\t| ){1}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){1}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){1}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode2":{"begin":"^(?=(\\t| ){2}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){2}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){2}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode3":{"begin":"^(?=(\\t| ){3}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){3}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){3}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode4":{"begin":"^(?=(\\t| ){4}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){4}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){4}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode5":{"begin":"^(?=(\\t| ){5}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){5}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){5}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode6":{"begin":"^(?=(\\t| ){6}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){6}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){6}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode7":{"begin":"^(?=(\\t| ){7}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){7}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){7}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"Markup":{"begin":"(\u003c(?![/#=]))\\s*([A-Za-z_][A-Za-z0-9_]*)?","end":"(?\u003c!#\u003e)(?\u003c=\u003e)","patterns":[{"include":"#Call"},{"include":"#MarkupTail1"},{"include":"#MarkupTail2"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},"MarkupTail1":{"begin":":(?=\u003e)|;","end":"\u003e","patterns":[{"include":"#ContentsInd"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},"MarkupTail2":{"begin":"\u003e","end":"\u003c/\\s*([A-Za-z_][A-Za-z0-9_]*)?\\s*\u003e","patterns":[{"include":"#ContentsInd"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},"Num":{"patterns":[{"name":"constant.numeric.verse","match":"0x[0-9A-Fa-f]++"},{"name":"constant.numeric.verse","match":"(?!0o|0u)[0-9]++([.][0-9]++)?(e[+-]?[0-9]+)?(%|[A-Za-z_][A-Za-z0-9_]*+)?+","captures":{"3":{"name":"keyword.other.unit.verse"}}}]},"Parens":{"begin":"[(]","end":"[)]","patterns":[{"include":"#ListInd"}]},"Path":{"name":"constant.language.path.verse","match":"(^|(?\u003c=[({\\[\\-\\\u0026;,+*/|\u003c=\u003e.]|-\u003e|=\u003e|:\\)|\\Wvar|^var|\\Wref|^ref|\\Walias|^alias|\\Wlive|^live|\\Win|^in|\\Wis|^is|\\Wdo|^do|\\Wthen|^then|\\Wuntil|^until|\\Welse|^else|\\Wover|\\Wwhile|\\Wupon|\\Wnext|\\Wwhere|\\Wof|^of|\\Wat|^at|\\Wreturn|^return|\\Wyield|^yield|\\Wbreak|^break|\\Wcontinue|^continue))([\\s\\^?]*+)(?\u003cPath\u003e(/[A-Za-z0-9_][A-Za-z0-9_\\-.]*+(@[A-Za-z0-9_][A-Za-z0-9_\\-.]*+)?+)(/([(]\\g\u003cPath\u003e:[)])?+[A-Za-z_][A-Za-z0-9_]*+('((?!\u003c#|#\u003e|[\\\\{}\"'])[ -~])*')?+)*+)"},"Special":{"patterns":[{"include":"#Backslash"},{"include":"#BlockCmt"}]},"Specs":{"name":"punctuation.definition.tag","match":"\u003c(?![=#\u003e])(?\u003cCall\u003e(?\u003cBlockCmt\u003e\u003c#(\\g\u003cBlockCmt\u003e|(?!#\u003e).)*+#\u003e)|[\\s\\^\\\u0026?]|(?!(and\\W|or\\W|not\\W|where\\W|in\\W|is\\W|of\\W|at\\W))[A-Za-z_][A-Za-z0-9_]*+|[0-9/][A-Za-z0-9_.@]++|'(\\\\.|[^'])*+'|\"(\\\\.|[{](\\g\u003cCall\u003e)*+[}]|\u003c[^#]|#[^\u003e]|[^\\\u003c#\"{}])*+\"|\u003c\\g\u003cCall\u003e*+\u003e|[\\[{(](\\g\u003cCall\u003e|\u003c[^#]|[\\-\\\u0026\\^.%+*/,;\u003e:@=!|?])*+[\\]})])*+\u003e"},"String":{"begin":"\"","end":"(\"|$)","patterns":[{"include":"#Interp"},{"include":"#Special"},{"name":"string.quoted.double.verse","match":"[\\-\\[\\]\\\u0026`~!@#$%^*()+=|:;',.?/A-Za-z0-9_ ]++"}],"beginCaptures":{"0":{"name":"string.quoted.double.verse"}},"endCaptures":{"0":{"name":"string.quoted.double.verse"}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Veryl","scopeName":"source.veryl","patterns":[{"include":"#declarations"},{"include":"#imports"},{"include":"#generics"},{"include":"#keywords"},{"include":"#storages"},{"include":"#strings"},{"include":"#comments"},{"include":"#numbers"},{"include":"#operators"},{"include":"#identifiers"}],"repository":{"comments":{"patterns":[{"name":"comment.block.veryl","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.veryl"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.veryl"}}},{"name":"comment.line.double-slash.veryl","begin":"//","end":"$\\n?","beginCaptures":{"0":{"name":"punctuation.definition.comment.veryl"}}}]},"declarations":{"patterns":[{"begin":"(?\u003c![a-zA-Z0-9_$])module(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.type.module.veryl"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])interface(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.type.interface.veryl"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])package(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.type.namespace.veryl"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])function(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.function.veryl"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])struct(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.type.struct.veryl"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])enum(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.type.enum.veryl"}}}]},"generics":{"begin":"(::)(\u003c)","end":"(\u003e)|(?=[;{}])","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.separator.namespace.veryl"},"2":{"name":"punctuation.definition.generic.begin.veryl"}},"endCaptures":{"1":{"name":"punctuation.definition.generic.end.veryl"}}},"identifiers":{"patterns":[{"name":"variable.other.identifier.veryl","match":"(?\u003c![a-zA-Z0-9_$])(?:r#|\\$)?[a-zA-Z_][a-zA-Z0-9_$]*"}]},"imports":{"begin":"(?\u003c![a-zA-Z0-9_$])import(?![a-zA-Z0-9_$])","end":";","patterns":[{"name":"punctuation.definition.wildcard.veryl","match":"\\*"},{"include":"$self"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}}},"keywords":{"patterns":[{"name":"keyword.control.veryl","match":"(?\u003c![a-zA-Z0-9_$])(case|default|else|if_reset|if|inside|outside|switch|for|in|repeat|rev|step)(?![a-zA-Z0-9_$])"},{"name":"keyword.other.veryl","match":"(?\u003c![a-zA-Z0-9_$])(embed|enum|function|include|interface|modport|module|package|proto|pub|struct|union|unsafe|alias|always_comb|always_ff|assign|as|bind|block|connect|const|final|gen|import|initial|inst|let|mixin|param|return|break|type|var|false|lsb|msb|reset_active|reset_inactive|true)(?![a-zA-Z0-9_$])"}]},"numbers":{"patterns":[{"name":"constant.numeric.integer.veryl","match":"(?\u003c![a-zA-Z0-9_$])(?:[0-9]+(?:_[0-9]+)*)?'(?:s?[bodh][0-9a-fA-FxzXZ]+(?:_[0-9a-fA-FxzXZ]+)*|[01xzXZ])(?![a-zA-Z0-9_$])"},{"name":"constant.numeric.float.veryl","match":"(?\u003c![a-zA-Z0-9_$])[0-9]+(?:_[0-9]+)*\\.[0-9]+(?:_[0-9]+)*(?:[eE][+-]?[0-9]+(?:_[0-9]+)*)?(?![a-zA-Z0-9_$])"},{"name":"constant.numeric.integer.veryl","match":"(?\u003c![a-zA-Z0-9_$])[0-9]+(?:_[0-9]+)*(?![a-zA-Z0-9_$])"}]},"operators":{"patterns":[{"name":"punctuation.separator.namespace.veryl","match":"::"},{"name":"keyword.operator.veryl","match":"\u003c\u003c\u003c=|\u003e\u003e\u003e=|\u003c\u003c=|\u003e\u003e=|\u003c\u003c\u003c|\u003e\u003e\u003e|\u003c\u003c|\u003e\u003e|==\\?|!=\\?|==|!=|\u003c=|\u003e=|\u003c:|\u003e:|\u003c\u003e|-\u003e|\u003c-|\\+:|-:|\\.\\.=|\\.\\.|\\*\\*|\\|\\||\u0026\u0026|~[\u0026|^]|[+*/%\u0026|^\\-]=|[=+*/%\u0026|^~!?\\-]"}]},"storages":{"patterns":[{"name":"storage.type.veryl","match":"(?\u003c![a-zA-Z0-9_$])(bit|bbool|lbool|clock|clock_posedge|clock_negedge|f32|f64|i8|i16|i32|i64|logic|reset|reset_async_high|reset_async_low|reset_sync_high|reset_sync_low|signed|string|tri|p8|p16|p32|p64|u8|u16|u32|u64)(?![a-zA-Z0-9_$])"},{"name":"storage.modifier.veryl","match":"(?\u003c![a-zA-Z0-9_$])(converse|inout|input|output|same)(?![a-zA-Z0-9_$])"}]},"strings":{"name":"string.quoted.double.veryl","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.veryl","match":"\\\\."}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Vespa Schema","scopeName":"source.vespaSchema","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#explanation-block"},{"include":"#explanation-inline"},{"include":"#tensor-type"},{"include":"#indexing-block"},{"include":"#indexing-inline"},{"include":"#expression-block"},{"include":"#expression-inline"},{"include":"#feature-list-block"},{"include":"#feature-list-inline"},{"include":"#rank-properties-block"},{"include":"#match-block"},{"include":"#summary-block"},{"include":"#enum-value-inline"},{"include":"#container-type"},{"include":"#primitive-type"},{"include":"#numeric-literal"},{"include":"#boolean-constants"},{"include":"#declarations"},{"include":"#file-path"},{"include":"#schema-keywords"},{"include":"#user-type"},{"include":"#assignment-operator"},{"include":"#schema-functions"},{"include":"#schema-enum-members"},{"include":"#variable-reference"},{"include":"#punctuation"}],"repository":{"assignment-operator":{"name":"keyword.operator.assignment.vespa","match":"[+\\-*/]?="},"boolean-constants":{"name":"support.type.vespa","match":"\\b(on(?!-)|off|true|false)\\b"},"comment":{"name":"comment.line.number-sign.vespa","match":"(#).*$","captures":{"1":{"name":"punctuation.definition.comment.vespa"}}},"container-type":{"begin":"\\b(array|weightedset|map|reference|annotationreference)\\s*(\u003c)","end":"(\u003e)","patterns":[{"include":"#container-type"},{"include":"#primitive-type"},{"include":"#tensor-type"},{"name":"punctuation.separator.vespa","match":","},{"name":"entity.name.type.vespa","match":"\\b[a-zA-Z_]\\w*\\b"}],"beginCaptures":{"1":{"name":"storage.type.vespa"},"2":{"name":"punctuation.definition.typeparameters.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.vespa"}}},"declarations":{"patterns":[{"match":"\\b(schema)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(document)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(field)\\s+([a-zA-Z_]\\w*)\\s+(type)\\b","captures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"}}},{"match":"\\b(struct)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(rank-profile)\\s+([a-zA-Z_][\\w-]*)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.function.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"^\\s*(model)\\s+([a-zA-Z_][\\w-]*)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.function.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"begin":"\\b(function)\\s+(?:(inline)\\s+)?([a-zA-Z_]\\w*)\\s*(\\()","end":"(?\u003c=\\})","patterns":[{"name":"punctuation.section.parens.end.vespa","match":"\\)"},{"include":"#comment"},{"name":"meta.block.function-body.vespa","begin":"\\{","end":"\\}","patterns":[{"include":"#expression-block"},{"include":"#expression-inline"},{"include":"#ranking-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.vespa"}}},{"name":"variable.parameter.vespa","match":"[a-zA-Z_]\\w*"},{"name":"punctuation.separator.comma.vespa","match":","}],"beginCaptures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"storage.modifier.vespa"},"3":{"name":"entity.name.function.vespa"},"4":{"name":"punctuation.section.parens.begin.vespa"}}},{"match":"\\b(annotation)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(document-summary)\\s+([a-zA-Z_][\\w-]*)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(fieldset)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(struct-field)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"\\b(import)\\s+(field)\\b","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"keyword.declaration.vespa"}}},{"match":"\\b(constant)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(onnx-model)\\s+([a-zA-Z_][\\w-]*)","captures":{"1":{"name":"keyword.declaration.vespa"}}}]},"enum-value-inline":{"match":"(?\u003c![a-zA-Z0-9_-])(match|rank|rank-type|sorting|bolding|stemming|summary-to|distance-metric|normalizing|function|locale|strength|order)(:\\s*)(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)(?![a-zA-Z0-9_-])","captures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"},"3":{"name":"variable.other.enummember.vespa"}}},"explanation-block":{"name":"meta.block.explanation.vespa","contentName":"comment.block.documentation.vespa","begin":"\\b(explanation)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#explanation-tag"},{"include":"#explanation-braces"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"explanation-braces":{"begin":"\\{","end":"\\}","patterns":[{"include":"#explanation-tag"},{"include":"#explanation-braces"}]},"explanation-inline":{"name":"meta.inline.explanation.vespa","contentName":"comment.line.documentation.vespa","begin":"\\b(explanation)\\s*(:)","end":"$","beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"explanation-tag":{"match":"^\\s*(@input)\\b(?:\\s+(query\\(\\s*[a-zA-Z_]\\w*\\s*\\)|[a-zA-Z_]\\w*))?","captures":{"1":{"name":"storage.type.class.documentation.vespa"},"2":{"name":"variable.parameter.documentation.vespa"}}},"expression-block":{"name":"meta.block.expression.vespa","begin":"\\b(expression)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"expression-inline":{"name":"meta.inline.expression.vespa","begin":"\\b(expression)\\s*(:)","end":"$","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"feature-list-block":{"name":"meta.block.feature-list.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(match-features|summary-features|rank-features|sort-features)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?\\s*(\\{)","end":"(\\})","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"keyword.control.vespa"},"3":{"name":"entity.other.inherited-class.vespa"},"4":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"feature-list-inline":{"name":"meta.inline.feature-list.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(match-features|summary-features|rank-features|sort-features)\\s*(:)","end":"$","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"file-path":{"match":"\\b(file)\\s*:\\s*(\\S+)","captures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"string.unquoted.path.vespa"}}},"indexing-block":{"name":"meta.block.indexing.vespa","begin":"\\b(indexing)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#indexing-language"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"indexing-inline":{"name":"meta.inline.indexing.vespa","begin":"\\b(indexing)\\s*(:)","end":"$","patterns":[{"include":"#indexing-language"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"indexing-language":{"patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"name":"support.type.indexing.vespa","match":"\\b(attribute|summary|index)\\b"},{"name":"keyword.control.indexing.vespa","match":"\\b(for_each_field|select_input|for_each|default|switch|case|else|if)\\b"},{"name":"entity.name.function.indexing.vespa","match":"\\b(exhex16doubleencode|exhex8floatencode|to_epoch_second|exhex16encode|base64decode|base64encode|exhex8encode|get_language|set_language|documentid|get_field|get_value|hexdecode|hexencode|lowercase|normalize|pack_bits|substring|to_double|to_string|to_tensor|binarize|generate|hostname|to_array|to_float|tokenize|flatten|get_var|set_var|to_bool|to_byte|to_long|to_wset|random|to_int|to_pos|to_uri|chunk|embed|input|ngram|split|echo|hash|join|trim|abs|now)\\b"},{"name":"keyword.operator.pipe.indexing.vespa","match":"\\|"},{"include":"#punctuation"}]},"match-block":{"name":"meta.block.match.vespa","begin":"\\b(match)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#enum-value-inline"},{"name":"variable.other.enummember.vespa","match":"\\b(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)\\b"},{"include":"#schema-keywords"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"numeric-literal":{"patterns":[{"name":"constant.numeric.vespa","match":"\\b(infinity)\\b"},{"name":"constant.numeric.float.vespa","match":"(?\u003c![a-zA-Z_0-9])(-?\\d+\\.\\d*(?:[eE][+-]?\\d+)?[fFdD]?)\\b"},{"name":"constant.numeric.integer.vespa","match":"(?\u003c![a-zA-Z_0-9])(-?(?:0[xX][0-9a-fA-F]+|\\d+)[lL]?)\\b"}]},"primitive-type":{"name":"support.type.vespa","match":"\\b(int|byte|bool|string|double|float|long|position|tag|predicate)\\b"},"punctuation":{"patterns":[{"name":"punctuation.section.block.begin.vespa","match":"\\{"},{"name":"punctuation.section.block.end.vespa","match":"\\}"},{"name":"punctuation.separator.colon.vespa","match":":"},{"name":"punctuation.separator.comma.vespa","match":","},{"name":"punctuation.separator.dot.vespa","match":"\\."}]},"rank-properties-block":{"name":"meta.block.rank-properties.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(rank\\-properties)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#primitive-type"},{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"ranking-expression":{"patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#tensor-type"},{"include":"#primitive-type"},{"include":"#variable-reference"},{"name":"keyword.control.ranking.vespa","match":"\\b(euclidean_distance|cosine_similarity|map_subspaces|l1_normalize|l2_normalize|unpack_bits|cell_cast|xw_plus_b|default|softmax|argmax|argmin|concat|expand|matmul|median|random|reduce|rename|switch|tensor|count|false|merge|range|case|diag|join|prod|true|avg|map(?!\\s*\u003c)|max|min|sum|if|in)\\b"},{"name":"entity.name.function.ranking.vespa","match":"\\b(filter_subspaces|cell_order|hamming|sigmoid|square|atan2|floor|isNan|ldexp|log10|round|acos|asin|atan|ceil|cosh|fabs|fmod|relu|sign|sinh|sqrt|tanh|abs|bit|cos|elu|erf|exp|log|pow|sin|tan|top|f)\\b"},{"name":"entity.name.function.rank-feature.vespa","match":"\\b(queryTermDocumentFrequency|tensorFromLabelsWithOffset|tensorFromWeightedSet|nativeAttributeMatch|customTokenInputIds|elementCompleteness|averageFieldLength|randomNormalStable|tokenAttentionMask|elementSimilarity|rankingExpression|tensorFromStructs|nativeDotProduct|nativeFieldMatch|tensorFromLabels|nativeProximity|attributeMatch|distanceToPath|fieldTermMatch|firstPhaseRank|globalSequence|queryTermCount|relevanceScore|textSimilarity|tokenInputIds|itemRawScore|randomNormal|termDistance|tokenTypeIds|elementwise|fieldLength|secondPhase|dotProduct|fieldMatch|firstPhase|matchCount|nativeRank|subqueries|attribute|closeness|freshness|onnxModel|constant|distance|lightgbm|rawScore|closest|foreach|matches|xgboost|random|match|query|bm25|file|onnx|term|age|now)\\s*(?=\\()"},{"name":"entity.name.function.rank-feature.vespa","match":"\\b(reciprocal_rank_fusion|matches_for_labels|normalize_linear|num_docs_indexed|bm25_for_labels|reciprocal_rank)\\s*(?=\\()"},{"name":"keyword.operator.ranking.vespa","match":"[+\\-*/%^.]|\u003e=|\u003c=|!=|==|~=|\u0026\u0026|\\|\\||[\u003c\u003e!]"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.vespa"}}},{"begin":"\\{","end":"\\}","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.vespa"}}},{"name":"support.variable.vespa","match":"\\b[a-zA-Z_]\\w*\\b"},{"include":"#punctuation"}]},"schema-enum-members":{"patterns":[{"name":"variable.other.enummember.vespa","match":"\\b(sequential|parallel)\\b"}]},"schema-functions":{"patterns":[{"name":"entity.name.function.vespa","match":"\\b(query)\\b"}]},"schema-keywords":{"patterns":[{"name":"keyword.control.vespa","match":"(?\u003c![a-zA-Z0-9_-])(target\\-hits\\-max\\-adjustment\\-factor|neighbors\\-to\\-explore\\-at\\-insert|pre\\-post\\-filter\\-tipping\\-point|dense\\-posting\\-list\\-threshold|ignore\\-default\\-rank\\-features|filter\\-first\\-exploration|raw\\-as\\-base64\\-in\\-summary|multi\\-threaded\\-indexing|enable\\-only\\-bit\\-vector|filter\\-first\\-threshold|num\\-threads\\-per\\-search|approximate\\-threshold|create\\-if\\-nonexistent|fast\\-search\\-map\\-field|matched\\-elements\\-only|num\\-search\\-partitions|post\\-filter\\-threshold|rank\\-score\\-drop\\-limit|total\\-keep\\-rank\\-count|max\\-filter\\-coverage|min\\-hits\\-per\\-thread|enable\\-bit\\-vectors|max\\-links\\-per\\-node|select\\-elements\\-by|total\\-rerank\\-count|exploration\\-slack|document\\-summary|evaluation\\-point|exact\\-terminator|filter\\-threshold|max\\-token\\-length|prefetch\\-tensors|summary\\-features|cutoff\\-strategy|distance\\-metric|interop\\-threads|intraop\\-threads|keep\\-rank\\-count|max\\-occurrences|on\\-second\\-phase|rank\\-properties|execution\\-mode|match\\-features|on\\-first\\-phase|remove\\-if\\-zero|stopword\\-limit|termwise\\-limit|total\\-max\\-hits|adjust\\-target|cutoff\\-factor|query\\-command|rank\\-features|sort\\-features|global\\-phase|rank\\-profile|rerank\\-count|second\\-phase|struct\\-field|element\\-gap|enable\\-bm25|fast\\-access|fast\\-search|first\\-phase|lower\\-bound|match\\-phase|upper\\-bound|gpu\\-device|max\\-length|min\\-groups|on\\-summary|onnx\\-model|summary\\-to|fast\\-rank|gram\\-size|rank\\-type|use\\-model|max\\-hits|on\\-match)(?![a-zA-Z0-9_-])"},{"name":"keyword.control.vespa","match":"\\b(significance|linguistics|normalizing|weightedset(?!\\s*\u003c)|annotation|contextual|descending|dictionary|documentid|expression|properties|ascending|attribute|constants|diversity|constant|document(?!-)|fieldset|function|indexing|inherits|override|stemming|strength|bolding|mutable|profile|sorting|summary(?!-)|weakand|fields|import|inline|inputs|locale|mutate|output|schema|search|source|strict|struct(?!-)|weight|alias|arity|field|index|input|macro|match(?!-)|order|paged|title|file|hnsw|rank(?!-)|type|uri|url|as|id)\\b"}]},"string-double":{"name":"string.quoted.double.vespa","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.vespa","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.vespa"}}},"string-single":{"name":"string.quoted.single.vespa","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.vespa","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.vespa"}}},"summary-block":{"name":"meta.block.summary.vespa","begin":"\\b(summary)\\s+(?:([a-zA-Z_]\\w*)\\s+(?:(inherits)\\s+([a-zA-Z_]\\w*)\\s*)?)?(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#boolean-constants"},{"include":"#feature-list-block"},{"include":"#feature-list-inline"},{"include":"#enum-value-inline"},{"name":"variable.other.enummember.vespa","match":"\\b(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)\\b"},{"include":"#schema-keywords"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"},"5":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"tensor-type":{"begin":"\\b(tensor)\\s*(?:(\u003c)|(?=\\())","end":"(\\))|$","patterns":[{"name":"storage.type.tensor.vespa","match":"\\b(float|double|bfloat16|int8)\\b"},{"name":"punctuation.definition.typeparameters.vespa","match":"\u003e"},{"name":"punctuation.definition.typeparameters.vespa","match":"\\("},{"match":"\\[(\\d+)\\]","captures":{"1":{"name":"constant.numeric.integer.vespa"}}},{"name":"punctuation.definition.dimension.vespa","match":"\\{\\}"},{"name":"support.variable.vespa","match":"\\b([a-zA-Z_][a-zA-Z_0-9]*)\\b"},{"name":"punctuation.separator.vespa","match":","}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.definition.typeparameters.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.vespa"}}},"user-type":{"match":"(?\u003c=\\btype\\s)(\\s*[a-zA-Z_]\\w*)","captures":{"1":{"name":"entity.name.type.vespa"}}},"variable-reference":{"name":"variable.language.vespa","match":"(\\$)([a-zA-Z_][a-zA-Z0-9_]*)","captures":{"1":{"name":"punctuation.definition.variable.vespa"},"2":{"name":"variable.language.vespa"}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Vespa YQL","scopeName":"source.vespaYQL","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#grouping"},{"include":"#parameter"},{"include":"#number"},{"include":"#keyword"},{"include":"#operator"},{"include":"#constant"},{"include":"#function-call"},{"include":"#identifier"}],"repository":{"comment":{"patterns":[{"name":"comment.line.double-slash.yql","match":"(//).*$","captures":{"1":{"name":"punctuation.definition.comment.yql"}}},{"name":"comment.line.number-sign.yql","match":"(#).*$","captures":{"1":{"name":"punctuation.definition.comment.yql"}}},{"include":"#comment-block"}]},"comment-block":{"name":"comment.block.yql","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.yql"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.yql"}}},"constant":{"name":"support.type.yql","match":"(?i:(?\u003c!\\w)(false|true)(?![\\w-]))"},"function-call":{"name":"entity.name.function.yql","match":"(?\u003c!\\w)[a-zA-Z_][\\w-]*(?=\\s*\\()"},"grouping":{"name":"meta.grouping.yql","begin":"\\||^(?=\\s*(?:each|all)\\s*\\()","end":"(?=;)|^(?=\\s*(?i:select)(?![\\w-]))","patterns":[{"include":"#grouping-expression"}]},"grouping-bucket":{"begin":"(?\u003c![\\w@])(bucket)\\s*([(\\[\u003c])","end":"[)\\]\u003e]","patterns":[{"include":"#grouping-expression"}],"beginCaptures":{"1":{"name":"entity.name.function.yql"},"2":{"name":"punctuation.section.brackets.begin.yql"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.yql"}}},"grouping-expression":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#grouping-bucket"},{"include":"#grouping-parens"},{"include":"#parameter"},{"name":"constant.numeric.yql","match":"(?\u003c![\\w@])-?inf(?![\\w@])"},{"name":"constant.numeric.yql","match":"(?\u003c![\\w.@])(?:0[xX][0-9a-fA-F]+[lL]?|\\d+(?:\\.\\d*)?(?:[eE][+-]?\\d+)?[fFdD]|\\d+\\.\\d*(?:[eE][+-]?\\d+)?|\\d+[eE][+-]?\\d+|\\d+[lL]?)(?![\\w.@])"},{"match":"(?\u003c![\\w@])(time)(\\.)(secondofminute|minuteofhour|monthofyear|dayofmonth|dayofweek|dayofyear|hourofday|date|year)(?![\\w@])","captures":{"1":{"name":"support.class.yql"},"3":{"name":"entity.name.function.yql"}}},{"match":"(?\u003c![\\w@])(math)(\\.)(acosh|asinh|atanh|floor|hypot|log10|log1p|acos|asin|atan|cbrt|cosh|sinh|sqrt|tanh|cos|exp|log|pow|sin|tan)(?![\\w@])","captures":{"1":{"name":"support.class.yql"},"3":{"name":"entity.name.function.yql"}}},{"match":"(?\u003c![\\w@])(zcurve)(\\.)(x|y)(?![\\w@])","captures":{"1":{"name":"support.class.yql"},"3":{"name":"entity.name.function.yql"}}},{"name":"keyword.control.yql","match":"(?\u003c![\\w@])(each|all|as|at)(?![\\w@])"},{"name":"keyword.operator.wordlike.yql","match":"(?\u003c![\\w@])(istrue|and|not|in|or)(?![\\w@])"},{"name":"support.type.yql","match":"(?\u003c![\\w@])(false|true)(?![\\w@])"},{"name":"entity.name.function.yql","match":"(?\u003c![\\w@])(interpolatedlookup|normalizesubject|docidnsspecific|fixedwidth|predefined|attribute|debugwait|precision|quantiles|relevance|accuracy|todouble|tostring|reverse|summary|argmax|argmin|bucket|filter|output|stddev|strcat|strlen|tolong|xorbit|alias|count|group|order|range|regex|toraw|where|hint|size|sort|add|avg|cat|max|md5|min|mod|mul|neg|now|sub|sum|uca|xor)(?![\\w@])"},{"name":"entity.name.function.yql","match":"(?\u003c![\\w@])[a-zA-Z][\\w@]*(?=\\s*\\()"},{"name":"variable.other.yql","match":"(?\u003c![\\w@])[a-zA-Z][\\w@]*"},{"name":"keyword.operator.yql","match":"%|\\*|\\+|\\-|/|\u003c|=|\u003e"}]},"grouping-parens":{"begin":"\\(","end":"\\)","patterns":[{"include":"#grouping-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.yql"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.yql"}}},"identifier":{"name":"variable.other.yql","match":"(?\u003c!\\w)[a-zA-Z_][\\w-]*"},"keyword":{"name":"keyword.control.yql","match":"(?i:(?\u003c!\\w)(not\\s+matches|contains|not\\s+like|order\\s+by|matches|sources|timeout|offset|select|limit|where|desc|from|like|asc)(?![\\w-]))"},"number":{"patterns":[{"name":"constant.numeric.yql","match":"(?\u003c![\\w.-])-?(?:\\d+\\.\\d*|\\.\\d+|\\d+)(?:[eE][+-]?\\d+)?[lL]?(?![\\w.])"}]},"operator":{"patterns":[{"name":"keyword.operator.wordlike.yql","match":"(?i:(?\u003c!\\w)(not\\s+in|and|in|or)(?![\\w-]))"},{"name":"keyword.operator.yql","match":"!=|\u003c=|\u003e=|!|%|\\*|\\+|\\-|/|\u003c|=|\u003e"}]},"parameter":{"name":"variable.parameter.yql","match":"@[a-zA-Z_][\\w-]*"},"string":{"patterns":[{"name":"string.quoted.double.yql","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.yql","match":"\\\\(?:u[0-9a-fA-F]{4}|.)"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yql"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.yql"}}},{"name":"string.quoted.single.yql","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.yql","match":"\\\\(?:u[0-9a-fA-F]{4}|.)"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yql"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.yql"}}}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"VHS","scopeName":"source.vhs","patterns":[{"include":"#comments"},{"include":"#json"},{"include":"#strings"},{"include":"#require"},{"include":"#output"},{"include":"#operators"},{"include":"#control"},{"include":"#commands"},{"include":"#settings"},{"include":"#units"},{"include":"#numbers"}],"repository":{"commands":{"name":"keyword.control.vhs","match":"\\b(Output|Set|Type|Left|Right|Up|Down|Ctrl|Backspace|Enter|Tab|Space|Sleep|Hide|Show|Escape|Require)\\b"},"comments":{"name":"comment.line.number-sign.vhs","begin":"#","end":"$"},"control":{"name":"keyword.control.vhs","match":"\\bCtrl\\+[A-Z]\\b"},"json":{"name":"string.quoted.other.vhs","match":"\\{.*\\}"},"numbers":{"patterns":[{"name":"constant.numeric.vhs","match":"\\d*\\.?\\d+"}]},"operators":{"patterns":[{"name":"keyword.operator.vhs","match":"@|\\+"}]},"output":{"name":"keyword.control.vhs","match":"Output ([\\.\\-/A-Za-z0-9%]+)","captures":{"1":{"name":"string.quoted.other.vhs"}}},"require":{"name":"keyword.control.vhs","match":"Require ([\\.\\-/A-Za-z0-9%]+)","captures":{"1":{"name":"string.quoted.other.vhs"}}},"settings":{"name":"entity.name.tag.vhs","match":"\\b(FontFamily|FontSize|LoopOffset|Shell|Height|Width|Theme|Padding|TypingSpeed|CursorBlink|PlaybackSpeed|LineHeight|Framerate|LetterSpacing|Margin|MarginFill|WindowBar|WindowBarSize|BorderRadius)\\b"},"strings":{"patterns":[{"name":"string.quoted.single.vhs","begin":"'","end":"'"},{"name":"string.quoted.double.vhs","begin":"\"","end":"\""},{"name":"string.quoted.other.vhs","begin":"`","end":"`"}]},"units":{"match":"(\\d*\\.?\\d+)(ms|s)","captures":{"1":{"patterns":[{"include":"#numbers"}]},"2":{"name":"keyword.other.unit.vhs"}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Vim9 Script","scopeName":"source.vim9","patterns":[{"include":"#vim9script-declaration"},{"include":"#scriptencoding"},{"include":"#comments"},{"include":"#import-statement"},{"include":"#export-statement"},{"include":"#classes"},{"include":"#interfaces"},{"include":"#enums"},{"include":"#autocommands"},{"include":"#commands"},{"include":"#heredoc"},{"include":"#dictionaries"},{"include":"#strings"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#control-keywords"},{"include":"#declaration-keywords"},{"include":"#module-keywords"},{"include":"#functions"},{"include":"#mappings"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}],"repository":{"autocmd-clear":{"patterns":[{"name":"keyword.control.autocmd.clear.vim9","match":"\\b(autocmd!)\\b"}]},"autocmd-command":{"patterns":[{"include":"#autocmd-statement"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#ex-commands"},{"include":"#strings"},{"include":"#vim-expansions"}]},"autocmd-events":{"patterns":[{"name":"entity.name.event.vim9","match":"\\b(BufNewFile|BufReadPre|BufRead|BufReadPost|BufReadCmd|FileReadPre|FileReadPost|FileReadCmd|FilterReadPre|FilterReadPost|StdinReadPre|StdinReadPost|BufWrite|BufWritePre|BufWritePost|BufWriteCmd|FileWritePre|FileWritePost|FileWriteCmd|FileAppendPre|FileAppendPost|FileAppendCmd|FilterWritePre|FilterWritePost|BufAdd|BufCreate|BufDelete|BufWipeout|BufFilePre|BufFilePost|BufEnter|BufLeave|BufWinEnter|BufWinLeave|BufUnload|BufHidden|BufNew|SwapExists|FileType|Syntax|EncodingChanged|TermChanged|VimEnter|GUIEnter|GUIFailed|TermResponse|QuitPre|ExitPre|VimLeavePre|VimLeave|VimResized|FocusGained|FocusLost|CursorHold|CursorHoldI|CursorMoved|CursorMovedI|WinNew|WinEnter|WinLeave|TabEnter|TabLeave|TabNew|TabNewEntered|TabClosed|CmdwinEnter|CmdwinLeave|CmdlineChanged|CmdlineEnter|CmdlineLeave|InsertEnter|InsertChange|InsertLeave|InsertLeavePre|InsertCharPre|TextChanged|TextChangedI|TextChangedP|TextChangedT|TextYankPost|ColorScheme|ColorSchemePre|RemoteReply|QuickFixCmdPre|QuickFixCmdPost|SessionLoadPost|MenuPopup|CompleteDone|CompleteChanged|User|SourcePre|SourcePost|SourceCmd|FileChangedShell|FileChangedShellPost|FileChangedRO|DiffUpdated|DirChanged|DirChangedPre|ShellCmdPost|ShellFilterPost|CmdUndefined|FuncUndefined|SpellFileMissing|TerminalOpen|TerminalWinOpen|SafeState|SafeStateAgain|ModeChanged|WinResized|WinScrolled|OptionSet|Signal|VimSuspend|VimResume)\\b"}]},"autocmd-pattern":{"patterns":[{"name":"constant.language.buffer.vim9","match":"\u003cbuffer\u003e"},{"name":"string.unquoted.pattern.vim9","match":"\\*\\.[a-zA-Z0-9_]+|\\*|[a-zA-Z0-9_./]+\\*[a-zA-Z0-9_./]*"}]},"autocmd-statement":{"patterns":[{"name":"meta.autocmd.vim9","begin":"\\b(autocmd)\\b","end":"$","patterns":[{"include":"#autocmd-events"},{"include":"#autocmd-pattern"},{"include":"#autocmd-command"},{"include":"#comments"}],"beginCaptures":{"1":{"name":"keyword.control.autocmd.vim9"}}}]},"autocommands":{"patterns":[{"name":"meta.augroup.vim9","begin":"\\b(augroup)\\s+([A-Za-z_][A-Za-z0-9_]*)","end":"\\b(augroup)\\s+(END)\\b","patterns":[{"include":"#autocmd-clear"},{"include":"#autocmd-statement"},{"include":"#control-flow"},{"include":"#comments"}],"beginCaptures":{"1":{"name":"keyword.control.augroup.vim9"},"2":{"name":"entity.name.augroup.vim9"}},"endCaptures":{"1":{"name":"keyword.control.augroup.vim9"},"2":{"name":"constant.language.augroup-end.vim9"}}},{"include":"#autocmd-statement"}]},"booleans":{"name":"constant.language.boolean.vim9","match":"\\b(true|false|v:true|v:false|v:null|v:none)\\b"},"builtin-functions":{"patterns":[{"name":"support.function.builtin.vim9","match":"\\b(echo|echomsg|echon|echoerr|echoraw)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(execute|eval|exists|exists_compiled|expand|expandcmd)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(range|len|empty|get|has|has_key|type|typename)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(add|extend|extendnew|remove|insert|reverse|sort|uniq|filter|map|mapnew|reduce|flatten|flattennew|slice)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(join|split|repeat|substitute|trim|tolower|toupper|tr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(strlen|strcharlen|strwidth|strdisplaywidth|strchars|strpart|strcharpart|stridx|strridx|strgetchar|strutf16len|charidx|byteidx|byteidxcomp|utf16idx)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(string|str2nr|str2float|str2list|list2str|char2nr|nr2char|blob2list|list2blob|float2nr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(abs|acos|asin|atan|atan2|ceil|cos|cosh|exp|floor|fmod|log|log10|pow|round|sin|sinh|sqrt|tan|tanh|trunc)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(and|or|xor|invert)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(min|max|count|index|indexof|match|matchend|matchlist|matchstr|matchstrpos|matchfuzzy|matchfuzzypos)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(keys|values|items|copy|deepcopy)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(bufadd|bufexists|buflisted|bufload|bufloaded|bufname|bufnr|bufwinid|bufwinnr|getbufinfo|getbufline|getbufoneline|getbufvar|setbufvar|setbufline|deletebufline|appendbufline)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(winnr|winheight|winwidth|wincol|winline|winrestcmd|winsaveview|winrestview|win_execute|win_findbuf|win_getid|win_gettype|win_gotoid|win_id2tabwin|win_id2win|win_move_separator|win_move_statusline|win_screenpos|win_splitmove|winbufnr|winlayout|getwininfo|getwinpos|getwinposx|getwinposy|getwinvar|setwinvar)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(tabpagenr|tabpagebuflist|tabpagewinnr|gettabinfo|gettabvar|settabvar|gettabwinvar|settabwinvar)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(line|col|virtcol|virtcol2col|charcol|byte2line|line2byte|cursor|setpos|getpos|setcharpos|getcharpos|setcursorcharpos|getcurpos|getcursorcharpos|screenrow|screencol|screenpos|screenchar|screenstring|screenchars|screenattr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(search|searchpos|searchpair|searchpairpos|searchdecl|searchcount)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getline|setline|append|getchangelist|nextnonblank|prevnonblank|indent|cindent|lispindent|shiftwidth)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(filereadable|filewritable|isdirectory|isabsolutepath|executable|exepath|glob|globpath|finddir|findfile|readfile|writefile|readdir|readdirex|readblob|delete|mkdir|rename)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(fnamemodify|fnameescape|simplify|resolve|pathshorten|expand|getfperm|setfperm|getfsize|getftime|getftype)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getcwd|chdir|haslocaldir)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(system|systemlist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getenv|setenv|environ)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(localtime|strftime|strptime|reltime|reltimefloat|reltimestr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(timer_start|timer_stop|timer_stopall|timer_pause|timer_info)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getchar|getcharstr|getcharmod|nr2char|char2nr|keytrans)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(input|inputdialog|inputlist|inputsave|inputrestore|inputsecret|confirm)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(complete|complete_add|complete_check|complete_info|pumvisible|pum_getpos|getcompletion)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getcmdline|getcmdpos|getcmdscreenpos|getcmdtype|getcmdwintype|setcmdline|setcmdpos|getcmdcompltype)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getreg|setreg|getregtype|getreginfo|reg_recording|reg_executing)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getmarklist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(argc|argidx|arglistid|argv)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getqflist|setqflist|getloclist|setloclist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(taglist|tagfiles|gettagstack|settagstack)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getjumplist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getcharsearch|setcharsearch)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(foldclosed|foldclosedend|foldlevel|foldtext|foldtextresult)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(synID|synIDattr|synIDtrans|synstack|synconcealed|diff_filler|diff_hlID)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(hlID|hlexists|hlget|hlset|matchadd|matchaddpos|matcharg|matchdelete|getmatches|setmatches|clearmatches)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(spellbadword|spellsuggest|soundfold)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(mode|state|visualmode)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(feedkeys|eventhandler)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(autocmd_add|autocmd_delete|autocmd_get)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(listener_add|listener_flush|listener_remove)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(did_filetype)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(histadd|histdel|histget|histnr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(maparg|mapcheck|maplist|mapset|hasmapto)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(menu_info)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(sign_define|sign_getdefined|sign_getplaced|sign_jump|sign_place|sign_placelist|sign_undefine|sign_unplace|sign_unplacelist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(prop_add|prop_add_list|prop_clear|prop_find|prop_list|prop_remove|prop_type_add|prop_type_change|prop_type_delete|prop_type_get|prop_type_list)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(popup_atcursor|popup_beval|popup_clear|popup_close|popup_create|popup_dialog|popup_filter_menu|popup_filter_yesno|popup_findecho|popup_findinfo|popup_findpreview|popup_getoptions|popup_getpos|popup_hide|popup_list|popup_locate|popup_menu|popup_move|popup_notification|popup_setoptions|popup_settext|popup_show)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(balloon_gettext|balloon_show|balloon_split)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(prompt_getprompt|prompt_setcallback|prompt_setinterrupt|prompt_setprompt)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(term_dumpdiff|term_dumpload|term_dumpwrite|term_getaltscreen|term_getansicolors|term_getattr|term_getcursor|term_getjob|term_getline|term_getscrolled|term_getsize|term_getstatus|term_gettitle|term_gettty|term_list|term_scrape|term_sendkeys|term_setansicolors|term_setapi|term_setkill|term_setrestore|term_setsize|term_start|term_wait|terminalprops)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(job_getchannel|job_info|job_setoptions|job_start|job_status|job_stop)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(ch_canread|ch_close|ch_close_in|ch_evalexpr|ch_evalraw|ch_getbufnr|ch_getjob|ch_info|ch_log|ch_logfile|ch_open|ch_read|ch_readblob|ch_readraw|ch_sendexpr|ch_sendraw|ch_setoptions|ch_status)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(sound_clear|sound_playevent|sound_playfile|sound_stop)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(json_encode|json_decode|js_encode|js_decode)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(funcref|function|call)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(garbagecollect)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getscriptinfo|fullcommand)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(undofile|undotree|changenr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(swapname|swapinfo|swapfilelist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(sha256|iconv|escape)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(browse|browsedir)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(foreground|getfontname|getimstatus|getmousepos|getmouseshape|wildmenumode|windowsversion)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(hostname|getpid)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(remote_expr|remote_foreground|remote_peek|remote_read|remote_send|remote_startserver|server2client|serverlist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(cscope_connection)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(digraph_get|digraph_getlist|digraph_set|digraph_setlist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(gettext)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getcellwidths|setcellwidths|charclass|strtrans)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(glob2regpat|shellescape|fnameescape)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(wordcount)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(debugbreak|interrupt)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(rand|srand|isinf|isnan|islocked|instanceof)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(luaeval|mzeval|perleval|pyeval|py3eval|pyxeval|rubyeval)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(libcall|libcallnr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(printf|submatch)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(tempname)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(err_teapot)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(assert_beeps|assert_equal|assert_equalfile|assert_exception|assert_fails|assert_false|assert_inrange|assert_match|assert_nobeep|assert_notequal|assert_notmatch|assert_report|assert_true)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(test_alloc_fail|test_autochdir|test_feedinput|test_garbagecollect_now|test_garbagecollect_soon|test_getvalue|test_gui_event|test_ignore_error|test_mswin_event|test_null_blob|test_null_channel|test_null_dict|test_null_function|test_null_job|test_null_list|test_null_partial|test_null_string|test_option_not_set|test_override|test_refcount|test_setmouse|test_settime|test_srand_seed|test_unknown|test_void)\\b"}]},"class-body":{"patterns":[{"include":"#comments"},{"include":"#class-methods"},{"include":"#class-members"},{"include":"#declaration-keywords"},{"include":"#type-annotation"}]},"class-members":{"patterns":[{"match":"\\b(public|static|const|final|var)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*(:\\s*([a-zA-Z_][a-zA-Z0-9_\u003c\u003e,\\s]*))?","captures":{"1":{"name":"storage.modifier.vim9"},"2":{"name":"variable.other.member.vim9"},"3":{"name":"meta.type.annotation.vim9"},"4":{"name":"storage.type.vim9"}}},{"name":"variable.language.this.vim9","match":"\\bthis\\b"}]},"class-methods":{"patterns":[{"name":"meta.constructor.vim9","begin":"\\b(def)\\s+(new)\\s*\\(","end":"\\b(enddef)\\b","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#dictionaries"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#control-keywords"},{"include":"#declaration-keywords"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"keyword.control.def.vim9"},"2":{"name":"entity.name.function.constructor.vim9"}},"endCaptures":{"1":{"name":"keyword.control.enddef.vim9"}}},{"name":"meta.method.vim9","begin":"\\b(public\\s+)?(static\\s+)?(abstract\\s+)?(def)\\s+([a-zA-Z_][a-zA-Z0-9_]*|\u003c[^\u003e]+\u003e)","end":"\\b(enddef)\\b","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#dictionaries"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#control-keywords"},{"include":"#declaration-keywords"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"storage.modifier.public.vim9"},"2":{"name":"storage.modifier.static.vim9"},"3":{"name":"storage.modifier.abstract.vim9"},"4":{"name":"keyword.control.def.vim9"},"5":{"name":"entity.name.function.method.vim9"}},"endCaptures":{"1":{"name":"keyword.control.enddef.vim9"}}}]},"classes":{"patterns":[{"name":"meta.class.vim9","begin":"\\b(export\\s+)?(abstract\\s+)?(class)\\s+([A-Z][a-zA-Z0-9_]*)","end":"\\bendclass\\b","patterns":[{"include":"#comments"},{"name":"meta.method.vim9","begin":"\\b(public\\s+)?(static\\s+)?(abstract\\s+)?(def)\\s+([a-zA-Z_][a-zA-Z0-9_]*)","end":"\\benddef\\b","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"storage.modifier.public.vim9"},"2":{"name":"storage.modifier.static.vim9"},"3":{"name":"storage.modifier.abstract.vim9"},"4":{"name":"keyword.control.def.vim9"},"5":{"name":"entity.name.function.method.vim9"}},"endCaptures":{"0":{"name":"keyword.control.enddef.vim9"}}},{"match":"\\b(public\\s+)?(static\\s+)?(const|final|var)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*(:\\s*([a-zA-Z_][a-zA-Z0-9_\u003c\u003e,\\s]*))?","captures":{"1":{"name":"storage.modifier.vim9"},"2":{"name":"storage.modifier.vim9"},"3":{"name":"storage.type.vim9"},"4":{"name":"variable.other.member.vim9"},"6":{"name":"storage.type.vim9"}}},{"name":"variable.language.this.vim9","match":"\\bthis\\b"},{"include":"#strings"},{"include":"#numbers"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.export.vim9"},"2":{"name":"storage.modifier.abstract.vim9"},"3":{"name":"keyword.control.class.vim9"},"4":{"name":"entity.name.type.class.vim9"}},"endCaptures":{"0":{"name":"keyword.control.endclass.vim9"}}}]},"command-attribute-values":{"patterns":[{"name":"constant.numeric.nargs.vim9","match":"^[?*+01]$"},{"match":"^(customlist|custom)(,)(.+)$","captures":{"1":{"name":"constant.language.complete.vim9"},"2":{"name":"punctuation.separator.vim9"},"3":{"patterns":[{"include":"#function-reference"}]}}},{"name":"constant.language.complete.vim9","match":"\\b(augroup|buffer|behave|color|command|compiler|cscope|dir|environment|event|expression|file|file_in_path|filetype|function|help|highlight|history|locale|mapclear|mapping|menu|option|packadd|shellcmd|sign|syntax|syntime|tag|tag_listfiles|user|var)\\b"},{"name":"constant.numeric.range.vim9","match":"^%$|^\\d+$"},{"name":"string.unquoted.attribute.vim9","match":".+"}]},"command-attributes":{"patterns":[{"match":"(-)(nargs|complete|range|count|addr|bang|bar|register|buffer|replace)(=)([^\\s]+)","captures":{"1":{"name":"punctuation.definition.attribute.vim9"},"2":{"name":"entity.other.attribute-name.command.vim9"},"3":{"name":"keyword.operator.assignment.vim9"},"4":{"patterns":[{"include":"#command-attribute-values"}]}}},{"match":"(-)(bang|bar|buffer|register)","captures":{"1":{"name":"punctuation.definition.attribute.vim9"},"2":{"name":"entity.other.attribute-name.command.vim9"}}}]},"command-implementation":{"patterns":[{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#vim-expansions"},{"include":"#strings"},{"include":"#operators"}]},"command-name":{"patterns":[{"name":"entity.name.command.vim9","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"}]},"commands":{"patterns":[{"name":"meta.command.vim9","begin":"\\b(command!)\\s+","end":"$","patterns":[{"include":"#command-attributes"},{"include":"#command-name"},{"include":"#command-implementation"}],"beginCaptures":{"1":{"name":"keyword.control.command.vim9"}}}]},"comments":{"patterns":[{"name":"comment.line.number-sign.vim9","match":"#.*$"},{"name":"invalid.deprecated.comment.vim9","match":"^\\s*\".*$"}]},"control-flow":{"patterns":[{"name":"keyword.control.conditional.vim9","match":"\\b(if|elseif|else|endif)\\b"},{"match":"\\b(has)\\s*\\(","captures":{"1":{"name":"support.function.builtin.vim9"}}}]},"control-keywords":{"name":"keyword.control.vim9","match":"\\b(if|elseif|else|endif|for|in|endfor|while|endwhile|try|catch|finally|endtry|return|break|continue|throw|class|endclass|interface|endinterface|enum|endenum|def|enddef)\\b"},"declaration-keywords":{"name":"storage.type.vim9","match":"\\b(var|const|final|public|static|abstract)\\b"},"dictionaries":{"patterns":[{"name":"meta.dictionary.vim9","begin":"\\{","end":"\\}","patterns":[{"include":"#dictionary-key"},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#operators"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#variables"},{"include":"$self"}]}]},"dictionary-key":{"patterns":[{"name":"meta.dictionary-key.single-quoted.vim9","match":"'([^']+)'\\s*:","captures":{"0":{"name":"string.quoted.single.dictionary-key.vim9"}}},{"name":"meta.dictionary-key.double-quoted.vim9","match":"\"([^\"]+)\"\\s*:","captures":{"0":{"name":"string.quoted.double.dictionary-key.vim9"}}},{"name":"meta.dictionary-key.unquoted.vim9","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*:","captures":{"1":{"name":"entity.name.property.vim9"}}}]},"enums":{"patterns":[{"name":"meta.enum.vim9","begin":"\\b(export\\s+)?(enum)\\s+([A-Z][a-zA-Z0-9_]*)","end":"\\b(endenum)\\b","patterns":[{"include":"#comments"},{"name":"constant.other.enum.vim9","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"}],"beginCaptures":{"1":{"name":"keyword.control.export.vim9"},"2":{"name":"keyword.control.enum.vim9"},"3":{"name":"entity.name.type.enum.vim9"}},"endCaptures":{"1":{"name":"keyword.control.endenum.vim9"}}}]},"ex-commands":{"patterns":[{"name":"keyword.control.ex.vim9","match":"\\b(call|echo|echon|echomsg|echoerr|execute|normal|return|throw)\\b"},{"name":"constant.character.key.vim9","match":"\u003cC-u\u003e"}]},"export-statement":{"patterns":[{"name":"meta.export.vim9","match":"\\b(export)\\s+(var|const|final|class|interface)\\b","captures":{"1":{"name":"keyword.control.export.vim9"},"2":{"name":"storage.type.vim9"}}},{"name":"keyword.control.export.vim9","match":"\\b(export)\\b"}]},"function-body":{"patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#control-keywords"},{"include":"#declaration-keywords"},{"include":"#dictionaries"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}]},"function-calls":{"patterns":[{"name":"meta.method-call.arrow.vim9","match":"-\u003e([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(","captures":{"1":{"name":"entity.name.function.method.vim9"}}},{"name":"meta.method-call.dot.vim9","match":"\\.([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(","captures":{"1":{"name":"entity.name.function.method.vim9"}}},{"name":"meta.function-call.vim9","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(","captures":{"1":{"name":"entity.name.function.call.vim9"}}}]},"function-reference":{"patterns":[{"match":"([a-zA-Z_][a-zA-Z0-9_#]*)(\\.([a-zA-Z_][a-zA-Z0-9_]*))?","captures":{"1":{"name":"variable.other.object.vim9"},"3":{"name":"entity.name.function.vim9"}}},{"name":"entity.name.function.vim9","match":"[a-zA-Z_][a-zA-Z0-9_]*"}]},"function-signature":{"patterns":[{"name":"meta.function.parameters.vim9","begin":"(?\u003c=\\()(?!.*\\benddef\\b)","end":"\\)","patterns":[{"include":"#type-annotation"},{"name":"variable.parameter.vim9","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"},{"name":"punctuation.separator.parameter.vim9","match":","},{"include":"#comments"}]},{"include":"#type-annotation"}]},"functions":{"patterns":[{"name":"meta.function.vim9","begin":"\\b(export\\s+)?(abstract\\s+)?(static\\s+)?(def)\\s+([a-zA-Z_][a-zA-Z0-9_]*|\u003c[^\u003e]+\u003e)","end":"\\b(enddef)\\b","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#dictionaries"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#control-keywords"},{"include":"#declaration-keywords"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"keyword.control.export.vim9"},"2":{"name":"storage.modifier.abstract.vim9"},"3":{"name":"storage.modifier.static.vim9"},"4":{"name":"keyword.control.def.vim9"},"5":{"name":"entity.name.function.vim9"}},"endCaptures":{"1":{"name":"keyword.control.enddef.vim9"}}}]},"heredoc":{"patterns":[{"name":"string.unquoted.heredoc.eval.vim9","begin":"=\u003c\u003c\\s*(trim\\s+)?eval\\s+([A-Z_][A-Z0-9_]*)","end":"^\\2$","patterns":[{"name":"meta.interpolation.vim9","begin":"\\{","end":"\\}","patterns":[{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#numbers"},{"include":"#variables"}],"beginCaptures":{"0":{"name":"punctuation.definition.interpolation.begin.vim9"}},"endCaptures":{"0":{"name":"punctuation.definition.interpolation.end.vim9"}}}],"beginCaptures":{"0":{"patterns":[{"name":"storage.modifier.eval.vim9","match":"eval"}]},"1":{"name":"storage.modifier.trim.vim9"},"2":{"name":"keyword.control.heredoc.vim9"}},"endCaptures":{"0":{"name":"keyword.control.heredoc.vim9"}}},{"name":"string.unquoted.heredoc.vim9","begin":"=\u003c\u003c\\s*(trim\\s+)?([A-Z_][A-Z0-9_]*)","end":"^\\2$","beginCaptures":{"1":{"name":"storage.modifier.trim.vim9"},"2":{"name":"keyword.control.heredoc.vim9"}},"endCaptures":{"0":{"name":"keyword.control.heredoc.vim9"}}}]},"import-statement":{"patterns":[{"name":"meta.import.vim9","match":"\\b(import)\\s+(autoload)?\\s*(['\"])(.*?)\\3(?:\\s+(as)\\s+([a-zA-Z_][a-zA-Z0-9_]*))?","captures":{"1":{"name":"keyword.control.import.vim9"},"2":{"name":"storage.modifier.autoload.vim9"},"3":{"name":"punctuation.definition.string.begin.vim9"},"4":{"name":"string.quoted.import.path.vim9"},"5":{"name":"keyword.control.as.vim9"},"6":{"name":"variable.other.alias.vim9"}}}]},"interfaces":{"patterns":[{"name":"meta.interface.vim9","begin":"\\b(export\\s+)?(interface)\\s+([A-Z][a-zA-Z0-9_]*)","end":"\\bendinterface\\b","patterns":[{"include":"#comments"},{"match":"\\b(def)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(([^)]*)\\)\\s*(:\\s*([a-zA-Z_][a-zA-Z0-9_\u003c\u003e,\\s]*))?","captures":{"1":{"name":"keyword.control.def.vim9"},"2":{"name":"entity.name.function.vim9"},"3":{"patterns":[{"include":"#type-annotation"},{"name":"variable.parameter.vim9","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"}]},"5":{"name":"storage.type.vim9"}}}],"beginCaptures":{"1":{"name":"keyword.control.export.vim9"},"2":{"name":"keyword.control.interface.vim9"},"3":{"name":"entity.name.type.interface.vim9"}},"endCaptures":{"0":{"name":"keyword.control.endinterface.vim9"}}}]},"mapping-lhs":{"patterns":[{"name":"constant.character.key.vim9","match":"\u003c([A-Za-z0-9_-]+|[CMS]-[A-Za-z0-9_-]+)\u003e"},{"name":"entity.name.function.plug.vim9","match":"\u003cPlug\u003e\\(?[A-Za-z0-9_#]+\\)?"},{"name":"constant.character.leader.vim9","match":"\u003c[Ll]eader\u003e"},{"name":"constant.character.leader.vim9","match":"\u003c[Ll]ocal[Ll]eader\u003e"}]},"mapping-modifiers":{"patterns":[{"name":"storage.modifier.mapping.vim9","match":"\u003c(silent|buffer|nowait|script|expr|unique)\u003e"}]},"mapping-rhs":{"patterns":[{"name":"string.quoted.double.vim9","match":"\"[^\"]*\""},{"name":"meta.mapping.command.vim9","begin":":","end":"(?=\u003cCR\u003e|\u003cEsc\u003e|$)","patterns":[{"include":"#strings"},{"include":"#ex-commands"},{"include":"#builtin-functions"},{"include":"#function-calls"}]},{"include":"#mapping-lhs"}]},"mappings":{"patterns":[{"name":"meta.mapping.vim9","begin":"\\b(nore)?(map|noremap|nmap|vmap|xmap|smap|imap|cmap|omap|tmap|lmap|nnoremap|vnoremap|xnoremap|snoremap|inoremap|cnoremap|onoremap|tnoremap|lnoremap)\\b","end":"$","patterns":[{"include":"#mapping-modifiers"},{"include":"#mapping-lhs"},{"include":"#mapping-rhs"}],"beginCaptures":{"0":{"name":"keyword.control.mapping.vim9"}}},{"name":"keyword.control.mapping.vim9","match":"\\b(unmap|nunmap|vunmap|xunmap|sunmap|iunmap|cunmap|ounmap|tunmap|lunmap|mapclear|nmapclear|vmapclear|xmapclear|smapclear|imapclear|cmapclear|omapclear|tmapclear|lmapclear)\\b"}]},"module-keywords":{"name":"keyword.control.import.vim9","match":"\\b(export)\\b"},"numbers":{"patterns":[{"name":"constant.numeric.hex.vim9","match":"\\b0[xX][0-9a-fA-F]+\\b"},{"name":"constant.numeric.binary.vim9","match":"\\b0[bB][01]+\\b"},{"name":"constant.numeric.float.vim9","match":"\\b[0-9]+\\.[0-9]+([eE][+-]?[0-9]+)?\\b"},{"name":"constant.numeric.integer.vim9","match":"\\b[0-9]+\\b"}]},"operators":{"patterns":[{"name":"keyword.operator.assignment.vim9","match":"(?\u003c!=)=(?!=)|\\+=|-=|\\*=|/=|%=|\\.\\.|\\.\\.="},{"name":"keyword.operator.method-call.vim9","match":"-\u003e"},{"name":"keyword.operator.comparison.vim9","match":"\\b(is|isnot)([#?])?\\b|[!=]=([#?])?|[\u003e\u003c]=?([#?])?|[=!]~([#?])?"},{"name":"keyword.operator.logical.vim9","match":"\u0026\u0026|\\|\\||!(?![~=])"},{"name":"keyword.operator.arithmetic.vim9","match":"\\+(?!=)|-(?!=)|\\*(?!=)|/(?!=)|%(?!=)"},{"name":"keyword.operator.lambda.vim9","match":"=\u003e"},{"name":"keyword.operator.ternary.vim9","match":"\\?|:"}]},"scriptencoding":{"patterns":[{"name":"meta.scriptencoding.vim9","match":"^\\s*\\b(scripte(?:ncoding)?)\\s+([a-zA-Z0-9_-]+)","captures":{"1":{"name":"keyword.control.scriptencoding.vim9"},"2":{"name":"string.unquoted.encoding.vim9"}}}]},"strings":{"patterns":[{"name":"string.quoted.single.vim9","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.vim9","match":"''"}]},{"name":"string.quoted.double.vim9","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.vim9","match":"\\\\[\\\\\"nrtb]"}]},{"name":"string.interpolated.vim9","begin":"\\$\"","end":"\"","patterns":[{"name":"variable.other.interpolated.vim9","match":"\\{[^}]+\\}"},{"name":"constant.character.escape.vim9","match":"\\\\[\\\\\"nrtb]"}]}]},"type-annotation":{"patterns":[{"name":"meta.type.annotation.vim9","match":":\\s*(number|string|bool|void|any|list\u003c[^\u003e]+\u003e|dict\u003c[^\u003e]+\u003e|func\\([^)]*\\)(:\\s*\\w+)?|blob|channel|job)","captures":{"1":{"name":"storage.type.vim9"}}}]},"variables":{"patterns":[{"name":"variable.language.vim9","match":"\\b(g:|b:|w:|t:|v:)[a-zA-Z_][a-zA-Z0-9_]*\\b"},{"name":"variable.other.vim9","match":"\\b[a-z_][a-zA-Z0-9_]*\\b"}]},"vim-expansions":{"patterns":[{"name":"constant.character.expansion.vim9","match":"\u003c(abuf|afile|amatch|sfile|slnum|cword|cWORD|cfile|cexpr|q-args|f-args|args|bang|line1|line2|range|count|reg|mods|client)\u003e"}]},"vim9script-declaration":{"name":"keyword.control.declaration.vim9script","match":"^\\s*\\b(vim9script)\\b"}}}
|
data/grammars/source.wdl.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"wdl","scopeName":"source.wdl","patterns":[{"include":"#single-number-sign-comments"},{"include":"#double-number-sign-comments"},{"name":"entity.version.wdl","match":"(version)\\s+(.*)","captures":{"1":{"name":"keyword.other.version.wdl"},"2":{"name":"entity.version.number.wdl"}}},{"contentName":"entity.struct.wdl","begin":"(struct)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.struct.wdl"},"2":{"name":"variable.name.struct.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.struct-start.wdl"}}},{"contentName":"entity.enum.wdl","begin":"(enum)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.enum.wdl"},"2":{"name":"variable.name.enum.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.enum-start.wdl"}}},{"contentName":"entity.task.wdl","begin":"(task)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.task.wdl"},"2":{"name":"variable.name.task.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.task-start.wdl"}}},{"begin":"(workflow)\\s+([A-Za-z][A-Za-z0-9_]+)","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.workflow.wdl"},"2":{"name":"variable.name.workflow.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.workflow-start.wdl"}}},{"include":"#input-block"},{"include":"#command-block-curly"},{"include":"#command-block-heredoc"},{"include":"#output-block"},{"include":"#requirements-block"},{"include":"#hints-block"},{"include":"#runtime-block"},{"include":"#meta-block"},{"include":"#parameter_meta-block"},{"include":"#atom"}],"repository":{"atom":{"patterns":[{"include":"#double-number-sign-comments"},{"include":"#single-number-sign-comments"},{"include":"#numeric"},{"include":"#strings"},{"include":"#keywords"},{"include":"#identity"}]},"bash-arguments":{"name":"string.unquoted.argument.shell","match":"\\b[a-zA-Z0-9/._][a-zA-Z0-9/._-]*\\b"},"bash-arithmetic":{"name":"meta.expression.arithmetic.shell","begin":"(\\(\\()","end":"(\\)\\))","patterns":[{"include":"#bash-variables"},{"include":"#bash-arithmetic-operators"},{"include":"#bash-numeric"},{"include":"#bash-arithmetic-variables"}],"beginCaptures":{"1":{"name":"punctuation.definition.evaluation.begin.shell"}},"endCaptures":{"1":{"name":"punctuation.definition.evaluation.end.shell"}}},"bash-arithmetic-operators":{"name":"keyword.operator.arithmetic.shell","match":"\\*\\*|==|!=|\u003c=|\u003e=|\u0026\u0026|\\|\\||\u003c\u003c|\u003e\u003e|[!~+\\-*/%\u003c\u003e\u0026|^=]"},"bash-arithmetic-variables":{"name":"variable.other.shell","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"},"bash-assignments":{"patterns":[{"match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)(=)","captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"keyword.operator.assignment.shell"}}}]},"bash-commands":{"patterns":[{"name":"entity.name.function.shell"}]},"bash-comments":{"name":"comment.line.number-sign.shell","match":"#.*$"},"bash-double-quoted-strings":{"name":"string.quoted.double.shell","begin":"\"","end":"\"","patterns":[{"include":"#bash-variables"},{"name":"constant.character.escape.shell","match":"\\\\([\"$`\\\\\\r\\n])"}]},"bash-heredoc-generic":{"name":"string.unquoted.heredoc.shell","begin":"(\u003c\u003c-?)\\s*([a-zA-Z_][a-zA-Z0-9_]*)","end":"^\\s*(\\2)\\s*$","patterns":[{"include":"#placeholder"}],"beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"entity.name.tag.heredoc.shell"}},"endCaptures":{"1":{"name":"entity.name.tag.heredoc.shell"}}},"bash-heredoc-python":{"contentName":"source.python.embedded.shell","begin":"(\u003c\u003c-?)\\s*([pP][yY][tT][hH][oO][nN])","end":"^\\s*(\\2)\\s*$","patterns":[{"include":"#placeholder"},{"include":"source.python"}],"beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"entity.name.tag.heredoc.python.shell"}},"endCaptures":{"1":{"name":"entity.name.tag.heredoc.python.shell"}}},"bash-heredocs":{"patterns":[{"include":"#bash-heredoc-python"},{"include":"#bash-heredoc-generic"}]},"bash-in-wdl":{"patterns":[{"include":"#bash-heredocs"},{"include":"#bash-comments"},{"include":"#bash-strings"},{"include":"#bash-arithmetic"},{"include":"#bash-variables"},{"include":"#bash-assignments"},{"include":"#bash-options"},{"include":"#bash-keywords"},{"include":"#bash-commands"},{"include":"#bash-arguments"}]},"bash-keywords":{"patterns":[{"name":"keyword.control.shell","match":"\\b(if|then|else|fi|for|in|while|do|done|case|esac|until|select)\\b"},{"name":"support.function.builtin.shell","match":"\\b(echo|set|unset|export|readonly|shift|source|local|declare|getopts|read|let)\\b"}]},"bash-numeric":{"name":"constant.numeric.shell","match":"\\b(0[xX][0-9a-fA-F]+|\\d+)\\b"},"bash-options":{"patterns":[{"name":"constant.other.option.shell","match":"(?\u003c=^|\\s)(--[a-zA-Z0-9][a-zA-Z0-9-]*|-\\w+)\\b"}]},"bash-single-quoted-strings":{"name":"string.quoted.single.shell","begin":"'","end":"'"},"bash-strings":{"patterns":[{"include":"#bash-single-quoted-strings"},{"include":"#bash-double-quoted-strings"}]},"bash-variables":{"patterns":[{"name":"variable.other.shell","match":"(\\$)[a-zA-Z_][a-zA-Z0-9_]*","captures":{"1":{"name":"punctuation.definition.variable.shell"}}},{"name":"variable.other.shell","begin":"\\$\\{","end":"\\}","beginCaptures":{"0":{"name":"punctuation.definition.variable.shell"}},"endCaptures":{"0":{"name":"punctuation.definition.variable.shell"}}},{"name":"variable.parameter.special.shell","match":"\\$([0-9@*#?$$!_])"}]},"command-block-curly":{"contentName":"source.shell.embedded.wdl","begin":"(?:\\s*)(command)\\s+({)","end":"^(?:\\s*)(})(?:\\s*)$","patterns":[{"include":"#placeholder"},{"include":"#bash-in-wdl"}],"beginCaptures":{"1":{"name":"storage.type.command.wdl"},"2":{"name":"punctuation.bracket.curly.command-start.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.command-end.wdl"}}},"command-block-heredoc":{"contentName":"source.shell.embedded.wdl","begin":"(?:\\s*)(command)\\s+(\u003c\u003c\u003c)","end":"^(?:\\s*)(\u003e\u003e\u003e)(?:\\s*)$","patterns":[{"include":"#placeholder"},{"include":"#bash-in-wdl"}],"beginCaptures":{"1":{"name":"storage.type.command.wdl"},"2":{"name":"punctuation.heredoc.command-start.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.command-end.wdl"}}},"double-number-sign-comments":{"name":"comment.line.double-number-sign.documentation","begin":"(?:\\s*)(?:##) ?","while":"(?:^|\\G)\\s*(?:##) ?","patterns":[{"include":"text.md"}]},"double-quoted-strings":{"name":"string.quoted.double.wdl","begin":"\"","end":"\"","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"escaped-character":{"name":"constant.character.escape.wdl","match":"(\\\\\\\\)|(\\\\n)|(\\\\t)|(\\\\')|(\\\\\")|(\\\\~)|(\\\\\\$)|(\\\\[0-7]{3})|(\\\\x[0-9a-fA-F]{2})|(\\\\u[0-9a-fA-F]{4})|(\\\\U[0-9a-fA-F]{8})","captures":{"1":{"name":"constant.character.escape.backslash.wdl"},"10":{"name":"constant.character.escape.four-byte-unicode.wdl"},"11":{"name":"constant.character.escape.eight-byte-unicode.wdl"},"2":{"name":"constant.character.escape.newline.wdl"},"3":{"name":"constant.character.escape.tab.wdl"},"4":{"name":"constant.character.escape.single-quote.wdl"},"5":{"name":"constant.character.escape.double-quote.wdl"},"6":{"name":"constant.character.escape.tilde.wdl"},"7":{"name":"constant.character.escape.dollar-sign.wdl"},"8":{"name":"constant.character.escape.octal.wdl"},"9":{"name":"constant.character.escape.hex.wdl"}}},"hints-block":{"name":"entity.hints-block.wdl","begin":"(?:\\s*)(hints)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.hints.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.hints-start.wdl"}}},"identity":{"name":"variable.other.wdl","match":"\\b[A-Za-z][A-Za-z0-9_]*\\b"},"input-block":{"name":"entity.input-block.wdl","begin":"(?:\\s*)(input)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.input.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.input-start.wdl"}}},"keywords":{"patterns":[{"name":"keyword.other.wdl","match":"\\b(import|version)\\b"},{"name":"storage.modifier.wdl","match":"\\b(alias|as|in|scatter)\\b"},{"name":"keyword.control.wdl","match":"\\b(call|else|if|then)\\b"},{"name":"storage.type","match":"\\b(command|hints|inputs|meta|object|outputs|parameter_meta|requirements|runtime)\\b\\s*(?!:)"},{"name":"constant.language.wdl","match":"\\b(true|false|left|right|null)\\b"},{"name":"keyword.wdl","match":"\\b(after|alias|as|call|command|else|enum|env|false|hints|if|in|import|input|meta|null|object|output|parameter_meta|requirements|runtime|scatter|then|true|version)\\b\\s*(?!:)"},{"name":"entity.name.type.wdl","match":"\\b(Array|Boolean|Directory|File|Float|Int|Map|None|Object|Pair|String)\\b"}]},"meta-block":{"name":"entity.meta-block.wdl","begin":"(?:\\s*)(meta)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.meta.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.meta-start.wdl"}}},"multi-line-strings":{"name":"string.unquoted.multi-line.wdl","begin":"\u003c\u003c\u003c","end":"\u003e\u003e\u003e","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"numeric":{"name":"constant.numeric.wdl","match":"-?(?:[0-9]+\\.[0-9]*(e|E)?|[0-9]+(e|E)?|[1-9][0-9]*|0[0-7]+|0[xX][0-9a-fA-F]|0)"},"output-block":{"name":"entity.output-block.wdl","begin":"(?:\\s*)(output)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.output.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.output-start.wdl"}}},"parameter_meta-block":{"name":"entity.parameter_meta-block.wdl","begin":"(?:\\s*)(parameter_meta)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.parameter_meta.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.parameter_meta-start.wdl"}}},"placeholder":{"name":"meta.other.placeholder.wdl","begin":"[$~]{","end":"}","patterns":[{"include":"source.wdl"}]},"requirements-block":{"name":"entity.requirements-block.wdl","begin":"(?:\\s*)(requirements)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.requirements.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.requirements-start.wdl"}}},"runtime-block":{"name":"entity.runtime-block.wdl","begin":"(?:\\s*)(runtime)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.runtime.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.runtime-start.wdl"}}},"single-number-sign-comments":{"name":"comment.line.number-sign.documentation","begin":"(?:\\s*)(?:#(?!#))","while":"(?:^|\\G)(?:\\s*)(?:#(?!#))"},"single-quoted-strings":{"name":"string.quoted.single.wdl","begin":"'","end":"'","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"strings":{"patterns":[{"include":"#single-quoted-strings"},{"include":"#double-quoted-strings"},{"include":"#multi-line-strings"}]}}}
|
|
1
|
+
{"name":"wdl","scopeName":"source.wdl","patterns":[{"include":"#single-number-sign-comments"},{"include":"#double-number-sign-comments"},{"name":"entity.version.wdl","match":"(version)\\s+(.*)","captures":{"1":{"name":"keyword.other.version.wdl"},"2":{"name":"entity.version.number.wdl"}}},{"match":"(?\u003c!\\.)\\b(import)\\b(?=\\s*(?:\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'))","captures":{"1":{"name":"keyword.other.import.wdl"}}},{"contentName":"entity.struct.wdl","begin":"(struct)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.struct.wdl"},"2":{"name":"variable.name.struct.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.struct-start.wdl"}}},{"contentName":"entity.enum.wdl","begin":"(enum)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.enum.wdl"},"2":{"name":"variable.name.enum.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.enum-start.wdl"}}},{"contentName":"entity.task.wdl","begin":"(task)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.task.wdl"},"2":{"name":"variable.name.task.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.task-start.wdl"}}},{"begin":"(workflow)\\s+([A-Za-z][A-Za-z0-9_]+)","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.workflow.wdl"},"2":{"name":"variable.name.workflow.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.workflow-start.wdl"}}},{"include":"#input-block"},{"include":"#command-block-curly"},{"include":"#command-block-heredoc"},{"include":"#output-block"},{"include":"#requirements-block"},{"include":"#hints-block"},{"include":"#runtime-block"},{"include":"#meta-block"},{"include":"#parameter_meta-block"},{"include":"#atom"}],"repository":{"atom":{"patterns":[{"include":"#double-number-sign-comments"},{"include":"#single-number-sign-comments"},{"include":"#numeric"},{"include":"#strings"},{"include":"#keywords"},{"include":"#identity"}]},"bash-arguments":{"name":"string.unquoted.argument.shell","match":"\\b[a-zA-Z0-9/._][a-zA-Z0-9/._-]*\\b"},"bash-arithmetic":{"name":"meta.expression.arithmetic.shell","begin":"(\\(\\()","end":"(\\)\\))","patterns":[{"include":"#bash-variables"},{"include":"#bash-arithmetic-operators"},{"include":"#bash-numeric"},{"include":"#bash-arithmetic-variables"}],"beginCaptures":{"1":{"name":"punctuation.definition.evaluation.begin.shell"}},"endCaptures":{"1":{"name":"punctuation.definition.evaluation.end.shell"}}},"bash-arithmetic-operators":{"name":"keyword.operator.arithmetic.shell","match":"\\*\\*|==|!=|\u003c=|\u003e=|\u0026\u0026|\\|\\||\u003c\u003c|\u003e\u003e|[!~+\\-*/%\u003c\u003e\u0026|^=]"},"bash-arithmetic-variables":{"name":"variable.other.shell","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"},"bash-assignments":{"patterns":[{"match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)(=)","captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"keyword.operator.assignment.shell"}}}]},"bash-commands":{"patterns":[{"name":"entity.name.function.shell"}]},"bash-comments":{"name":"comment.line.number-sign.shell","match":"#.*$"},"bash-double-quoted-strings":{"name":"string.quoted.double.shell","begin":"\"","end":"\"","patterns":[{"include":"#bash-variables"},{"name":"constant.character.escape.shell","match":"\\\\([\"$`\\\\\\r\\n])"}]},"bash-heredoc-generic":{"name":"string.unquoted.heredoc.shell","begin":"(\u003c\u003c-?)\\s*([a-zA-Z_][a-zA-Z0-9_]*)","end":"^\\s*(\\2)\\s*$","patterns":[{"include":"#placeholder"}],"beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"entity.name.tag.heredoc.shell"}},"endCaptures":{"1":{"name":"entity.name.tag.heredoc.shell"}}},"bash-heredoc-python":{"contentName":"source.python.embedded.shell","begin":"(\u003c\u003c-?)\\s*([pP][yY][tT][hH][oO][nN])","end":"^\\s*(\\2)\\s*$","patterns":[{"include":"#placeholder"},{"include":"source.python"}],"beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"entity.name.tag.heredoc.python.shell"}},"endCaptures":{"1":{"name":"entity.name.tag.heredoc.python.shell"}}},"bash-heredocs":{"patterns":[{"include":"#bash-heredoc-python"},{"include":"#bash-heredoc-generic"}]},"bash-in-wdl":{"patterns":[{"include":"#bash-heredocs"},{"include":"#bash-comments"},{"include":"#bash-strings"},{"include":"#bash-arithmetic"},{"include":"#bash-variables"},{"include":"#bash-assignments"},{"include":"#bash-options"},{"include":"#bash-keywords"},{"include":"#bash-commands"},{"include":"#bash-arguments"}]},"bash-keywords":{"patterns":[{"name":"keyword.control.shell","match":"\\b(if|then|else|fi|for|in|while|do|done|case|esac|until|select)\\b"},{"name":"support.function.builtin.shell","match":"\\b(echo|set|unset|export|readonly|shift|source|local|declare|getopts|read|let)\\b"}]},"bash-numeric":{"name":"constant.numeric.shell","match":"\\b(0[xX][0-9a-fA-F]+|\\d+)\\b"},"bash-options":{"patterns":[{"name":"constant.other.option.shell","match":"(?\u003c=^|\\s)(--[a-zA-Z0-9][a-zA-Z0-9-]*|-\\w+)\\b"}]},"bash-single-quoted-strings":{"name":"string.quoted.single.shell","begin":"'","end":"'"},"bash-strings":{"patterns":[{"include":"#bash-single-quoted-strings"},{"include":"#bash-double-quoted-strings"}]},"bash-variables":{"patterns":[{"name":"variable.other.shell","match":"(\\$)[a-zA-Z_][a-zA-Z0-9_]*","captures":{"1":{"name":"punctuation.definition.variable.shell"}}},{"name":"variable.other.shell","begin":"\\$\\{","end":"\\}","beginCaptures":{"0":{"name":"punctuation.definition.variable.shell"}},"endCaptures":{"0":{"name":"punctuation.definition.variable.shell"}}},{"name":"variable.parameter.special.shell","match":"\\$([0-9@*#?$$!_])"}]},"command-block-curly":{"contentName":"source.shell.embedded.wdl","begin":"(?:\\s*)(command)\\s+({)","end":"^(?:\\s*)(})(?:\\s*)$","patterns":[{"include":"#placeholder"},{"include":"#bash-in-wdl"}],"beginCaptures":{"1":{"name":"storage.type.command.wdl"},"2":{"name":"punctuation.bracket.curly.command-start.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.command-end.wdl"}}},"command-block-heredoc":{"contentName":"source.shell.embedded.wdl","begin":"(?:\\s*)(command)\\s+(\u003c\u003c\u003c)","end":"^(?:\\s*)(\u003e\u003e\u003e)(?:\\s*)$","patterns":[{"include":"#placeholder"},{"include":"#bash-in-wdl"}],"beginCaptures":{"1":{"name":"storage.type.command.wdl"},"2":{"name":"punctuation.heredoc.command-start.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.command-end.wdl"}}},"double-number-sign-comments":{"name":"comment.line.double-number-sign.documentation","begin":"(?:\\s*)(?:##) ?","while":"(?:^|\\G)\\s*(?:##) ?","patterns":[{"include":"text.md"}]},"double-quoted-strings":{"name":"string.quoted.double.wdl","begin":"\"","end":"\"","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"escaped-character":{"name":"constant.character.escape.wdl","match":"(\\\\\\\\)|(\\\\n)|(\\\\t)|(\\\\')|(\\\\\")|(\\\\~)|(\\\\\\$)|(\\\\[0-7]{3})|(\\\\x[0-9a-fA-F]{2})|(\\\\u[0-9a-fA-F]{4})|(\\\\U[0-9a-fA-F]{8})","captures":{"1":{"name":"constant.character.escape.backslash.wdl"},"10":{"name":"constant.character.escape.four-byte-unicode.wdl"},"11":{"name":"constant.character.escape.eight-byte-unicode.wdl"},"2":{"name":"constant.character.escape.newline.wdl"},"3":{"name":"constant.character.escape.tab.wdl"},"4":{"name":"constant.character.escape.single-quote.wdl"},"5":{"name":"constant.character.escape.double-quote.wdl"},"6":{"name":"constant.character.escape.tilde.wdl"},"7":{"name":"constant.character.escape.dollar-sign.wdl"},"8":{"name":"constant.character.escape.octal.wdl"},"9":{"name":"constant.character.escape.hex.wdl"}}},"hints-block":{"name":"entity.hints-block.wdl","begin":"(?:\\s*)(hints)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.hints.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.hints-start.wdl"}}},"identity":{"name":"variable.other.wdl","match":"\\b[A-Za-z][A-Za-z0-9_]*\\b"},"input-block":{"name":"entity.input-block.wdl","begin":"(?:\\s*)(input)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.input.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.input-start.wdl"}}},"keywords":{"patterns":[{"name":"keyword.other.wdl","match":"\\b(version)\\b"},{"name":"storage.modifier.wdl","match":"\\b(alias|as|in|scatter)\\b"},{"name":"keyword.control.wdl","match":"\\b(call|else|if|then)\\b"},{"name":"storage.type","match":"\\b(command|hints|inputs|meta|object|outputs|parameter_meta|requirements|runtime)\\b\\s*(?!:)"},{"name":"constant.language.wdl","match":"\\b(true|false|left|right|null)\\b"},{"name":"keyword.wdl","match":"\\b(after|alias|as|call|command|else|enum|env|false|hints|if|in|input|meta|null|object|output|parameter_meta|requirements|runtime|scatter|then|true|version)\\b\\s*(?!:)"},{"name":"entity.name.type.wdl","match":"\\b(Array|Boolean|Directory|File|Float|Int|Map|None|Object|Pair|String)\\b"}]},"meta-block":{"name":"entity.meta-block.wdl","begin":"(?:\\s*)(meta)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.meta.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.meta-start.wdl"}}},"multi-line-strings":{"name":"string.unquoted.multi-line.wdl","begin":"\u003c\u003c\u003c","end":"\u003e\u003e\u003e","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"numeric":{"name":"constant.numeric.wdl","match":"-?(?:[0-9]+\\.[0-9]*(e|E)?|[0-9]+(e|E)?|[1-9][0-9]*|0[0-7]+|0[xX][0-9a-fA-F]|0)"},"output-block":{"name":"entity.output-block.wdl","begin":"(?:\\s*)(output)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.output.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.output-start.wdl"}}},"parameter_meta-block":{"name":"entity.parameter_meta-block.wdl","begin":"(?:\\s*)(parameter_meta)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.parameter_meta.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.parameter_meta-start.wdl"}}},"placeholder":{"name":"meta.other.placeholder.wdl","begin":"[$~]{","end":"}","patterns":[{"include":"source.wdl"}]},"requirements-block":{"name":"entity.requirements-block.wdl","begin":"(?:\\s*)(requirements)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.requirements.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.requirements-start.wdl"}}},"runtime-block":{"name":"entity.runtime-block.wdl","begin":"(?:\\s*)(runtime)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.runtime.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.runtime-start.wdl"}}},"single-number-sign-comments":{"name":"comment.line.number-sign.documentation","begin":"(?:\\s*)(?:#(?!#))","while":"(?:^|\\G)(?:\\s*)(?:#(?!#))"},"single-quoted-strings":{"name":"string.quoted.single.wdl","begin":"'","end":"'","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"strings":{"patterns":[{"include":"#single-quoted-strings"},{"include":"#double-quoted-strings"},{"include":"#multi-line-strings"}]}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"WebAssembly","scopeName":"source.webassembly","patterns":[{"name":"comment.line.hashbang.webassembly","begin":"\\A(#!)","end":"$","beginCaptures":{"1":{"name":"punctuation.definition.comment.hashbang.webassembly"}}},{"include":"#main"}],"repository":{"comment-block":{"name":"comment.block.semicolon.webassembly","begin":"\\(;","end":";\\)","patterns":[{"include":"#comment-block"}],"beginCaptures":{"0":{"name":"punctuation.section.comment.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.section.comment.end.webassembly"}}},"comment-line":{"name":"comment.line.semicolon.webassembly","begin":";;","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.webassembly"}}},"expression":{"patterns":[{"name":"meta.expression.$2.webassembly","begin":"(\\()(\\w+)(?=[\\s()]|$|;;)","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.section.expression.begin.webassembly"},"2":{"patterns":[{"include":"#main"}]}},"endCaptures":{"0":{"name":"punctuation.section.expression.end.webassembly"}}},{"name":"meta.expression.webassembly","begin":"\\(","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.expression.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.section.expression.end.webassembly"}}}]},"instructions":{"patterns":[{"name":"keyword.control.instruction.$1.webassembly","match":"(?x) \\b\n( block\n| br(?:_if|_table|_on_(?:cast|data|func|i31|null))?\n| call(?:_indirect|_ref)?\n| catch_all\n| catch\n| delegate\n| else\n| end\n| if\n| loop\n| nop\n| rethrow\n| return(?:_call(?:_indirect|_ref)?)?\n| then\n| throw\n| try\n| unreachable\n| unwind\n) (?=[\\s()]|$|;;)"},{"name":"entity.name.function.instruction.$1.webassembly","match":"(?x) \\b\n(\n\t(f32|f64) \\.\n\t( (?\u003c=f32.) (demote_f64|reinterpret_i32)\n\t| (?\u003c=f64.) (promote_f32|reinterpret_i64)\n\t| abs\n\t| add\n\t| atomic (?:\\.\\w+)++\n\t| ceil\n\t| const\n\t| convert_i(32|64)_[su]\n\t| copysign\n\t| div\n\t| eq\n\t| floor\n\t| [gl][et]\n\t| load\n\t| max\n\t| min\n\t| mul\n\t| nearest\n\t| neg?\n\t| ne\n\t| sqrt\n\t| store\n\t| sub\n\t| trunc\n\t)\n\t|\n\t\n\t(i32|i64) \\.\n\t( (?\u003c=i32.) (reinterpret_f32|wrap_i64)\n\t| (?\u003c=i64.) (extend_i32_[su]|extend32_s|load32_[su]|reinterpret_f64|store32)\n\t| add\n\t| and\n\t| atomic (?:\\.\\w+)++\n\t| clz\n\t| const\n\t| ctz\n\t| div_[su]\n\t| eqz?\n\t| eq\n\t| extend(8|16)_s\n\t| [gl][et]_[su]\n\t| load(8|16)_[su]\n\t| load\n\t| mul\n\t| ne\n\t| x?or\n\t| popcnt\n\t| rem_[su]\n\t| rot[lr]\n\t| shl\n\t| shr_[su]\n\t| store(8|16)?\n\t| sub\n\t| trunc_(sat_)?f(32|64)_[su]\n\t)\n\t|\n\t\n\tv128 \\.\n\t( andnot\n\t| and\n\t| any_true\n\t| atomic (?:\\.\\w+)++\n\t| bitselect\n\t| const\n\t| load((8|16)_lane|(32|64)_(lane|zero)|(8|16|32|64)_splat|(8x8|16x4|32x2)_[su])?\n\t| not\n\t| x?or\n\t| store((8|16|32|64)_lane)?\n\t)\n\t|\n\n\t(f32x4|f64x2) \\.\n\t( (?\u003c=f32x4.) (convert_i32x4_[su]|demote_f64x2_zero)\n\t| (?\u003c=f64x2.) (convert_low_i32x4_[su]|promote_low_f32x4)\n\t| abs\n\t| add\n\t| ceil\n\t| div\n\t| eq\n\t| (extract|replace)_lane\n\t| floor\n\t| [gl][et]\n\t| p?max\n\t| p?min\n\t| mul\n\t| nearest\n\t| neg?\n\t| splat\n\t| sqrt\n\t| sub\n\t| trunc\n\t)\n\t|\n\t\n\ti8x16 \\.\n\t( abs\n\t| (?:add|sub)_sat_[su]\n\t| add\n\t| all_true\n\t| avgr_u\n\t| bitmask\n\t| eq\n\t| extract_lane_[su]\n\t| [gl][et]_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| narrow_i16x8_[su]\n\t| neg?\n\t| ne\n\t| popcnt\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| shuffle\n\t| splat\n\t| sub\n\t| swizzle\n\t)\n\t|\n\t\n\ti16x8 \\.\n\t( abs\n\t| (?:add|sub)_sat_[su]\n\t| add\n\t| all_true\n\t| avgr_u\n\t| bitmask\n\t| eq\n\t| ext(add_pairwise|(end|mul)_(high|low))_i8x16_[su]\n\t| extract_lane_[su]\n\t| [gl][et]_[su]\n\t| load8x8_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| mul\n\t| narrow_i32x4_[su]\n\t| neg?\n\t| ne\n\t| q15mulr_sat_s\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t)\n\t|\n\n\ti32x4 \\.\n\t( abs\n\t| add\n\t| all_true\n\t| bitmask\n\t| dot_i16x8_s\n\t| eq\n\t| ext(add_pairwise|(end|mul)_(high|low))_i16x8_[su]\n\t| extract_lane\n\t| [gl][et]_[su]\n\t| load16x4_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| mul\n\t| neg?\n\t| ne\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t| trunc_sat_f32x4_[su]\n\t| trunc_sat_f64x2_[su]_zero\n\t)\n\t|\n\n\ti64x2 \\.\n\t( abs\n\t| add\n\t| all_true\n\t| bitmask\n\t| eq\n\t| ext(end|mul)_(high|low)_i32x4_[su]\n\t| extract_lane\n\t| [gl][et]_s\n\t| load32x2_[su]\n\t| load_splat\n\t| mul\n\t| neg?\n\t| ne\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t)\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"name":"punctuation.separator.method.period.webassembly","match":"\\."}]}}},{"match":"\\b([if](?:32|64)(\\.)\\w+)(/)([if](?:32|64))","captures":{"1":{"name":"entity.name.function.instruction.$1.webassembly"},"2":{"name":"punctuation.separator.method.period.webassembly"},"3":{"name":"punctuation.separator.method.slash.webassembly"},"4":{"patterns":[{"include":"#type"}]}}},{"name":"entity.name.function.instruction.$1.webassembly","match":"(?x) \\b\n( (array|struct) (\\. (len|new(_default)?_with_rtt|get_[su]|[gs]et))?\n| (current|grow)_memory\n| data\\.drop\n| drop\n| elem\\.drop\n| field\n| i31 \\. (new|get_[su])\n| ([gs]et|tee)_(local|global)\n| global\\.[gs]et\n| local\\.([gs]et|tee)\n| memory\\.(atomic\\.(notify|wait32|wait64)|copy|fill|grow|init|size)\n| ref(\\.([ai]s_(data|func|i31|non_null)|cast|eq|func|is_null|null|test))?\n| rtt(\\.(canon|sub))?\n| select\n| table\\.(copy|fill|get|grow|init|set|size)\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"name":"punctuation.separator.method.period.webassembly","match":"\\."}]}}},{"name":"storage.type.$1.webassembly","match":"(?x) \\b\n( anyfunc\n| data\n| declare\n| element\n| elem\n| export\n| extern\n| func\n| global\n| import\n| item\n| local\n| memory\n| module\n| mut\n| offset\n| param\n| result\n| start\n| table\n| type\n) (?=[\\s()]|$|;;)"},{"name":"support.function.scripting.webassembly","match":"(?x) \\b\n( assert_exhaustion\n| assert_invalid\n| assert_malformed\n| assert_return (?:_(?:arithmetic|canonical)_nan)?\n| assert_trap\n| assert_unlinkable\n| binary\n| input\n| invoke\n| get\n| output\n| quote\n| ref\\.extern\n| ref\\.host\n| register\n| script\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"name":"punctuation.separator.method.period.webassembly","match":"\\."}]}}}]},"main":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"include":"#expression"},{"include":"#instructions"},{"include":"#type"},{"include":"#number"},{"include":"#name"},{"include":"#string"},{"include":"#optional-immediate"}]},"name":{"name":"variable.other.name.webassembly","match":"(\\$)[-A-Za-z0-9_.+*/\\\\^~=\u003c\u003e!?@#$%\u0026|:'`]+","captures":{"1":{"name":"punctuation.definition.variable.webassembly"}}},"number":{"patterns":[{"name":"constant.language.nan.with-payload.webassembly","match":"(?\u003c!\\w)[-+]?nan(:)(0x(?!_)(?:_?[A-Fa-f0-9])+)","captures":{"1":{"name":"punctuation.separator.payload.colon.webassembly"},"2":{"name":"constant.numeric.int.hex.payload.webassembly"}}},{"name":"constant.language.$1.$2.webassembly","match":"(?\u003c!\\w)[-+]?(inf|nan)(?:(?\u003c=nan):(arithmetic|canonical))?(?!\\w)"},{"name":"constant.numeric.float.hex.webassembly","match":"(?x) (?\u003c!\\w)\n[-+]? 0x (?!_)(?:_? [A-Fa-f0-9])++\n(?: \\. (?!_)(?:_? [A-Fa-f0-9])*+ )?\n(?: [pP][-+]? (?!_)(?:_? [0-9])++ )?"},{"name":"constant.numeric.float.decimal.webassembly","match":"(?x) (?\u003c!\\w)\n[-+]? (?!_)(?:_? \\d)++\n(?: \\. (?!_)(?:_? \\d)*+ )?\n(?: [eE][-+]? (?!_)(?:_? \\d)++ )?"},{"name":"constant.numeric.int.hex.webassembly","match":"(?\u003c!\\w)[-+]?0x(?!_)(?:_?[A-Fa-f0-9])++"},{"name":"constant.numeric.int.decimal.webassembly","match":"(?\u003c!\\w)[-+]?(?!_)(?:_?\\d)++"}]},"optional-immediate":{"match":"(?\u003c!\\w)(align|offset)(=)(?=[-+]?(?:\\d|0x[\\dA-Fa-f]))","captures":{"1":{"name":"variable.parameter.$1.webassembly"},"2":{"name":"keyword.operator.assignment.webassembly"}}},"string":{"name":"string.quoted.double.webassembly","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.newline.webassembly","match":"\\\\n"},{"name":"constant.character.escape.tab.webassembly","match":"\\\\t"},{"name":"constant.character.escape.backslash.webassembly","match":"\\\\{2}"},{"name":"constant.character.escape.quote.single.webassembly","match":"\\\\'"},{"name":"constant.character.escape.quote.double.webassembly","match":"\\\\\""},{"name":"constant.character.escape.hex.unicode.webassembly","match":"\\\\[0-9A-Fa-f]{2}|\\\\u({)[A-Fa-f0-9]+(})","captures":{"1":{"name":"punctuation.definition.unicode-escape.begin.bracket.curly.webassembly"},"2":{"name":"punctuation.definition.unicode-escape.end.bracket.curly.webassembly"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.webassembly"}}},"type":{"patterns":[{"name":"storage.type.number.$1.webassembly","match":"\\b([if](?:32|64)|v128|i8|i16)(?=[\\s()]|$|;;)"},{"name":"storage.type.simd.$1.webassembly","match":"\\b(f32x4|f64x2|i8x16|i16x8|i32x4|i64x2)(?=[\\s()]|$|;;)"},{"name":"storage.type.reference.$1.webassembly","match":"\\b((?:any|data|eq|extern|func|i31)ref)(?=[\\s()]|$|;;)"}]}}}
|
|
1
|
+
{"name":"WebAssembly","scopeName":"source.webassembly","patterns":[{"name":"comment.line.hashbang.webassembly","begin":"\\A(#!)","end":"$","beginCaptures":{"1":{"name":"punctuation.definition.comment.hashbang.webassembly"}}},{"include":"#main"}],"repository":{"comment-block":{"name":"comment.block.semicolon.webassembly","begin":"\\(;","end":";\\)","patterns":[{"include":"#comment-block"}],"beginCaptures":{"0":{"name":"punctuation.section.comment.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.section.comment.end.webassembly"}}},"comment-line":{"name":"comment.line.semicolon.webassembly","begin":";;","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.webassembly"}}},"dot":{"name":"punctuation.separator.method.period.webassembly","match":"\\."},"expression":{"patterns":[{"name":"meta.expression.$2.webassembly","begin":"(\\()(\\w+)(?=[\\s()]|$|;;)","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.section.expression.begin.webassembly"},"2":{"patterns":[{"include":"#main"}]}},"endCaptures":{"0":{"name":"punctuation.section.expression.end.webassembly"}}},{"name":"meta.expression.webassembly","begin":"\\(","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.expression.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.section.expression.end.webassembly"}}}]},"instructions":{"patterns":[{"name":"keyword.control.instruction.$1.webassembly","match":"(?x) \\b\n( block\n| br(?:_if|_table|_on_(?:cast(?:_fail)?|data|func|i31|(?:non_)?null))?\n| call(?:_indirect|_ref)?\n| catch_all\n| catch\n| delegate\n| else\n| end\n| if\n| loop\n| nop\n| rethrow\n| return(?:_call(?:_indirect|_ref)?)?\n| then\n| throw(?:_ref)?\n| try(?:_table)?\n| unreachable\n| unwind\n) (?=[\\s()]|$|;;)"},{"name":"entity.name.function.instruction.$1.webassembly","match":"(?x) \\b\n(\n\t(f32|f64) \\.\n\t( (?\u003c=f32.) (demote_f64|reinterpret_i32)\n\t| (?\u003c=f64.) (promote_f32|reinterpret_i64)\n\t| abs\n\t| add\n\t| atomic (?:\\.\\w+)++\n\t| ceil\n\t| const\n\t| convert_i(32|64)_[su]\n\t| copysign\n\t| div\n\t| eq\n\t| floor\n\t| [gl][et]\n\t| load\n\t| max\n\t| min\n\t| mul\n\t| nearest\n\t| neg?\n\t| ne\n\t| sqrt\n\t| store\n\t| sub\n\t| trunc\n\t)\n\t|\n\t\n\t(i32|i64) \\.\n\t( (?\u003c=i32.) (reinterpret_f32|wrap_i64)\n\t| (?\u003c=i64.) (extend_i32_[su]|extend32_s|load32_[su]|reinterpret_f64|store32|add128|sub128|mul_wide_[su])\n\t| add\n\t| and\n\t| atomic (?:\\.\\w+)++\n\t| clz\n\t| const\n\t| ctz\n\t| div_[su]\n\t| eqz?\n\t| eq\n\t| extend(8|16)_s\n\t| [gl][et]_[su]\n\t| load(8|16)_[su]\n\t| load\n\t| mul\n\t| ne\n\t| x?or\n\t| popcnt\n\t| rem_[su]\n\t| rot[lr]\n\t| shl\n\t| shr_[su]\n\t| store(8|16)?\n\t| sub\n\t| trunc_(sat_)?f(32|64)_[su]\n\t)\n\t|\n\t\n\tv128 \\.\n\t( andnot\n\t| and\n\t| any_true\n\t| atomic (?:\\.\\w+)++\n\t| bitselect\n\t| const\n\t| load((8|16)_lane|(32|64)_(lane|zero)|(8|16|32|64)_splat|(8x8|16x4|32x2)_[su])?\n\t| not\n\t| x?or\n\t| store((8|16|32|64)_lane)?\n\t)\n\t|\n\n\t(f32x4|f64x2) \\.\n\t( (?\u003c=f32x4.) (convert_i32x4_[su]|demote_f64x2_zero)\n\t| (?\u003c=f64x2.) (convert_low_i32x4_[su]|promote_low_f32x4)\n\t| abs\n\t| add\n\t| ceil\n\t| div\n\t| eq\n\t| (extract|replace)_lane\n\t| floor\n\t| [gl][et]\n\t| p?max\n\t| p?min\n\t| mul\n\t| nearest\n\t| neg?\n\t| relaxed_(madd|max|min|nmadd)\n\t| splat\n\t| sqrt\n\t| sub\n\t| trunc\n\t)\n\t|\n\t\n\ti8x16 \\.\n\t( abs\n\t| (?:add|sub)_sat_[su]\n\t| add\n\t| all_true\n\t| avgr_u\n\t| bitmask\n\t| eq\n\t| extract_lane_[su]\n\t| [gl][et]_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| narrow_i16x8_[su]\n\t| neg?\n\t| ne\n\t| popcnt\n\t| relaxed_(laneselect|swizzle)\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| shuffle\n\t| splat\n\t| sub\n\t| swizzle\n\t)\n\t|\n\t\n\ti16x8 \\.\n\t( abs\n\t| (?:add|sub)_sat_[su]\n\t| add\n\t| all_true\n\t| avgr_u\n\t| bitmask\n\t| eq\n\t| ext(add_pairwise|(end|mul)_(high|low))_i8x16_[su]\n\t| extract_lane_[su]\n\t| [gl][et]_[su]\n\t| load8x8_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| mul\n\t| narrow_i32x4_[su]\n\t| neg?\n\t| ne\n\t| q15mulr_sat_s\n\t| relaxed_(dot_i8x16_i7x16_s|laneselect|q15mulr_s)\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t)\n\t|\n\n\ti32x4 \\.\n\t( abs\n\t| add\n\t| all_true\n\t| bitmask\n\t| dot_i16x8_s\n\t| eq\n\t| ext(add_pairwise|(end|mul)_(high|low))_i16x8_[su]\n\t| extract_lane\n\t| [gl][et]_[su]\n\t| load16x4_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| mul\n\t| neg?\n\t| ne\n\t| relaxed_(dot_i8x16_i7x16_add_s|laneselect|trunc_(f32x4|f64x2)_[su])\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t| trunc_sat_f32x4_[su]\n\t| trunc_sat_f64x2_[su]_zero\n\t)\n\t|\n\n\ti64x2 \\.\n\t( abs\n\t| add\n\t| all_true\n\t| bitmask\n\t| eq\n\t| ext(end|mul)_(high|low)_i32x4_[su]\n\t| extract_lane\n\t| [gl][et]_s\n\t| load32x2_[su]\n\t| load_splat\n\t| mul\n\t| neg?\n\t| ne\n\t| relaxed_laneselect\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t)\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"include":"#dot"}]}}},{"match":"\\b([if](?:32|64)(\\.)\\w+)(/)([if](?:32|64))","captures":{"1":{"name":"entity.name.function.instruction.$1.webassembly"},"2":{"patterns":[{"include":"#dot"}]},"3":{"name":"punctuation.separator.method.slash.webassembly"},"4":{"patterns":[{"include":"#type"}]}}},{"name":"entity.name.function.instruction.$1.webassembly","match":"(?x) \\b\n(?:array|struct)\n(?:\n\t(\\.)\n\t( len\n\t| new\n\t\t( _data\n\t\t| _default (?:_with_rtt)?\n\t\t| _elem\n\t\t| _fixed\n\t\t| _with_rtt\n\t\t)?\n\t| get_[su]\n\t| [gs]et\n\t| copy\n\t| fill\n\t| (?\u003c=array\\.) init_(data|elem)\n\t)\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"include":"#dot"}]}}},{"name":"entity.name.function.instruction.$1.webassembly","match":"(?x) \\b\n( any\\.convert_extern\n| (current|grow)_memory\n| data\\.drop\n| drop\n| elem\\.drop\n| extern\\.convert_any\n| field\n| i31 \\. (new|get_[su])\n| ([gs]et|tee)_(local|global)\n| global\\.[gs]et\n| local\\.([gs]et|tee)\n| memory\\.(atomic\\.(notify|wait32|wait64)|copy|fill|grow|init|size)\n| ref(\\.([ai]s_(data|func|i31|non_null)|cast|eq|func|i31|is_null|null|test))\n| rtt(\\.(canon|sub))?\n| select\n| table\\.(copy|fill|get|grow|init|set|size)\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"include":"#dot"}]}}},{"name":"storage.type.$1.webassembly","match":"(?x) \\b\n( anyfunc\n| data\n| declare\n| element\n| elem\n| export\n| extern\n| func\n| global\n| import\n| item\n| local\n| mem\n| memory\n| module\n| mut\n| offset\n| param\n| result\n| start\n| table\n| tag\n| type\n) (?=[\\s()]|$|;;)"},{"name":"support.function.scripting.webassembly","match":"(?x) \\b\n( assert_exhaustion\n| assert_invalid\n| assert_malformed\n| assert_return (?:_(?:arithmetic|canonical)_nan)?\n| assert_trap\n| assert_unlinkable\n| binary\n| input\n| invoke\n| get\n| output\n| quote\n| ref\\.extern\n| ref\\.host\n| register\n| script\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"include":"#dot"}]}}}]},"main":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"include":"#expression"},{"include":"#instructions"},{"include":"#type"},{"include":"#number"},{"include":"#name"},{"include":"#string"},{"include":"#optional-immediate"}]},"name":{"name":"variable.other.name.webassembly","match":"(\\$)[-A-Za-z0-9_.+*/\\\\^~=\u003c\u003e!?@#$%\u0026|:'`]+","captures":{"1":{"name":"punctuation.definition.variable.webassembly"}}},"number":{"patterns":[{"name":"constant.language.nan.with-payload.webassembly","match":"(?\u003c!\\w)[-+]?nan(:)(0x(?!_)(?:_?[A-Fa-f0-9])+)","captures":{"1":{"name":"punctuation.separator.payload.colon.webassembly"},"2":{"name":"constant.numeric.int.hex.payload.webassembly"}}},{"name":"constant.language.$1.$2.webassembly","match":"(?\u003c!\\w)[-+]?(inf|nan)(?:(?\u003c=nan):(arithmetic|canonical))?(?!\\w)"},{"name":"constant.numeric.float.hex.webassembly","match":"(?x) (?\u003c!\\w)\n[-+]? 0x (?!_)(?:_? [A-Fa-f0-9])++\n(?: \\. (?!_)(?:_? [A-Fa-f0-9])*+ )?\n(?: [pP][-+]? (?!_)(?:_? [0-9])++ )?"},{"name":"constant.numeric.float.decimal.webassembly","match":"(?x) (?\u003c!\\w)\n[-+]? (?!_)(?:_? \\d)++\n(?: \\. (?!_)(?:_? \\d)*+ )?\n(?: [eE][-+]? (?!_)(?:_? \\d)++ )?"},{"name":"constant.numeric.int.hex.webassembly","match":"(?\u003c!\\w)[-+]?0x(?!_)(?:_?[A-Fa-f0-9])++"},{"name":"constant.numeric.int.decimal.webassembly","match":"(?\u003c!\\w)[-+]?(?!_)(?:_?\\d)++"}]},"optional-immediate":{"match":"(?\u003c!\\w)(align|offset)(=)(?=[-+]?(?:\\d|0x[\\dA-Fa-f]))","captures":{"1":{"name":"variable.parameter.$1.webassembly"},"2":{"name":"keyword.operator.assignment.webassembly"}}},"string":{"name":"string.quoted.double.webassembly","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.newline.webassembly","match":"\\\\n"},{"name":"constant.character.escape.tab.webassembly","match":"\\\\t"},{"name":"constant.character.escape.backslash.webassembly","match":"\\\\{2}"},{"name":"constant.character.escape.quote.single.webassembly","match":"\\\\'"},{"name":"constant.character.escape.quote.double.webassembly","match":"\\\\\""},{"name":"constant.character.escape.hex.unicode.webassembly","match":"\\\\[0-9A-Fa-f]{2}|\\\\u({)[A-Fa-f0-9]+(})","captures":{"1":{"name":"punctuation.definition.unicode-escape.begin.bracket.curly.webassembly"},"2":{"name":"punctuation.definition.unicode-escape.end.bracket.curly.webassembly"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.webassembly"}}},"type":{"patterns":[{"name":"storage.type.number.$1.webassembly","match":"\\b([if](?:32|64))(?=[\\s()]|$|;;)"},{"name":"storage.type.packed.$1.webassembly","match":"\\b(i8|i16)(?=[\\s()]|$|;;)"},{"name":"storage.type.vector.$1.webassembly","match":"\\b(v128)(?=[\\s()]|$|;;)"},{"name":"storage.type.heap.$1.webassembly","match":"\\b(noexn|nofunc|noextern|none|func|extern|any|eq|i31|struct|array|exn)(?=[\\s()]|$|;;)"},{"name":"storage.type.reference.$1.webassembly","match":"\\b(?:((?:any|data|eq|extern|func|i31|struct|array|exn|null(?:func|exn|extern)?)?ref))(?=[\\s()]|$|;;)"},{"match":"(?\u003c=ref)(?\u003c!\\wref)\\s+(null)(?=[\\s()]|$|;;)","captures":{"1":{"name":"storage.modifier.reference.nullable.webassembly"}}},{"match":"\\b(sub)(?:\\s+(final))?(?=[\\s()]|$|;;)","captures":{"1":{"name":"storage.type.sub.webassembly"},"2":{"name":"storage.modifier.final.webassembly"}}},{"name":"storage.type.recursive.$1.webassembly","match":"\\b(rec)(?=[\\s()]|$|;;)"},{"name":"storage.type.simd.$1.webassembly","match":"\\b(f32x4|f64x2|i8x16|i16x8|i32x4|i64x2)(?=[\\s()]|$|;;)"}]}}}
|
data/grammars/source.wesl.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"WESL","scopeName":"source.wesl","patterns":[{"include":"#documentation_comment"},{"include":"#keywords"},{"include":"source.wgsl"}],"repository":{"documentation_comment":{"name":"comment.line.documentation.wgsl","match":"\\s*///.*"},"keywords":{"patterns":[{"name":"keyword.control.import.wesl","match":"\\b(import)\\b"},{"name":"keyword.control.wesl","match":"\\b(package|super|as)\\b"},{"name":"keyword.operator.module.wesl","match":"::"}]}}}
|
|
1
|
+
{"name":"WESL","scopeName":"source.wesl","patterns":[{"include":"#documentation_comment"},{"include":"#keywords"},{"include":"source.wgsl"}],"repository":{"documentation_comment":{"name":"comment.line.documentation.wgsl","match":"\\s*///.*"},"keywords":{"patterns":[{"name":"keyword.control.import.wesl","match":"\\b(import)\\b"},{"name":"keyword.control.wesl","match":"\\b(package|super|as)\\b"},{"name":"storage.modifier.wesl","match":"\\b(public|private)\\b"},{"name":"keyword.operator.module.wesl","match":"::"}]}}}
|
data/grammars/source.wgsl.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"WGSL","scopeName":"source.wgsl","patterns":[{"include":"#line_ending_comments"},{"include":"#block_comments"},{"include":"#attributes"},{"include":"#functions"},{"include":"#keywords"},{"include":"#function_calls"},{"include":"#literals"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"},{"include":"#reserved_words"},{"include":"#address_spaces"},{"include":"#memory_access_modes"},{"include":"#operators"},{"include":"#built-in_value_names"}],"repository":{"address_spaces":{"name":"storage.modifier.address_spaces.wgsl","match":"\\b(function|private|workgroup|uniform|storage|handle)\\b"},"attributes":{"patterns":[{"name":"entity.other.attribute.wgsl","match":"@\\s*[_$[:alpha:]][_$[:alnum:]]*\\b"}]},"block_comments":{"name":"comment.block.wgsl","begin":"/\\*","end":"\\*/","patterns":[{"include":"#block_comments"}]},"built-in_value_names":{"name":"variable.language.built-ins.wgsl","match":"\\b(vertex_index|instance_index|position|front_facing|frag_depth|sample_index|sample_mask|local_invocation_id|local_invocation_index|global_invocation_id|workgroup_id|num_workgroups|subgroup_invocation_id|subgroup_size)\\b"},"function_arguments":{"patterns":[{"include":"#line_ending_comments"},{"include":"#block_comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#function_calls"},{"include":"#literals"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"},{"include":"#reserved_words"},{"include":"#address_spaces"},{"include":"#memory_access_modes"},{"include":"#operators"},{"include":"#built-in_value_names"}]},"function_calls":{"patterns":[{"name":"meta.function.wgsl","begin":"([_$[:alpha:]][_$[:alnum:]]*)\\s*(\u003c[^|\u0026()]
|
|
1
|
+
{"name":"WGSL","scopeName":"source.wgsl","patterns":[{"include":"#line_ending_comments"},{"include":"#block_comments"},{"include":"#attributes"},{"include":"#functions"},{"include":"#keywords"},{"include":"#function_calls"},{"include":"#literals"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"},{"include":"#reserved_words"},{"include":"#address_spaces"},{"include":"#memory_access_modes"},{"include":"#operators"},{"include":"#built-in_value_names"}],"repository":{"address_spaces":{"name":"storage.modifier.address_spaces.wgsl","match":"\\b(function|private|workgroup|uniform|storage|handle)\\b"},"attributes":{"patterns":[{"name":"entity.other.attribute.wgsl","match":"@\\s*[_$[:alpha:]][_$[:alnum:]]*\\b"}]},"block_comments":{"name":"comment.block.wgsl","begin":"/\\*","end":"\\*/","patterns":[{"include":"#block_comments"}]},"built-in_value_names":{"name":"variable.language.built-ins.wgsl","match":"\\b(vertex_index|instance_index|position|front_facing|frag_depth|sample_index|sample_mask|local_invocation_id|local_invocation_index|global_invocation_id|workgroup_id|num_workgroups|subgroup_invocation_id|subgroup_size)\\b"},"function_arguments":{"patterns":[{"include":"#line_ending_comments"},{"include":"#block_comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#function_calls"},{"include":"#literals"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"},{"include":"#reserved_words"},{"include":"#address_spaces"},{"include":"#memory_access_modes"},{"include":"#operators"},{"include":"#built-in_value_names"}]},"function_calls":{"patterns":[{"name":"meta.function.wgsl","begin":"([_$[:alpha:]][_$[:alnum:]]*)\\s*(?:(\u003c)([^|\u0026()]+)(\u003e))?(\\()","end":"\\)","patterns":[{"include":"#function_arguments"}],"beginCaptures":{"1":{"name":"entity.name.function.wgsl"},"2":{"name":"punctuation.brackets.angle.wgsl"},"3":{"patterns":[{"include":"#function_arguments"}]},"4":{"name":"punctuation.brackets.angle.wgsl"},"5":{"name":"punctuation.brackets.round.wgsl"}},"endCaptures":{"0":{"name":"punctuation.brackets.round.wgsl"}}}]},"functions":{"patterns":[{"name":"meta.function.definition.wgsl","begin":"\\b(fn)\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*((\\()|(\u003c))","end":"\\{","patterns":[{"include":"#function_arguments"}],"beginCaptures":{"1":{"name":"keyword.fn.wgsl"},"2":{"name":"entity.name.function.definition.wgsl"},"4":{"name":"punctuation.brackets.round.wgsl"}},"endCaptures":{"0":{"name":"punctuation.brackets.curly.wgsl"}}}]},"keywords":{"patterns":[{"name":"keyword.other.declarations-and-types.wgsl","match":"\\b(alias|const|fn|let|override|struct|var)\\b"},{"name":"keyword.control.wgsl","match":"\\b(break|case|continue|continuing|default|discard|(?\u003c!#)else|for|if|loop|return|switch|while)\\b"},{"name":"keyword.other.assertions.wgsl","match":"\\b(const_assert)\\b"},{"name":"keyword.other.directive.wgsl","match":"(?\u003c!@)\\b(diagnostic|enable|requires)\\b"}]},"line_ending_comments":{"name":"comment.line.double-slash.wgsl","match":"\\s*//.*"},"literals":{"patterns":[{"name":"constant.numeric.decimal.int.wgsl","match":"\\b(0[iu]?|[1-9][0-9]*[iu]?)\\b"},{"name":"constant.numeric.hex.int.wgsl","match":"\\b(0[xX][0-9a-fA-F]+[iu]?)\\b"},{"name":"constant.numeric.decimal.float.wgsl","match":"\\b(0[fh]|[1-9][0-9]*[fh]|[0-9]*\\.[0-9]+([eE][+-]?[0-9]+)?[fh]?|[0-9]+\\.[0-9]*([eE][+-]?[0-9]+)?[fh]?|[0-9]+[eE][+-]?[0-9]+[fh]?)\\b"},{"name":"constant.numeric.hex.float.wgsl","match":"\\b(0[xX][0-9a-fA-F]*\\.[0-9a-fA-F]+([pP][+-]?[0-9]+[fh]?)?|0[xX][0-9a-fA-F]+\\.[0-9a-fA-F]*([pP][+-]?[0-9]+[fh]?)?|0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?)\\b"},{"name":"constant.language.boolean.wgsl","match":"\\b(true|false)\\b"}]},"matrix_types":{"patterns":[{"name":"storage.type.matrixes.wgsl","match":"\\b(mat[2-4]x[2-4])\\b"},{"name":"storage.type.matrixes.wgsl","match":"\\b(mat[2-4]x[2-4])(f|h)\\b"}]},"memory_access_modes":{"name":"storage.modifier.memory_access_modes.wgsl","match":"\\b(read|write|read_write)\\b"},"memory_views":{"name":"storage.type.ptr.wgsl","match":"\\b(ptr)\\b"},"operators":{"patterns":[{"name":"keyword.operator.logical.wgsl","match":"(\\^|\\||\\|\\||\u0026\u0026|\u003c\u003c|\u003e\u003e|!)(?!=)"},{"name":"keyword.operator.address-of.and.wgsl","match":"\u0026(?![\u0026=])"},{"name":"keyword.operator.assignment.wgsl","match":"(\\+=|-=|\\*=|/=|%=|\\^=|\u0026=|\\|=|\u003c\u003c=|\u003e\u003e=)"},{"name":"keyword.operator.assignment.equal.wgsl","match":"(?\u003c![\u003c\u003e])=(?!=|\u003e)"},{"name":"keyword.operator.comparison.wgsl","match":"(==|!=|\u003c=|\u003e=|\u003c|\u003e)"},{"name":"keyword.operator.math.wgsl","match":"(([+%]|(\\*(?!\\w)))(?!=))|(-(?!\u003e))|(/(?!/))"},{"name":"keyword.operator.access.dot.wgsl","match":"\\.(?!\\.)"},{"name":"keyword.operator.arrow.skinny.wgsl","match":"-\u003e"},{"name":"keyword.operator.type.annotation.wgsl","match":":"}]},"plain_types":{"patterns":[{"name":"storage.type.boolean.wgsl","match":"\\b(bool)\\b"},{"name":"storage.type.integer.wgsl","match":"\\b(i32|u32)\\b"},{"name":"storage.type.floating-point.wgsl","match":"\\b(f32|f16)\\b"},{"include":"#vector_types"},{"include":"#matrix_types"},{"name":"storage.type.wgsl","match":"\\b(atomic)\\b"},{"name":"storage.type.wgsl","match":"\\b(array)\\b"},{"name":"entity.name.type.wgsl","match":"\\b([A-Z][_$[:alnum:]]*)\\b"},{"name":"storage.type.wgsl","match":"\\b(i64|u64|f64)\\b"}]},"punctuation":{"patterns":[{"name":"punctuation.comma.wgsl","match":","},{"name":"punctuation.brackets.curly.wgsl","match":"[{}]"},{"name":"punctuation.brackets.round.wgsl","match":"[()]"},{"name":"punctuation.semi.wgsl","match":";"},{"name":"punctuation.brackets.square.wgsl","match":"[\\[\\]]"}]},"reserved_words":{"name":"keyword.other.reserved_words.wgsl","match":"\\b(aNULL|Self|abstract|active|alignas|alignof|as|asm|asm_fragment|async|attribute|auto|await|become|cast|catch|class|co_await|co_return|co_yield|coherent|column_major|common|compile|compile_fragment|concept|const_cast|consteval|constexpr|constinit|crate|debugger|decltype|delete|demote|demote_to_helper|do|dynamic_cast|enum|explicit|export|extends|extern|external|fallthrough|filter|final|finally|friend|from|fxgroup|get|goto|groupshared|highp|impl|implements|import|inline|instanceof|interface|layout|lowp|macro|macro_rules|match|mediump|meta|mod|module|move|mut|mutable|namespace|new|nil|noexcept|noinline|nointerpolation|non_coherent|noncoherent|noperspective|null|nullptr|of|operator|package|packoffset|partition|pass|patch|pixelfragment|precise|precision|premerge|priv|protected|pub|public|readonly|ref|regardless|register|reinterpret_cast|require|resource|restrict|self|set|shared|sizeof|smooth|snorm|static|static_assert|static_cast|std|subroutine|super|target|template|this|thread_local|throw|trait|try|type|typedef|typeid|typename|typeof|union|unless|unorm|unsafe|unsized|use|using|varying|virtual|volatile|wgsl|where|with|writeonly|yield)\\b"},"template_types":{"name":"meta.type.template.wgsl","begin":"\\b(array|atomic|ptr|vec[2-4]|mat[2-4]x[2-4]|texture_storage_(?:1d|2d|2d_array|3d))\\s*(\u003c)","end":"\u003e","patterns":[{"include":"#function_arguments"}],"beginCaptures":{"1":{"name":"storage.type.wgsl"},"2":{"name":"punctuation.brackets.angle.wgsl"}},"endCaptures":{"0":{"name":"punctuation.brackets.angle.wgsl"}}},"texture_and_sampler_types":{"patterns":[{"name":"storage.type.sampled-texture.wgsl","match":"\\b(texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array)\\b"},{"name":"storage.type.sampled-texture.wgsl","match":"\\b(texture_multisampled_2d|texture_depth_multisampled_2d)\\b"},{"name":"storage.type.external-sampled-texture.wgsl","match":"\\b(texture_external)\\b"},{"name":"storage.type.external-sampled-texture.wgsl","match":"\\b(texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d)\\b"},{"name":"storage.type.depth-texture.wgsl","match":"\\b(texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array)\\b"},{"name":"storage.type.sampler.wgsl","match":"\\b(sampler|sampler_comparison)\\b"}]},"types":{"patterns":[{"include":"#template_types"},{"include":"#plain_types"},{"include":"#memory_views"},{"include":"#texture_and_sampler_types"}]},"variables":{"patterns":[{"name":"variable.other.wgsl","match":"\\b([_$[:alpha:]][_$[:alnum:]]*)\\b"}]},"vector_types":{"patterns":[{"name":"storage.type.vectors.wgsl","match":"\\b(vec)([2-4])\\b"},{"name":"storage.type.vectors.wgsl","match":"\\b(vec)([2-4])(i|u|f|h)\\b"}]}}}
|