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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Antlers (Statamic Syntax)","scopeName":"text.html.statamic","patterns":[{"include":"#php-tag"},{"include":"#statamic-comments"},{"include":"#frontMatter"},{"include":"#antlers-tags"}],"repository":{"antlers-conditionals":{"name":"keyword.control.statamic","match":"(?\u003c!:)(/?else|/?elseif|/?if|/?unless|endif|endunless|unlesselse|stop)"},"antlers-constants":{"match":"(\\G|\\s|\\b)(true|TRUE|false|FALSE|yes|YES|no|NO|null|as)\\s","captures":{"2":{"name":"constant.language.statamic"}}},"antlers-expression":{"patterns":[{"name":"punctuation.terminator.expression.statamic","match":";"},{"include":"#antlers-strings"},{"include":"#antlers-numbers"},{"name":"keyword.operator.key.statamic","match":"=\u003e"},{"name":"keyword.operator.class.statamic","match":"-\u003e"},{"include":"#statamic-explicit-tags"},{"include":"#statamic-core-tags"},{"name":"keyword.operator.comparison.statamic","match":"===|==|!==|!=|\u003c\u003e"},{"name":"keyword.operator.string.statamic","match":"\\\u0026=?"},{"name":"keyword.operator.assignment.statamic","match":"=|\\+=|\\-=|\\*\\*?=|/=|%=|\\|=|\\^=|\u003c\u003c=|\u003e\u003e="},{"name":"keyword.operator.logical.statamic","match":"(?\u003c!-)\\b(?i)(!|\\?\\?|\\?=|\\?|\u0026\u0026|\u0026|\\|\\|)|\\b(and|or|xor)\\b"},{"name":"keyword.operator.bitwise.statamic","match":"(?i)\\b(bwa|bwo|bxor|bnot|bsl|bsr)\\b"},{"name":"keyword.operator.comparison.statamic","match":"\u003c=\u003e|\u003c=|\u003e=|\u003c|\u003e"},{"name":"keyword.operator.arithmetic.statamic","match":"\\-|\\+|\\*\\*?|/|%"},{"name":"meta.array.statamic","begin":"(arr|list|switch)\\s*(\\()","end":"\\)|(?=\\?\u003e)","patterns":[{"include":"#antlers-expression"}],"beginCaptures":{"1":{"name":"support.function.construct.statamic"},"2":{"name":"punctuation.definition.array.begin.bracket.round.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.bracket.round.statamic"}}},{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]},{"include":"#antlers-tag-parameter-variable"},{"include":"#antlers-language-operators"},{"include":"#antlers-variable"},{"include":"#antlers-modifier-pipe"},{"include":"#antlers-variable-modifier-name"},{"include":"#antlers-variable-modifiers"},{"include":"#antlers-constants"}]},"antlers-language-operators":{"match":"(\\w+)[\\s]","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#antlers-numbers"},{"include":"#language-operators"}]}}},"antlers-modifier-pipe":{"name":"keyword.operator.other.statamic","match":"(\\|)"},"antlers-numbers":{"name":"constant.numeric.statamic","match":"0|[1-9](?:_?[0-9]+)*"},"antlers-strings":{"patterns":[{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}]},"antlers-tag-parameter-variable":{"match":"(:?([\\S:]+?)(=)('|\")([^\\4]*?)(\\4))","captures":{"1":{"patterns":[{"match":"\\\\([\\S:]+?)(=)('|\")([({].*?[}])('|\")","captures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"punctuation.definition.string.begin.html"},"4":{"patterns":[{"include":"source.js"}]},"5":{"name":"punctuation.definition.string.end.html"}}},{"match":"\\\\([\\S:]+?)(=)('|\")(.*?)(\\3)","captures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"punctuation.definition.string.begin.html"},"4":{"name":"string.quoted.double.html"},"5":{"name":"punctuation.definition.string.end.html"}}},{"match":":([\\S:]+?)(=)('|\")(.*?)(\\3)","captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"keyword.operator.assignment.statamic"},"3":{"name":"punctuation.definition.string.begin.statamic"},"4":{"patterns":[{"include":"#antlers-expression"}]},"5":{"name":"punctuation.definition.string.end.statamic"}}},{"match":"([\\S]+?)(=)(('|\")(.*?)(\\4))","captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"keyword.operator.assignment.statamic"},"3":{"patterns":[{"include":"#string-single-quoted"},{"include":"#string-double-quoted"}]}}}]}}},"antlers-tags":{"name":"meta.embedded.block.statamic","begin":"(?\u003c!@){{(?!\\$)(\\s?)","end":"(\\s?)}}","patterns":[{"include":"#statamic-comments"},{"include":"#php-tag"},{"include":"#antlers-conditionals"},{"include":"#antlers-expression"}]},"antlers-variable":{"match":"(/?\\w+)(:)?(\\w+)?","captures":{"1":{"name":"variable.statamic"},"2":{"name":"keyword.operator.statamic"},"3":{"name":"variable.statamic","patterns":[{"include":"$self"}]}}},"antlers-variable-modifier-name":{"match":"(\\s)?(\\|)(\\s)?(\\w+((^:([a-zA-Z0-9-_/-@]+)){1,2})?|((-|\\+|\\*|/|\\^|\\%):(\\d*)?\\.?(\\d+)))+","captures":{"2":{"name":"keyword.operator.statamic"},"4":{"name":"support.function.statamic"}}},"antlers-variable-modifiers":{"match":"(\\s)?(\\|)(\\s)?(\\w+((:([a-zA-Z0-9-_/-@]+)){1,2})?|((-|\\+|\\*|/|\\^|\\%):(\\d*)?\\.?(\\d+)))+","captures":{"2":{"name":"keyword.operator.statamic"},"4":{"name":"support.function.statamic","patterns":[{"include":"#antlers-expression"}]}}},"core-tag-names":{"patterns":[{"name":"entity.name.tag.statamic","match":"(?i)\\b(taxonomy|cookie|user_groups|user_roles|get_site|collection|asset|nocache|vite|mount_url|form|assets|cache|can|dd|ddd|dump|get_content|get_error|get_errors|get_files|glide|in|increment|installed|is|iterate|foreach|link|locales|markdown|member|mix|nav|not_found|404|obfuscate|parent|partial|path|query|range|loop|redirect|relate|rotate|route|scope|section|session|set|structure|svg|theme|trans|trans_choice|user|users|widont|yields|yield|slot|once|noparse|view|stack|push)\\b"}]},"frontMatter":{"contentName":"meta.embedded.block.frontmatter","begin":"\\A-{3}\\s*$","end":"(^|\\G)-{3}|\\.{3}\\s*$","patterns":[{"include":"source.yaml"}]},"language-operators":{"patterns":[{"name":"support.function.array.statamic","match":"(?i)\\b(pluck|take|skip|arr|orderby|groupby|merge|where|switch|bwa|bwo|bxor|bnot|bsl|bsr|if|elseif|else|void)(\\b)"}]},"php-tag":{"patterns":[{"name":"meta.embedded.block.statamic","contentName":"source.php","begin":"\u003c\\?(?i:php|=)?(?![^?]*\\?\u003e)","end":"(\\?)\u003e","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}},{"name":"meta.embedded.line.statamic","contentName":"source.php","begin":"(?\u003c!@){{([\\$\\?]\\s?)","end":"(\\s?)[\\$\\?]}}","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}},{"name":"meta.embedded.line.statamic","contentName":"source.php","begin":"\u003c\\?(?i:php|=)?","end":"(\\?)\u003e","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}}]},"statamic-comments":{"name":"comment.block.statamic","begin":"{{#","end":"#}}"},"statamic-core-closing-tags":{"match":"\\/(\\w+)+","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#core-tag-names"}]}}},"statamic-core-tags":{"match":"\\G(/?\\w+)+","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#core-tag-names"}]}}},"statamic-explicit-tags":{"match":"\\G(/?%\\w+)+","captures":{"1":{"name":"entity.name.tag.statamic"}}},"string-double-quoted":{"name":"string.quoted.double.statamic","begin":"\"","end":"\"","patterns":[{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.statamic"}}},"string-single-quoted":{"name":"string.quoted.single.statamic","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.statamic","match":"\\\\[\\\\']"},{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.statamic"}}}},"injections":{"text.html.statamic":{"patterns":[{"include":"#statamic-comments"},{"include":"#antlers-tags"}]},"text.html.statamic - (meta.embedded | meta.tag | comment.block.html | comment.block.statamic), L:(text.html.statamic meta.tag - (comment.block.statamic | meta.embedded.statamic | comment.block.html))":{"patterns":[{"include":"text.html.basic"}]},"text.html.statamic - (meta.embedded | meta.tag), L:((text.html.statamic meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (meta.embedded.block.php | meta.embedded.line.php))":{"patterns":[{"include":"#php-tag"}]}}}
|
|
1
|
+
{"name":"Antlers (Statamic Syntax)","scopeName":"text.html.statamic","patterns":[{"include":"#php-tag"},{"include":"#antlers-directives"},{"include":"#antlers-components"},{"include":"#statamic-comments"},{"include":"#frontMatter"},{"include":"#dynamic-html-tag"},{"include":"#antlers-tags"}],"repository":{"alpine-attribute":{"name":"meta.attribute.alpine","begin":"(?:\\b(x-)|(:|@|#))([a-zA-Z0-9\\-_]+)(?:\\:([a-zA-Z\\-_]+))?(?:\\.([a-zA-Z0-9\\-_]+))*\\s*(=)","end":"(?\u003c=['\"`])|(?=[\\s\u003c\u003e])","patterns":[{"contentName":"meta.embedded.inline.alpinejs","begin":"`","end":"`","patterns":[{"include":"source.js#expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},{"contentName":"meta.embedded.inline.alpinejs","begin":"\"","end":"\"","patterns":[{"include":"source.js#expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},{"contentName":"meta.embedded.inline.alpinejs","begin":"'","end":"'","patterns":[{"include":"source.js#expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}}],"captures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"entity.other.attribute-name.html"},"4":{"name":"entity.other.attribute-name.html"},"5":{"name":"entity.other.attribute-name.html"},"6":{"name":"punctuation.separator.key-value.html"}}},"antlers-components":{"name":"meta.tag.statamic.component","begin":"(\u003c\\/?)(?:(s|statamic)([-:]))([a-zA-Z_][\\w:-]*)","end":"(/?\u003e)","patterns":[{"include":"text.html.basic#attribute"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"support.class.component.statamic"},"3":{"name":"punctuation.separator.component.statamic"},"4":{"name":"entity.name.tag.statamic"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},"antlers-conditionals":{"name":"keyword.control.statamic","match":"(?\u003c!:)(/?else|/?elseif|/?if|/?unless|endif|endunless|unlesselse|stop)"},"antlers-constants":{"match":"(\\G|\\s|\\b)(true|TRUE|false|FALSE|yes|YES|no|NO|null|as)\\s","captures":{"2":{"name":"constant.language.statamic"}}},"antlers-directives":{"patterns":[{"name":"meta.directive.statamic","contentName":"source.php","begin":"(?\u003c!@)(@)(props|aware|cascade)(\\s*)(\\()","end":"(\\))","patterns":[{"include":"text.html.php"}],"beginCaptures":{"1":{"name":"punctuation.definition.directive.statamic"},"2":{"name":"support.function.directive.statamic"},"4":{"name":"punctuation.section.group.begin.statamic"}},"endCaptures":{"1":{"name":"punctuation.section.group.end.statamic"}}},{"name":"meta.directive.statamic","match":"(?\u003c!@)(@)(cascade)\\b(?!\\s*\\()","captures":{"1":{"name":"punctuation.definition.directive.statamic"},"2":{"name":"support.function.directive.statamic"}}}]},"antlers-expression":{"patterns":[{"name":"punctuation.terminator.expression.statamic","match":";"},{"include":"#antlers-strings"},{"include":"#antlers-numbers"},{"name":"keyword.operator.key.statamic","match":"=\u003e"},{"name":"keyword.operator.class.statamic","match":"-\u003e"},{"include":"#statamic-explicit-tags"},{"include":"#statamic-core-tags"},{"name":"keyword.operator.comparison.statamic","match":"===|==|!==|!=|\u003c\u003e"},{"name":"keyword.operator.string.statamic","match":"\\\u0026=?"},{"name":"keyword.operator.assignment.statamic","match":"=|\\+=|\\-=|\\*\\*?=|/=|%=|\\|=|\\^=|\u003c\u003c=|\u003e\u003e="},{"name":"keyword.operator.logical.statamic","match":"(?\u003c!-)(!|\\?\\?|\\?=|\\?|\u0026\u0026|\u0026|\\|\\|)|(?i:\\b(and|or|xor)\\b)"},{"name":"keyword.operator.bitwise.statamic","match":"(?i)\\b(bwa|bwo|bxor|bnot|bsl|bsr)\\b"},{"name":"keyword.operator.comparison.statamic","match":"\u003c=\u003e|\u003c=|\u003e=|\u003c|\u003e"},{"name":"keyword.operator.arithmetic.statamic","match":"\\-|\\+|\\*\\*?|/|%"},{"name":"meta.array.statamic","begin":"(arr|list|switch)\\s*(\\()","end":"\\)|(?=\\?\u003e)","patterns":[{"include":"#antlers-expression"}],"beginCaptures":{"1":{"name":"support.function.construct.statamic"},"2":{"name":"punctuation.definition.array.begin.bracket.round.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.bracket.round.statamic"}}},{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]},{"include":"#antlers-tag-parameter-variable"},{"include":"#antlers-language-operators"},{"include":"#antlers-variable"},{"include":"#antlers-modifier-pipe"},{"include":"#antlers-variable-modifier-name"},{"include":"#antlers-variable-modifiers"},{"include":"#antlers-constants"}]},"antlers-language-operators":{"match":"(\\w+)[\\s]","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#antlers-numbers"},{"include":"#language-operators"}]}}},"antlers-modifier-pipe":{"name":"keyword.operator.other.statamic","match":"(\\|)"},"antlers-numbers":{"name":"constant.numeric.statamic","match":"0|[1-9](?:_?[0-9]+)*"},"antlers-strings":{"patterns":[{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}]},"antlers-tag-parameter-variable":{"match":"(?\u003c!\\S)(:?([\\S:]+?)(=)('|\")([^\\4]*?)(\\4))","captures":{"1":{"patterns":[{"match":"\\\\([\\S:]+?)(=)('|\")([({].*?[}])('|\")","captures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"punctuation.definition.string.begin.html"},"4":{"patterns":[{"include":"source.js"}]},"5":{"name":"punctuation.definition.string.end.html"}}},{"match":"\\\\([\\S:]+?)(=)('|\")(.*?)(\\3)","captures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"punctuation.definition.string.begin.html"},"4":{"name":"string.quoted.double.html"},"5":{"name":"punctuation.definition.string.end.html"}}},{"match":":([\\S:]+?)(=)('|\")(.*?)(\\3)","captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"keyword.operator.assignment.statamic"},"3":{"name":"punctuation.definition.string.begin.statamic"},"4":{"patterns":[{"include":"#antlers-expression"}]},"5":{"name":"punctuation.definition.string.end.statamic"}}},{"match":"([\\S]+?)(=)(('|\")(.*?)(\\4))","captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"keyword.operator.assignment.statamic"},"3":{"patterns":[{"include":"#string-single-quoted"},{"include":"#string-double-quoted"}]}}}]}}},"antlers-tags":{"name":"meta.embedded.block.statamic","begin":"(?\u003c!@){{(?!\\$)(\\s?)","end":"(\\s?)}}","patterns":[{"include":"#statamic-comments"},{"include":"#php-tag"},{"include":"#antlers-conditionals"},{"include":"#antlers-expression"}]},"antlers-variable":{"match":"(/?\\w+)(:)?(\\w+)?","captures":{"1":{"name":"variable.statamic"},"2":{"name":"keyword.operator.statamic"},"3":{"name":"variable.statamic","patterns":[{"include":"$self"}]}}},"antlers-variable-modifier-name":{"match":"(\\s)?(\\|)(\\s)?(\\w+((^:([a-zA-Z0-9-_/-@]+)){1,2})?|((-|\\+|\\*|/|\\^|\\%):(\\d*)?\\.?(\\d+)))+","captures":{"2":{"name":"keyword.operator.statamic"},"4":{"name":"support.function.statamic"}}},"antlers-variable-modifiers":{"match":"(\\s)?(\\|)(\\s)?(\\w+((:([a-zA-Z0-9-_/-@]+)){1,2})?|((-|\\+|\\*|/|\\^|\\%):(\\d*)?\\.?(\\d+)))+","captures":{"2":{"name":"keyword.operator.statamic"},"4":{"name":"support.function.statamic","patterns":[{"include":"#antlers-expression"}]}}},"core-tag-names":{"patterns":[{"name":"entity.name.tag.statamic","match":"(?i)\\b(taxonomy|cookie|user_groups|user_roles|get_site|collection|asset|nocache|vite|mount_url|form|assets|cache|can|children|dictionary|dd|ddd|dump|get_content|get_error|get_errors|get_files|glide|in|increment|installed|is|iterate|foreach|link|locales|markdown|member|mix|nav|not_found|404|oauth|obfuscate|parent|partial|path|protect|query|range|loop|redirect|relate|rotate|route|scope|search|section|session|set|structure|svg|theme|trans|trans_choice|user|users|widont|yields|yield|slot|once|noparse|view|stack|push)\\b"}]},"dynamic-html-tag":{"name":"meta.tag.other.dynamic.html","begin":"(\u003c/?)(?={{)","end":"(/?\u003e)","patterns":[{"include":"#antlers-tags"},{"include":"text.html.basic#attribute"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},"frontMatter":{"contentName":"meta.embedded.block.frontmatter","begin":"\\A-{3}\\s*$","end":"(^|\\G)-{3}|\\.{3}\\s*$","patterns":[{"include":"source.yaml"}]},"language-operators":{"patterns":[{"name":"support.function.array.statamic","match":"(?i)\\b(pluck|take|skip|arr|orderby|groupby|merge|where|switch|bwa|bwo|bxor|bnot|bsl|bsr|if|elseif|else|void)(\\b)"}]},"php-tag":{"patterns":[{"name":"meta.embedded.block.statamic","contentName":"source.php","begin":"\u003c\\?(?i:php|=)?(?![^?]*\\?\u003e)","end":"(\\?)\u003e","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}},{"name":"meta.embedded.line.statamic","contentName":"source.php","begin":"(?\u003c!@){{([\\$\\?]\\s?)","end":"(\\s?)[\\$\\?]}}","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}},{"name":"meta.embedded.line.statamic","contentName":"source.php","begin":"\u003c\\?(?i:php|=)?","end":"(\\?)\u003e","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}}]},"statamic-comments":{"name":"comment.block.statamic","begin":"{{#","end":"#}}"},"statamic-core-closing-tags":{"match":"\\/(\\w+)+","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#core-tag-names"}]}}},"statamic-core-tags":{"match":"\\G(/?\\w+)+","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#core-tag-names"}]}}},"statamic-explicit-tags":{"match":"\\G(/?%\\w+)+","captures":{"1":{"name":"entity.name.tag.statamic"}}},"string-double-quoted":{"name":"string.quoted.double.statamic","begin":"\"","end":"\"","patterns":[{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.statamic"}}},"string-single-quoted":{"name":"string.quoted.single.statamic","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.statamic","match":"\\\\[\\\\']"},{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.statamic"}}}},"injections":{"L:(text.html.statamic meta.tag - (meta.embedded.block.statamic | meta.embedded.line.statamic | comment.block.statamic | comment.block.html))":{"patterns":[{"include":"#alpine-attribute"}]},"L:text.html.statamic":{"patterns":[{"include":"#antlers-directives"},{"include":"#antlers-components"},{"include":"#statamic-comments"},{"include":"#antlers-tags"}]},"text.html.statamic - (meta.embedded | meta.tag | comment.block.html | comment.block.statamic), L:(text.html.statamic meta.tag - (comment.block.statamic | meta.embedded.statamic | comment.block.html))":{"patterns":[{"include":"text.html.basic"}]},"text.html.statamic - (meta.embedded | meta.tag), L:((text.html.statamic meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (meta.embedded.block.php | meta.embedded.line.php))":{"patterns":[{"include":"#php-tag"}]}}}
|
data/grammars/text.marko.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Marko","scopeName":"text.marko","patterns":[{"name":"meta.embedded.css","contentName":"source.css","begin":"^\\s*(style)(\\b[^\\s]*\\.css)?\\s+({)","end":"}","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.less","contentName":"source.less","begin":"^\\s*(style)(\\b[^\\s]*\\.less)\\s+({)","end":"}","patterns":[{"include":"source.css.less"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.scss","contentName":"source.scss","begin":"^\\s*(style)(\\b[^\\s]*\\.scss)\\s+({)","end":"}","patterns":[{"include":"source.css.scss"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"^\\s*(style)(\\b[^\\s]*\\.[tj]s)\\s+({)","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"^\\s*(?:((?:static|server|client)\\b)|(?=(?:class|import|export)\\b))","end":"(?=\\n|$)","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"keyword.control.static.marko"}}},{"include":"#content-concise-mode"}],"repository":{"attr-value":{"name":"meta.embedded.ts","contentName":"source.ts","begin":"\\s*(:?=)\\s*","end":"(?=[,;\\]]|/\u003e|(?\u003c=[^=\u003e])\u003e|(?\u003c!^|[!~*%\u0026^|?:]|[!~*%\u0026^|?/\u003c\u003e+=-]=|[=\u003e]\u003e|[^.]\\.|[^-]-|[^+]\\+|[a-zA-Z0-9%).\u003c\\]}]\\s/|[^.$\\w]await|[^.$\\w]async|[^.$\\w]class|[^.$\\w]function|[^.$\\w]keyof|[^.$\\w]new|[^.$\\w]readonly|[^.$\\w]infer|[^.$\\w]typeof|[^.$\\w]void)\\s+(?![\\n{(+!~*%\u0026^|?:]|[\u003c\u003e/=-]=|[=\u003e]\u003e|\\.[^.]|-[^-]|/[^\u003e]|(?:in|instanceof|satisfies|as|extends)\\s+[^:=/,;\u003e]))","patterns":[{"include":"#javascript-expression"}],"beginCaptures":{"1":{"patterns":[{"include":"source.ts"}]}}},"attrs":{"patterns":[{"include":"#javascript-comments"},{"name":"meta.marko-attribute","begin":"(?:(key|on[a-zA-Z0-9_$-]+|[a-zA-Z0-9_$]+Change|no-update(?:-body)?(?:-if)?)|([a-zA-Z0-9_$][a-zA-Z0-9_$-]*)|(#[a-zA-Z0-9_$][a-zA-Z0-9_$-]*))(:[a-zA-Z0-9_$][a-zA-Z0-9_$-]*)?","end":"(?=.|$)","patterns":[{"include":"#html-args-or-method"},{"include":"#attr-value"}],"beginCaptures":{"1":{"name":"support.type.attribute-name.marko"},"2":{"name":"entity.other.attribute-name.marko"},"3":{"name":"support.function.attribute-name.marko"},"4":{"name":"support.function.attribute-name.marko"}},"applyEndPatternLast":true},{"name":"meta.marko-spread-attribute","contentName":"source.ts","begin":"(\\.\\.\\.)","end":"(?=[,;\\]]|/\u003e|(?\u003c=[^=\u003e])\u003e|(?\u003c!^|[!~*%\u0026^|?:]|[!~*%\u0026^|?/\u003c\u003e+=-]=|[=\u003e]\u003e|[^.]\\.|[^-]-|[^+]\\+|[a-zA-Z0-9%).\u003c\\]}]\\s/|[^.$\\w]await|[^.$\\w]async|[^.$\\w]class|[^.$\\w]function|[^.$\\w]keyof|[^.$\\w]new|[^.$\\w]readonly|[^.$\\w]infer|[^.$\\w]typeof|[^.$\\w]void)\\s+(?![\\n{(+!~*%\u0026^|?:]|[\u003c\u003e/=-]=|[=\u003e]\u003e|\\.[^.]|-[^-]|/[^\u003e]|(?:in|instanceof|satisfies|as|extends)\\s+[^:=/,;\u003e]))","patterns":[{"include":"#javascript-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.spread.marko"}}},{"begin":"\\s*(,(?!,))","end":"(?=\\S)","captures":{"1":{"name":"punctuation.separator.comma.marko"}}},{"include":"#invalid"}]},"cdata":{"name":"meta.tag.metadata.cdata.marko","contentName":"string.other.inline-data.marko","begin":"\\s*\u003c!\\[CDATA\\[","end":"]]\u003e","beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},"concise-attr-group":{"begin":"\\s*(\\[)","end":"]","patterns":[{"include":"#concise-attr-group"},{"begin":"\\s+","end":"(?=\\S)"},{"include":"#attrs"},{"include":"#invalid"}],"beginCaptures":{"1":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko"}}},"concise-comment-block":{"name":"meta.section.marko-comment-block","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-comment"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-comment-line":{"name":"meta.section.marko-comment-line","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-comment"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-html-block":{"name":"meta.section.marko-html-block","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-html-mode"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-html-line":{"name":"meta.section.marko-html-line","match":"\\s*(--+)(?=\\s+\\S)(.*)($)","captures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"},"2":{"patterns":[{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#javascript-comments-after-whitespace"},{"include":"#html-comment"},{"include":"#tag-html"},{"name":"text.marko","match":"\\\\."},{"include":"#placeholder"},{"name":"text.marko","match":".+?"}]},"3":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-open-tag-content":{"patterns":[{"include":"#invalid-close-tag"},{"include":"#tag-before-attrs"},{"include":"#concise-semi-eol"},{"begin":"(?!^)[, \\t]","end":"(?=--)|(?=\\n)","patterns":[{"include":"#concise-semi-eol"},{"include":"#concise-attr-group"},{"begin":"[ \\t]+","end":"(?=\\S|\\n)"},{"include":"#attrs"},{"include":"#invalid"}]}]},"concise-script-block":{"name":"meta.section.marko-script-block","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-script-line":{"name":"meta.section.marko-script-line","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-semi-eol":{"begin":"\\s*(;)","end":"$","patterns":[{"include":"#javascript-comments"},{"include":"#html-comment"},{"include":"#invalid"}],"beginCaptures":{"1":{"name":"punctuation.terminator.marko"}}},"concise-style-block":{"name":"meta.section.marko-style-block","contentName":"source.css","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-style-block-less":{"name":"meta.section.marko-style-block","contentName":"source.less","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-style-block-scss":{"name":"meta.section.marko-style-block","contentName":"source.scss","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-style-line":{"name":"meta.section.marko-style-line","contentName":"source.css","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-style-line-less":{"name":"meta.section.marko-style-line","contentName":"source.less","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-style-line-scss":{"name":"meta.section.marko-style-line","contentName":"source.scss","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"content-concise-mode":{"name":"meta.marko-concise-content","patterns":[{"include":"#scriptlet"},{"include":"#javascript-comments"},{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#html-comment"},{"include":"#concise-html-block"},{"include":"#concise-html-line"},{"include":"#invalid-close-tag"},{"include":"#tag-html"},{"patterns":[{"begin":"^(\\s*)(?=html-comment\\b)","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-comment-block"},{"include":"#concise-comment-line"}]},{"begin":"^(\\s*)(?=(?:html-)?style\\b[^\\s]*\\.less\\b)","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block-less"},{"include":"#concise-style-line-less"}]},{"begin":"^(\\s*)(?=(?:html-)?style\\b[^\\s]*\\.scss\\b)","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block-scss"},{"include":"#concise-style-line-scss"}]},{"begin":"^(\\s*)(?=(?:html-)?style\\b[^\\s]*\\.[tj]s\\b)","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-script-block"},{"include":"#concise-script-line"}]},{"begin":"^(\\s*)(?=(?:html-)?style\\b)","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block"},{"include":"#concise-style-line"}]},{"begin":"^(\\s*)(?=(?:html-)?script\\b)","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-script-block"},{"include":"#concise-script-line"}]},{"begin":"^([ \\t]*)(?=[a-zA-Z0-9_$@.#])","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#content-concise-mode"}]}]}]},"content-embedded-comment":{"patterns":[{"include":"#placeholder"},{"name":"comment.block.marko","match":"."}]},"content-embedded-script":{"name":"meta.embedded.ts","patterns":[{"include":"#placeholder"},{"include":"source.ts"}]},"content-embedded-style":{"name":"meta.embedded.css","patterns":[{"include":"#placeholder"},{"include":"source.css"}]},"content-embedded-style-less":{"name":"meta.embedded.css.less","patterns":[{"include":"#placeholder"},{"include":"source.css.less"}]},"content-embedded-style-scss":{"name":"meta.embedded.css.scss","patterns":[{"include":"#placeholder"},{"include":"source.css.scss"}]},"content-html-mode":{"patterns":[{"include":"#scriptlet"},{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#javascript-comments-after-whitespace"},{"include":"#html-comment"},{"include":"#invalid-close-tag"},{"include":"#tag-html"},{"name":"text.marko","match":"\\\\."},{"include":"#placeholder"},{"name":"text.marko","match":".+?"}]},"declaration":{"name":"meta.tag.metadata.processing.xml.marko","begin":"(\u003c\\?)\\s*([a-zA-Z0-9_$-]*)","end":"(\\??\u003e)","patterns":[{"match":"((?:[^\\s=?\u003e]+|\\?(?!\u003e))+)(=)(?:(\"(?:[^\"\\\\]+|\\\\.)*\")|('(?:[^'\\\\]+|\\\\.)*')|((?:[^\\s?\u003e]+|\\?(?!\u003e))+))","captures":{"1":{"name":"entity.other.attribute-name.marko"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"string.quoted.double.marko"},"4":{"name":"string.quoted.single.marko"},"5":{"name":"string.unquoted.marko"}}}],"captures":{"1":{"name":"punctuation.definition.tag.marko"},"2":{"name":"entity.name.tag.marko"}}},"doctype":{"name":"meta.tag.metadata.doctype.marko","begin":"\\s*\u003c!(?=(?i:DOCTYPE\\s))","end":"\u003e","patterns":[{"name":"entity.name.tag.marko","match":"\\G(?i:DOCTYPE)"},{"name":"string.quoted.double.marko","begin":"\"","end":"\""},{"name":"entity.other.attribute-name.marko","match":"[^\\s\u003e]+"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},"html-args-or-method":{"patterns":[{"include":"#tag-type-params"},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"\\s*(?=\\()","end":"(?\u003c=\\))","patterns":[{"include":"source.ts#paren-expression"}]},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"(?\u003c=\\))\\s*(?={)","end":"(?\u003c=})","patterns":[{"include":"source.ts"}]}]},"html-comment":{"name":"comment.block.marko","begin":"\\s*(\u003c!(--)?)","end":"\\2\u003e","beginCaptures":{"1":{"name":"punctuation.definition.comment.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.marko"}}},"invalid":{"name":"invalid.illegal.character-not-allowed-here.marko","match":"\\S"},"invalid-close-tag":{"name":"invalid.illegal.character-not-allowed-here.marko","begin":"\\s*\u003c/[^\u003e]*","end":"\u003e"},"javascript-comments":{"patterns":[{"contentName":"source.ts","begin":"\\s*(?=/\\*)","end":"(?\u003c=\\*/)","patterns":[{"include":"source.ts"}]},{"contentName":"source.ts","match":"\\s*//.*$","captures":{"0":{"patterns":[{"include":"source.ts"}]}}}]},"javascript-comments-after-whitespace":{"patterns":[{"contentName":"source.ts","begin":"(?:^|\\s+)(?=/\\*)","end":"(?\u003c=\\*/)","patterns":[{"include":"source.ts"}]},{"contentName":"source.ts","match":"(?:^|\\s+)//.*$","captures":{"0":{"patterns":[{"include":"source.ts"}]}}}]},"javascript-expression":{"patterns":[{"include":"#javascript-comments"},{"contentName":"source.ts","match":"(?:\\s*\\b(?:as|await|extends|in|instanceof|satisfies|keyof|new|typeof|void))+\\s+(?![:=/,;\u003e])[a-zA-Z0-9_$@#]*","captures":{"0":{"patterns":[{"include":"source.ts"}]}}},{"contentName":"source.ts","match":"(?\u003c![a-zA-Z0-9%).\u003c\\]}])\\s*/(?:[^\\\\\\[/]+|\\\\.|\\[(?:[^\\\\\\]]+|\\\\.)*\\])*/[a-zA-Z]*","captures":{"0":{"name":"string.regexp.ts","patterns":[{"include":"source.ts#regexp"},{"include":"source.ts"}]}},"applyEndPatternLast":true},{"include":"source.ts"}]},"javascript-placeholder":{"contentName":"source.ts","begin":"\\${","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}}},"open-tag-content":{"patterns":[{"include":"#invalid-close-tag"},{"include":"#tag-before-attrs"},{"begin":"(?!/?\u003e)","end":"(?=/?\u003e)","patterns":[{"include":"#attrs"}]}]},"placeholder":{"contentName":"source.ts","begin":"\\$!?{","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}}},"scriptlet":{"name":"meta.embedded.ts","contentName":"source.ts","begin":"^\\s*(\\$)\\s+","end":"$","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"keyword.control.scriptlet.marko"}}},"tag-before-attrs":{"patterns":[{"include":"#tag-name"},{"include":"#tag-shorthand-class-or-id"},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"/(?![/*])","end":"(?=[,;(|/\u003e\u003c]|:?=|\\s+[^:]|$)","patterns":[{"name":"variable.other.constant.object.ts","match":"[a-zA-Z$_][0-9a-zA-Z$_]*"},{"begin":"{","end":"}","patterns":[{"include":"source.ts#object-binding-element"},{"include":"#javascript-expression"}],"captures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}}},{"begin":"\\[","end":"]","patterns":[{"include":"source.ts#array-binding-element"},{"include":"#javascript-expression"}],"captures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}}},{"begin":"\\s*(:)(?!=)","end":"(?=[,;\\](]|/\u003e|(?\u003c=[^=\u003e])\u003e|(?\u003c!^|[!~*%\u0026^|?:]|[!~*%\u0026^|?/\u003c\u003e+=-]=|[=\u003e]\u003e|[^.]\\.|[^-]-|[^+]\\+|[a-zA-Z0-9%).\u003c\\]}]\\s/|[^.$\\w]await|[^.$\\w]async|[^.$\\w]class|[^.$\\w]function|[^.$\\w]keyof|[^.$\\w]new|[^.$\\w]readonly|[^.$\\w]infer|[^.$\\w]typeof|[^.$\\w]void)\\s+(?![\\n{+!~*%\u0026^|?:]|[\u003c\u003e/=-]=|[=\u003e]\u003e|\\.[^.]|-[^-]|/[^\u003e]|(?:in|instanceof|satisfies|as|extends)\\s+[^:=/,;\u003e]))","patterns":[{"include":"source.ts#type"},{"include":"#javascript-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}}},{"include":"#javascript-expression"}],"beginCaptures":{"0":{"name":"punctuation.separator.tag-variable.marko"}}},{"contentName":"source.ts","begin":"\\s*\\|","end":"\\|","patterns":[{"include":"source.ts#comment"},{"include":"source.ts#string"},{"include":"source.ts#decorator"},{"include":"source.ts#destructuring-parameter"},{"include":"source.ts#parameter-name"},{"name":"meta.type.annotation.ts","begin":"(:)","end":"(?=[,|])|(?==[^\u003e])","patterns":[{"include":"source.ts#type"}],"beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}}},{"include":"source.ts#variable-initializer"},{"name":"punctuation.separator.parameter.ts","match":","},{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko"}}},{"include":"#html-args-or-method"},{"include":"#attr-value"}]},"tag-html":{"patterns":[{"begin":"\\s*(\u003c)(?=(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr|const|debug|id|let|lifecycle|log|return)\\b)","end":"/?\u003e","patterns":[{"include":"#open-tag-content"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=html-comment\\b)","end":"/\u003e|(?\u003c=\u003c/\u003e|\u003c/html-comment\u003e)","patterns":[{"include":"#open-tag-content"},{"begin":"\u003e","end":"\\s*(?:\u003c/\u003e|\u003c/html-comment\u003e)","patterns":[{"include":"#content-embedded-comment"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=((?:html-)?style)\\b[^\\s]*\\.less\\b)","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/\\2\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.less","begin":"\u003e","end":"\\s*(\u003c/)((?:html-)?style)?(\u003e)","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=((?:html-)?style)\\b[^\\s]*\\.scss\\b)","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/\\2\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.scss","begin":"\u003e","end":"\\s*(\u003c/)((?:html-)?style)?(\u003e)","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=((?:html-)?style)\\b[^\\s]*\\.[tj]s\\b)","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/\\2\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.ts","begin":"\u003e","end":"\\s*(\u003c/)((?:html-)?style)?(\u003e)","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=((?:html-)?style)\\b)","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/\\2\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.css","begin":"\u003e","end":"\\s*(\u003c/)((?:html-)?style)?(\u003e)","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=((?:html-)?script)\\b)","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/\\2\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.ts","begin":"\u003e","end":"\\s*(\u003c/)((?:html-)?script)?(\u003e)","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=[.#$]|([a-zA-Z0-9_$@-]+))","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/\\2\u003e)","patterns":[{"include":"#open-tag-content"},{"begin":"\u003e","end":"\\s*(\u003c/)([a-zA-Z0-9_$:@.#-]+)?([^\u003e]*)(\u003e)","patterns":[{"include":"#content-html-mode"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"},{"include":"#tag-shorthand-class-or-id"}]},"3":{"patterns":[{"include":"#invalid"}]},"4":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}}]},"tag-name":{"patterns":[{"begin":"\\G(style)\\b(\\.[a-zA-Z0-9$_-]+(?:\\.[a-zA-Z0-9$_-]+)*)|([a-zA-Z0-9_@](?:[a-zA-Z0-9_@-]+|:(?!=))*)","end":"(?=.)","patterns":[{"include":"#tag-type-args"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.type.marko.css"},"3":{"patterns":[{"name":"support.type.builtin.marko","match":"(script|style|html-script|html-style|html-comment)(?=\\b)(?![-:@])"},{"name":"keyword.control.flow.marko","match":"(for|if|while|else-if|else|try|await|return)(?=\\b)(?![-:@])"},{"name":"support.function.marko","match":"(const|context|debug|define|id|let|log|lifecycle)(?=\\b)(?![-:@])"},{"name":"entity.other.attribute-name.marko","match":"@.+"},{"name":"entity.name.tag.marko","match":".+"}]}},"applyEndPatternLast":true},{"begin":"(?=[a-zA-Z0-9$_]|-[^-])","end":"(?=[^a-zA-Z0-9$_-]|$)","patterns":[{"include":"#javascript-placeholder"},{"name":"entity.name.tag.marko","match":"(?:[a-zA-Z0-9_-]+|\\$(?!{))+"}]}]},"tag-shorthand-class-or-id":{"begin":"(?=[#.])","end":"$|(?=--|[^a-zA-Z0-9_$#.-])","patterns":[{"include":"#javascript-placeholder"},{"name":"entity.other.attribute-name.marko","match":"(?:[#.a-zA-Z0-9_-]+|\\$(?!{))+"}]},"tag-type-args":{"name":"meta.embedded.ts","contentName":"source.ts","begin":"(?=\u003c)","end":"(?\u003c=\u003e)","patterns":[{"begin":"(?\u003c=\u003e)(?=[ \t]*\u003c)","end":"(?=.)","patterns":[{"include":"#tag-type-params"}],"applyEndPatternLast":true},{"include":"source.ts#type-arguments"}],"applyEndPatternLast":true},"tag-type-params":{"name":"meta.embedded.ts","contentName":"source.ts","begin":"(?!^)[ \t]*(?=\u003c)","end":"(?\u003c=\u003e)","patterns":[{"include":"source.ts#type-parameters"}],"applyEndPatternLast":true}}}
|
|
1
|
+
{"name":"Marko","scopeName":"text.marko","patterns":[{"name":"meta.embedded.css","contentName":"source.css","begin":"^\\s*(style)(\\b[^\\s]*\\.css)?\\s+({)","end":"}","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.less","contentName":"source.less","begin":"^\\s*(style)(\\b[^\\s]*\\.less)\\s+({)","end":"}","patterns":[{"include":"source.css.less"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.scss","contentName":"source.scss","begin":"^\\s*(style)(\\b[^\\s]*\\.scss)\\s+({)","end":"}","patterns":[{"include":"source.css.scss"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"^\\s*(style)(\\b[^\\s]*\\.[tj]s)\\s+({)","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"^\\s*(?:((?:static|server|client)(?![a-zA-Z0-9_$@-]))|(?=(?:class|import|export)[^a-zA-Z0-9_$@-]))","end":"(?=\\n|$)","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"keyword.control.static.marko"}}},{"include":"#content-concise-mode"}],"repository":{"attr-value":{"name":"meta.embedded.ts","contentName":"source.ts","begin":"\\s*(:?=)\\s*","end":"(?=[,;\\]]|/\u003e|(?\u003c=[^=\u003e])(?:(?\u003c!\\s)\u003e|\u003e(?!=))|(?\u003c!^|[~*%\u0026^|?:]|^!|^!!|[^\\w$)\\]\\\"'`!]!|[^\\w$)\\]\\\"'`!]!!|[^.$\\w]await!|[^.$\\w]async!|[^.$\\w]class!|[^.$\\w]function!|[^.$\\w]keyof!|[^.$\\w]new!|[^.$\\w]readonly!|[^.$\\w]infer!|[^.$\\w]typeof!|[^.$\\w]void!|[^.$\\w]delete!|[^.$\\w]in!|[^.$\\w]instanceof!|[!~*%\u0026^|?/\u003c\u003e+=-]=|[=\u003e]\u003e|[^.]\\.|[^-]-|[^+]\\+|[a-zA-Z0-9%).\u003c\\]}]\\s/|[^.$\\w]await|[^.$\\w]async|[^.$\\w]class|[^.$\\w]function|[^.$\\w]keyof|[^.$\\w]new|[^.$\\w]readonly|[^.$\\w]infer|[^.$\\w]typeof|[^.$\\w]void|[^.$\\w]delete)\\s+(?![\\n{(+!~*%\u0026^|?:]|[\u003c\u003e/=-]=|[=\u003e]\u003e|\\.[^.]|-[^-]|/[^\u003e]|(?:in|instanceof|satisfies|as|extends)\\s+[^:=/,;\u003e]))","patterns":[{"include":"#javascript-expression"}],"beginCaptures":{"1":{"patterns":[{"include":"source.ts"}]}}},"attrs":{"patterns":[{"include":"#javascript-comments"},{"name":"storage.modifier.async.marko","match":"\\basync(?=(?:[ \\t]+[a-zA-Z0-9_$][a-zA-Z0-9_$-]*|[ \\t]*)[ \\t]*(?:\u003c[^\u003c\u003e]*\u003e)?[ \\t]*\\([^()]*\\)[ \\t]*\\{)"},{"name":"meta.marko-attribute","begin":"(?:(key|on[a-zA-Z0-9_$-]+|[a-zA-Z0-9_$]+Change|no-update(?:-body)?(?:-if)?)|([a-zA-Z0-9_$][a-zA-Z0-9_$-]*)|(#[a-zA-Z0-9_$][a-zA-Z0-9_$-]*))(:[a-zA-Z0-9_$][a-zA-Z0-9_$-]*)?","end":"(?=.|$)","patterns":[{"include":"#html-args-or-method"},{"include":"#attr-value"}],"beginCaptures":{"1":{"name":"support.type.attribute-name.marko"},"2":{"name":"entity.other.attribute-name.marko"},"3":{"name":"support.function.attribute-name.marko"},"4":{"name":"support.function.attribute-name.marko"}},"applyEndPatternLast":true},{"name":"meta.marko-spread-attribute","contentName":"source.ts","begin":"(\\.\\.\\.)","end":"(?=[,;\\]]|/\u003e|(?\u003c=[^=\u003e])(?:(?\u003c!\\s)\u003e|\u003e(?!=))|(?\u003c!^|[~*%\u0026^|?:]|^!|^!!|[^\\w$)\\]\\\"'`!]!|[^\\w$)\\]\\\"'`!]!!|[^.$\\w]await!|[^.$\\w]async!|[^.$\\w]class!|[^.$\\w]function!|[^.$\\w]keyof!|[^.$\\w]new!|[^.$\\w]readonly!|[^.$\\w]infer!|[^.$\\w]typeof!|[^.$\\w]void!|[^.$\\w]delete!|[^.$\\w]in!|[^.$\\w]instanceof!|[!~*%\u0026^|?/\u003c\u003e+=-]=|[=\u003e]\u003e|[^.]\\.|[^-]-|[^+]\\+|[a-zA-Z0-9%).\u003c\\]}]\\s/|[^.$\\w]await|[^.$\\w]async|[^.$\\w]class|[^.$\\w]function|[^.$\\w]keyof|[^.$\\w]new|[^.$\\w]readonly|[^.$\\w]infer|[^.$\\w]typeof|[^.$\\w]void|[^.$\\w]delete)\\s+(?![\\n{(+!~*%\u0026^|?:]|[\u003c\u003e/=-]=|[=\u003e]\u003e|\\.[^.]|-[^-]|/[^\u003e]|(?:in|instanceof|satisfies|as|extends)\\s+[^:=/,;\u003e]))","patterns":[{"include":"#javascript-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.spread.marko"}}},{"begin":"\\s*(,(?!,))","end":"(?=\\S)","captures":{"1":{"name":"punctuation.separator.comma.marko"}}},{"include":"#invalid"}]},"cdata":{"name":"meta.tag.metadata.cdata.marko","contentName":"string.other.inline-data.marko","begin":"\\s*\u003c!\\[CDATA\\[","end":"]]\u003e","beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},"concise-attr-group":{"begin":"\\s*(\\[)","end":"]","patterns":[{"include":"#concise-attr-group"},{"begin":"\\s+","end":"(?=\\S)"},{"include":"#attrs"},{"include":"#invalid"}],"beginCaptures":{"1":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko"}}},"concise-comment-block":{"name":"meta.section.marko-comment-block","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-comment"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-comment-line":{"name":"meta.section.marko-comment-line","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-comment"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-html-block":{"name":"meta.section.marko-html-block","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-html-mode"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-html-line":{"name":"meta.section.marko-html-line","match":"\\s*(--+)(?=\\s+\\S)(.*)($)","captures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"},"2":{"patterns":[{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#javascript-comments-after-whitespace"},{"include":"#html-comment"},{"include":"#tag-html"},{"name":"text.marko","match":"\\\\."},{"include":"#placeholder"},{"name":"text.marko","match":".+?"}]},"3":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-open-tag-content":{"patterns":[{"include":"#invalid-close-tag"},{"include":"#tag-before-attrs"},{"include":"#concise-semi-eol"},{"begin":"(?!^)[, \\t]|\\G(?=\\[)","end":"(?=--)|(?=\\n)","patterns":[{"include":"#concise-semi-eol"},{"include":"#concise-attr-group"},{"begin":"[ \\t]+","end":"(?=\\S|\\n)"},{"include":"#attrs"},{"include":"#invalid"}]}]},"concise-script-block":{"name":"meta.section.marko-script-block","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-script-line":{"name":"meta.section.marko-script-line","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-semi-eol":{"begin":"\\s*(;)","end":"$","patterns":[{"include":"#javascript-comments"},{"include":"#html-comment"},{"include":"#invalid"}],"beginCaptures":{"1":{"name":"punctuation.terminator.marko"}}},"concise-style-block":{"name":"meta.section.marko-style-block","contentName":"source.css","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-style-block-less":{"name":"meta.section.marko-style-block","contentName":"source.less","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-style-block-scss":{"name":"meta.section.marko-style-block","contentName":"source.scss","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-style-line":{"name":"meta.section.marko-style-line","contentName":"source.css","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-style-line-less":{"name":"meta.section.marko-style-line","contentName":"source.less","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-style-line-scss":{"name":"meta.section.marko-style-line","contentName":"source.scss","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"content-concise-mode":{"name":"meta.marko-concise-content","patterns":[{"include":"#scriptlet"},{"begin":"^(?=\\s*;)","end":"$","patterns":[{"include":"#concise-semi-eol"}]},{"include":"#javascript-comments"},{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#html-comment"},{"include":"#concise-html-block"},{"include":"#concise-html-line"},{"include":"#invalid-close-tag"},{"include":"#tag-html"},{"patterns":[{"begin":"^(\\s*)(?=html-comment[^a-zA-Z0-9_$@-])","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-comment-block"},{"include":"#concise-comment-line"}]},{"begin":"^(\\s*)(?=style\\b[^\\s]*\\.less\\b)","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block-less"},{"include":"#concise-style-line-less"}]},{"begin":"^(\\s*)(?=style\\b[^\\s]*\\.scss\\b)","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block-scss"},{"include":"#concise-style-line-scss"}]},{"begin":"^(\\s*)(?=style\\b[^\\s]*\\.[tj]s\\b)","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-script-block"},{"include":"#concise-script-line"}]},{"begin":"^(\\s*)(?=(?:html-)?style[^a-zA-Z0-9_$@-])","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block"},{"include":"#concise-style-line"}]},{"begin":"^(\\s*)(?=(?:html-)?script[^a-zA-Z0-9_$@-])","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-script-block"},{"include":"#concise-script-line"}]},{"begin":"^([ \\t]*)(?=[a-zA-Z0-9_$@.#\\[]|-[a-zA-Z0-9_$])","while":"(?=^(?:\\s*[})\\]`]|\\*/|\\s*$|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#content-concise-mode"}]}]}]},"content-embedded-comment":{"patterns":[{"include":"#placeholder"},{"name":"comment.block.marko","match":"."}]},"content-embedded-script":{"name":"meta.embedded.ts","patterns":[{"include":"#placeholder"},{"include":"source.ts"}]},"content-embedded-style":{"name":"meta.embedded.css","patterns":[{"include":"#placeholder"},{"include":"source.css"}]},"content-embedded-style-less":{"name":"meta.embedded.css.less","patterns":[{"include":"#placeholder"},{"include":"source.css.less"}]},"content-embedded-style-scss":{"name":"meta.embedded.css.scss","patterns":[{"include":"#placeholder"},{"include":"source.css.scss"}]},"content-html-mode":{"patterns":[{"include":"#scriptlet"},{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#javascript-comments-after-whitespace"},{"include":"#html-comment"},{"include":"#invalid-close-tag"},{"include":"#tag-html"},{"name":"text.marko","match":"\\\\."},{"include":"#placeholder"},{"name":"text.marko","match":".+?"}]},"declaration":{"name":"meta.tag.metadata.processing.xml.marko","begin":"(\u003c\\?)\\s*([a-zA-Z0-9_$-]*)","end":"(\\??\u003e)","patterns":[{"match":"((?:[^\\s=?\u003e]+|\\?(?!\u003e))+)(=)(?:(\"(?:[^\"\\\\]+|\\\\.)*\")|('(?:[^'\\\\]+|\\\\.)*')|((?:[^\\s?\u003e]+|\\?(?!\u003e))+))","captures":{"1":{"name":"entity.other.attribute-name.marko"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"string.quoted.double.marko"},"4":{"name":"string.quoted.single.marko"},"5":{"name":"string.unquoted.marko"}}}],"captures":{"1":{"name":"punctuation.definition.tag.marko"},"2":{"name":"entity.name.tag.marko"}}},"doctype":{"name":"meta.tag.metadata.doctype.marko","begin":"\\s*\u003c!(?=(?i:DOCTYPE\\s))","end":"\u003e","patterns":[{"name":"entity.name.tag.marko","match":"\\G(?i:DOCTYPE)"},{"name":"string.quoted.double.marko","begin":"\"","end":"\""},{"name":"entity.other.attribute-name.marko","match":"[^\\s\u003e]+"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},"html-args-or-method":{"patterns":[{"include":"#tag-type-params"},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"\\s*(?=\\()","end":"(?\u003c=\\))","patterns":[{"include":"source.ts#paren-expression"}]},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"(?\u003c=\\))\\s*(?={)","end":"(?\u003c=})","patterns":[{"include":"source.ts"}]}]},"html-comment":{"name":"comment.block.marko","begin":"\\s*(\u003c!(--)?)","end":"\\2\u003e","beginCaptures":{"1":{"name":"punctuation.definition.comment.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.marko"}}},"invalid":{"name":"invalid.illegal.character-not-allowed-here.marko","match":"\\S"},"invalid-close-tag":{"name":"invalid.illegal.character-not-allowed-here.marko","begin":"\\s*\u003c/[^\u003e]*","end":"\u003e"},"javascript-comments":{"patterns":[{"contentName":"source.ts","begin":"\\s*(?=/\\*)","end":"(?\u003c=\\*/)","patterns":[{"include":"source.ts"}]},{"contentName":"source.ts","match":"\\s*//.*$","captures":{"0":{"patterns":[{"include":"source.ts"}]}}}]},"javascript-comments-after-whitespace":{"patterns":[{"contentName":"source.ts","begin":"(?:^|\\s+)(?=/\\*)","end":"(?\u003c=\\*/)","patterns":[{"include":"source.ts"}]},{"contentName":"source.ts","match":"(?:^|\\s+)//.*$","captures":{"0":{"patterns":[{"include":"source.ts"}]}}}]},"javascript-expression":{"patterns":[{"include":"#javascript-comments"},{"contentName":"source.ts","match":"(?:\\s*\\b(?:as|await|delete|extends|in|instanceof|satisfies|keyof|new|typeof|void))+\\s+(?![:=/,;\u003e])[a-zA-Z0-9_$@#]*","captures":{"0":{"patterns":[{"include":"source.ts"}]}}},{"contentName":"source.ts","match":"(?\u003c![a-zA-Z0-9%).\u003c\\]}])\\s*/(?:[^\\\\\\[/]+|\\\\.|\\[(?:[^\\\\\\]]+|\\\\.)*\\])*/[a-zA-Z]*","captures":{"0":{"name":"string.regexp.ts","patterns":[{"include":"source.ts#regexp"},{"include":"source.ts"}]}},"applyEndPatternLast":true},{"include":"source.ts"}]},"javascript-placeholder":{"contentName":"source.ts","begin":"\\${","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}}},"open-tag-content":{"patterns":[{"include":"#invalid-close-tag"},{"include":"#tag-before-attrs"},{"begin":"(?!/?\u003e)","end":"(?=/?\u003e)","patterns":[{"include":"#attrs"}]}]},"placeholder":{"contentName":"source.ts","begin":"\\$!?{","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}}},"scriptlet":{"name":"meta.embedded.ts","contentName":"source.ts","begin":"^\\s*(\\$)\\s+","end":"$","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"keyword.control.scriptlet.marko"}}},"tag-before-attrs":{"patterns":[{"include":"#tag-name"},{"include":"#tag-shorthand-class-or-id"},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"/(?![/*])","end":"(?=[,;(|/\u003e\u003c]|:?=|\\s+[^:]|$)","patterns":[{"name":"variable.other.constant.object.ts","match":"[a-zA-Z$_][0-9a-zA-Z$_]*"},{"begin":"{","end":"}","patterns":[{"include":"source.ts#object-binding-element"},{"include":"#javascript-expression"}],"captures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}}},{"begin":"\\[","end":"]","patterns":[{"include":"source.ts#array-binding-element"},{"include":"#javascript-expression"}],"captures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}}},{"begin":"\\s*(:)(?!=)","end":"(?=[,;\\](]|/\u003e|(?\u003c=[^=\u003e])(?:(?\u003c!\\s)\u003e|\u003e(?!=))|(?\u003c!^|[~*%\u0026^|?:]|^!|^!!|[^\\w$)\\]\\\"'`!]!|[^\\w$)\\]\\\"'`!]!!|[^.$\\w]await!|[^.$\\w]async!|[^.$\\w]class!|[^.$\\w]function!|[^.$\\w]keyof!|[^.$\\w]new!|[^.$\\w]readonly!|[^.$\\w]infer!|[^.$\\w]typeof!|[^.$\\w]in!|[^.$\\w]instanceof!|[!~*%\u0026^|?/\u003c\u003e+=-]=|[=\u003e]\u003e|[^.]\\.|[^-]-|[^+]\\+|[a-zA-Z0-9%).\u003c\\]}]\\s/|[^.$\\w]await|[^.$\\w]async|[^.$\\w]class|[^.$\\w]function|[^.$\\w]keyof|[^.$\\w]new|[^.$\\w]readonly|[^.$\\w]infer|[^.$\\w]typeof)\\s+(?![\\n{+!~*%\u0026^|?:]|[\u003c\u003e/=-]=|[=\u003e]\u003e|\\.[^.]|-[^-]|/[^\u003e]|(?:in|instanceof|satisfies|as|extends)\\s+[^:=/,;\u003e]))","patterns":[{"include":"source.ts#type"},{"match":"\\s*\\b(void)\\b","captures":{"1":{"name":"support.type.primitive.ts"}}},{"include":"#javascript-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}}},{"include":"#javascript-expression"}],"beginCaptures":{"0":{"name":"punctuation.separator.tag-variable.marko"}}},{"contentName":"source.ts","begin":"\\s*\\|","end":"\\|","patterns":[{"include":"source.ts#comment"},{"include":"source.ts#string"},{"include":"source.ts#decorator"},{"include":"source.ts#destructuring-parameter"},{"include":"source.ts#parameter-name"},{"name":"meta.type.annotation.ts","begin":"(:)","end":"(?=[,|])|(?==[^\u003e])","patterns":[{"include":"source.ts#type"}],"beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}}},{"include":"source.ts#variable-initializer"},{"name":"punctuation.separator.parameter.ts","match":","},{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko"}}},{"include":"#html-args-or-method"},{"include":"#attr-value"}]},"tag-html":{"patterns":[{"begin":"\\s*(\u003c)(?=(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr|const|debug|id|let|lifecycle|log|return)[^a-zA-Z0-9_$@-])","end":"/?\u003e","patterns":[{"include":"#open-tag-content"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=html-comment[^a-zA-Z0-9_$@-])","end":"/\u003e|(?\u003c=\u003c/\u003e|\u003c/html-comment\u003e)","patterns":[{"include":"#open-tag-content"},{"begin":"\u003e","end":"\\s*(?:\u003c/\u003e|\u003c/html-comment\u003e)","patterns":[{"include":"#content-embedded-comment"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=style[^\\s]*\\.less\\b)","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/style\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.less","begin":"\u003e","end":"\\s*(\u003c/)(style)?(\u003e)","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=style[^\\s]*\\.scss\\b)","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/style\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.scss","begin":"\u003e","end":"\\s*(\u003c/)(style)?(\u003e)","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=style[^\\s]*\\.[tj]s\\b)","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/style\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.ts","begin":"\u003e","end":"\\s*(\u003c/)((?:html-)?style)?(\u003e)","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=((?:html-)?style)[^a-zA-Z0-9_$@-])","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/\\2\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.css","begin":"\u003e","end":"\\s*(\u003c/)((?:html-)?style)?(\u003e)","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=((?:html-)?script)[^a-zA-Z0-9_$@-])","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/\\2\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.ts","begin":"\u003e","end":"\\s*(\u003c/)((?:html-)?script)?(\u003e)","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=[.#$]|([a-zA-Z0-9_$@-]+))","end":"/\u003e|(?\u003c=\u003c/\u003e)|(?\u003c=\u003c/\\2\u003e)","patterns":[{"include":"#open-tag-content"},{"begin":"\u003e","end":"\\s*(\u003c/)([a-zA-Z0-9_$:@.#-]+)?([^\u003e]*)(\u003e)","patterns":[{"include":"#content-html-mode"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"},{"include":"#tag-shorthand-class-or-id"}]},"3":{"patterns":[{"include":"#invalid"}]},"4":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}}]},"tag-name":{"patterns":[{"begin":"\\G(style)\\b(\\.[a-zA-Z0-9$_-]+(?:\\.[a-zA-Z0-9$_-]+)*)|(-?[a-zA-Z0-9_@](?:[a-zA-Z0-9_@-]+|:(?!=))*)","end":"(?=.)","patterns":[{"include":"#tag-type-args"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.type.marko.css"},"3":{"patterns":[{"name":"support.type.builtin.marko","match":"(script|style|html-script|html-style|html-comment)(?![a-zA-Z0-9_$@-])"},{"name":"keyword.control.flow.marko","match":"(for|if|while|else-if|else|try|await|return)(?![a-zA-Z0-9_$@-])"},{"name":"support.function.marko","match":"(const|context|debug|define|id|let|log|lifecycle)(?![a-zA-Z0-9_$@-])"},{"name":"entity.other.attribute-name.marko","match":"@.+"},{"name":"entity.name.tag.marko","match":".+"}]}},"applyEndPatternLast":true},{"begin":"(?=[a-zA-Z0-9$_]|-[^-])","end":"(?=[^a-zA-Z0-9$_-]|$)","patterns":[{"include":"#javascript-placeholder"},{"name":"entity.name.tag.marko","match":"(?:[a-zA-Z0-9_-]+|\\$(?!{))+"}]}]},"tag-shorthand-class-or-id":{"begin":"(?=[#.])","end":"$|(?=--|[^a-zA-Z0-9_$#.-])","patterns":[{"include":"#javascript-placeholder"},{"name":"entity.other.attribute-name.marko","match":"(?:[#.a-zA-Z0-9_-]+|\\$(?!{))+"}]},"tag-type-args":{"name":"meta.embedded.ts","contentName":"source.ts","begin":"(?=\u003c)","end":"(?\u003c=\u003e)","patterns":[{"begin":"(?\u003c=\u003e)(?=[ \t]*\u003c)","end":"(?=.)","patterns":[{"include":"#tag-type-params"}],"applyEndPatternLast":true},{"include":"source.ts#type-arguments"}],"applyEndPatternLast":true},"tag-type-params":{"name":"meta.embedded.ts","contentName":"source.ts","begin":"(?!^)[ \t]*(?=\u003c)","end":"(?\u003c=\u003e)","patterns":[{"include":"source.ts#type-parameters"}],"applyEndPatternLast":true}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Recfile","scopeName":"text.recfile","patterns":[{"include":"#main"}],"repository":{"aggregateFunctions":{"name":"meta.function-call.aggregate.${1:/downcase}.recfile","contentName":"meta.arguments.recfile","begin":"(?i)\\b(Count|Avg|Sum|Min|Max)(\\()(?=.*?\\))","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"support.function.aggregate.sql.recfile"},"2":{"name":"punctuation.definition.arguments.bracket.round.begin.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.arguments.bracket.round.end.recfile"}}},"comment":{"name":"comment.line.number-sign.recfile","begin":"^#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.recfile"}}},"constraint":{"patterns":[{"name":"meta.constraint.range.recfile","match":"\\G\\s*(range)(?:\\s+(\\S+))?\\s+([^\\\\\\s]+)","captures":{"1":{"name":"storage.type.constraint.range.recfile"},"2":{"patterns":[{"include":"#numberOnly"}]},"3":{"patterns":[{"include":"#numberOnly"}]}}},{"name":"meta.constraint.size.recfile","match":"\\G\\s*(size)\\s+([^\\\\\\s]+)","captures":{"1":{"name":"storage.type.constraint.size.recfile"},"2":{"patterns":[{"include":"#numberOnly"}]}}},{"name":"meta.constraint.pattern.recfile","contentName":"string.regexp.recfile","begin":"\\G\\s*(regexp)\\s+([^\\s\\\\])","end":"\\2|(?=$)","patterns":[{"include":"#regexp"}],"beginCaptures":{"1":{"name":"storage.type.constraint.regexp.recfile"},"2":{"name":"punctuation.delimiter.pattern.begin.recfile"}},"endCaptures":{"0":{"name":"punctuation.delimiter.pattern.end.recfile"}}},{"name":"meta.constraint.enum.recfile","begin":"\\G\\s*(enum)(?=$|\\s)","end":"^(?!\\+)","patterns":[{"name":"constant.language.enumeration.recfile","match":"(?!_)\\w[-\\w]*"},{"name":"comment.block.parentheses.recfile","begin":"\\(","end":"\\)","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.recfile"}}},{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"storage.type.constraint.enum.recfile"}}},{"name":"meta.constraint.foreign-key.recfile","match":"\\G\\s*(rec)\\s+([a-zA-Z]\\w*)","captures":{"1":{"name":"storage.type.constraint.rec.recfile"},"2":{"name":"entity.name.type.recfile"}}},{"name":"meta.constraint.$1-type.recfile","match":"\\G\\s*(bool|date|email|field|int|line|real|uuid)(?=\\s*\\\\?$)","captures":{"1":{"name":"support.type.constraint.recfile"}}},{"name":"meta.constraint.$1-type.recfile","match":"\\G\\s*([a-zA-Z]\\w*)","captures":{"1":{"name":"entity.name.type.recfile"}}},{"include":"#fieldInnards"}]},"descriptor":{"patterns":[{"name":"meta.record.descriptor.doc.recfile","contentName":"string.unquoted.documentation.recfile","begin":"^((%)doc)(:)(?=$|\\s)[ \\t]*","end":"^(?!\\+)","patterns":[{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.record.descriptor.$3.recfile","contentName":"meta.field-list.recfile","begin":"^((%)(allowed|auto|confidential|key|mandatory|prohibit|singular|sort|unique))(:)(?=$|\\s)[ \\t]*","end":"^(?!\\+)","patterns":[{"name":"variable.reference.field.recfile","match":"[a-zA-Z%]\\w*"},{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"4":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.record.descriptor.typedef.$4.recfile","contentName":"meta.type-definition.recfile","begin":"^((%)typedef)(:)[ \\t]*([a-zA-Z]\\w*)","end":"^(?!\\+)","patterns":[{"include":"#constraint"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]},"4":{"name":"entity.name.type.recfile"}}},{"name":"meta.record.descriptor.type.recfile","contentName":"meta.field-type-definition.recfile","begin":"^((%)type)(:)[ \\t]*([a-zA-Z]\\w*(?:,\\s*[a-zA-Z]\\w*)*+)","end":"^(?!\\+)","patterns":[{"include":"#constraint"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]},"4":{"patterns":[{"name":"variable.reference.field.recfile","match":"\\w+"},{"include":"etc#comma"}]}}},{"name":"meta.record.descriptor.typedef.constraint.recfile","contentName":"meta.selection-expression.recfile","begin":"^((%)constraint)(:)(?=$|\\s)","end":"^(?!\\+)","patterns":[{"include":"#select"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.record.descriptor.max-size.recfile","begin":"^((%)size)(:)(?:[ \\t]*([\u003c\u003e]=?))?","end":"^(?!\\+)","patterns":[{"match":"\\G\\s*([^\\\\\\s]+)","captures":{"1":{"patterns":[{"include":"#numberOnly"}]}}},{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]},"4":{"patterns":[{"include":"etc#opCmp"}]}}},{"name":"meta.record.descriptor.rec.recfile","begin":"^((%)rec)(:)\\s*([a-zA-Z]\\w*)","end":"^(?!\\+)","patterns":[{"name":"meta.external-descriptor.recfile","begin":"\\G\\s+(?=\\S)","end":"(?!\\G)","patterns":[{"begin":"\\G(?=(?:(?:git|svn)\\+)?\\w+(?:[-.+]\\w+)*+://)","end":"(?!\\G)","patterns":[{"include":"etc#url"},{"include":"#fieldInnards"}]},{"name":"constant.other.reference.link.pathname.recfile","begin":"\\G","end":"^(?!\\+)","patterns":[{"include":"#fieldInnards"}]}],"applyEndPatternLast":true}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]},"4":{"name":"entity.name.type.recfile"}}},{"name":"meta.record.descriptor.$3.recfile","contentName":"entity.name.type.recfile","begin":"^((%)([a-zA-Z]\\w*))(:)(?=$|\\s)","end":"^(?!\\+)","patterns":[{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"4":{"patterns":[{"include":"etc#kolon"}]}}}]},"field":{"name":"meta.field.${1:/downcase}.recfile","contentName":"string.unquoted.field.recfile","begin":"^([a-zA-Z]\\w*)(:)(?=$|\\s)[ \\t]*","end":"^(?!\\+)","patterns":[{"name":"meta.encrypted-value.recfile","begin":"\\G(encrypted)((-))","end":"^(?!\\+)","patterns":[{"include":"#fieldInnards"},{"name":"invalid.illegal.syntax.non-ascii.recfile","match":"[^\\s -~]+"}],"beginCaptures":{"1":{"name":"constant.language.encryption.recfile"},"2":{"name":"meta.separator.dash.recfile"},"3":{"name":"punctuation.separator.key-value.encryption.recfile"}}},{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"variable.assignment.field.recfile"},"2":{"patterns":[{"include":"etc#kolon"}]}},"applyEndPatternLast":true},"fieldInnards":{"patterns":[{"begin":"((\\\\))$[\\r\\n]*","end":"^\\s*(?!\\\\$)\\S","beginCaptures":{"0":{"name":"constant.character.escape.newline.recfile"},"1":{"name":"punctuation.definition.escape.backslash.recfile"},"2":{"name":"sublimelinter.gutter-mark"}}},{"name":"markup.inserted.embedded-newline.recfile","match":"^(\\+)( )?","captures":{"1":{"name":"punctuation.definition.inserted.newline.recfile"},"2":{"name":"punctuation.whitespace.separator.recfile"}}}]},"main":{"patterns":[{"include":"#comment"},{"include":"#record"}]},"number":{"patterns":[{"name":"constant.language.integral-extrema.${1:/downcase}.recfile","match":"(?:\\G|^|(?\u003c=\\s|:))(MIN|MAX)(?=\\\\?$|\\s)"},{"name":"constant.numeric.integer.octal.recfile","match":"(?:\\G|^|(?\u003c=\\s|:))-?0[0-7]+(?=\\\\?$|\\s)"},{"name":"constant.numeric.integer.hexadecimal.recfile","match":"(?:\\G|^|(?\u003c=\\s|:))-?0x[0-9A-Fa-f]+(?=\\\\?$|\\s)"},{"name":"constant.numeric.integer.decimal.recfile","match":"(?:\\G|^|(?\u003c=\\s|:))-?\\d+(?=\\\\?$|\\s)"},{"include":"etc#float"}]},"numberOnly":{"patterns":[{"include":"#number"},{"name":"invalid.illegal.syntax.not-a-number.recfile","match":"(?:\\G|^|(?\u003c=\\s|:))[^\\d\\s]+(?=\\\\?$|\\s)"}]},"record":{"name":"meta.record.recfile","begin":"^(?=[a-zA-Z%])","end":"^(?=\\s*$)","patterns":[{"include":"#field"},{"include":"#descriptor"},{"include":"#comment"}]},"regexp":{"patterns":[{"include":"#regexpAnchors"},{"name":"keyword.operator.quantifier.regexp.recfile","match":"[*+?]"},{"match":"(\\\\w)|(\\\\W)","captures":{"1":{"name":"constant.character.escape.word-char.regexp.recfile"},"2":{"name":"constant.character.escape.non-word-char.regexp.recfile"}}},{"name":"keyword.other.back-reference.$1.regexp.recfile","match":"\\\\\\d{1,2}"},{"name":"constant.character.escape.literal.recfile","match":"\\\\."},{"name":"constant.character.wildcard.dot.match.any.regexp.recfile","match":"\\."},{"name":"meta.group.regexp.recfile","begin":"\\(","end":"\\)","patterns":[{"include":"#regexp"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.regexp.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.regexp.recfile"}}},{"name":"keyword.operator.logical.or.regexp.recfile","match":"\\|"},{"name":"meta.character-class.set.regexp.recfile","begin":"\\[","end":"\\]","patterns":[{"name":"keyword.operator.logical.not.regexp.recfile","match":"\\G\\^"},{"include":"source.regexp.posix#charClass"},{"name":"punctuation.separator.range.dash.regexp.recfile","match":"(?\u003c!\\G|\\\\[dwshDWSHN])-(?!\\])"},{"name":"constant.single.character.character-class.regexp.recfile","match":"[^\\]]"}],"beginCaptures":{"0":{"name":"punctuation.definition.character-class.set.begin.regexp.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.character-class.set.end.regexp.recfile"}}},{"include":"source.regexp#quantifierNumeric"}]},"regexpAnchors":{"patterns":[{"name":"keyword.control.anchor.line-start.regexp.recfile","match":"\\^"},{"name":"keyword.control.anchor.line-end.regexp.recfile","match":"\\$"},{"name":"keyword.control.anchor.word-start.regexp.recfile","match":"\\\\\u003c"},{"name":"keyword.control.anchor.word-end.regexp.recfile","match":"\\\\\u003e"},{"name":"keyword.control.anchor.word-boundary.regexp.recfile","match":"\\\\b"},{"name":"keyword.control.anchor.non-word-boundary.regexp.recfile","match":"\\\\B"},{"name":"keyword.control.anchor.input-start.regexp.recfile","match":"\\\\`"},{"name":"keyword.control.anchor.input-end.regexp.recfile","match":"\\\\'"}]},"select":{"patterns":[{"include":"#number"},{"include":"#string"},{"include":"#selectOperator"},{"include":"#selectMatch"},{"include":"#selectGroup"},{"include":"#selectField"},{"include":"#fieldInnards"}]},"selectField":{"patterns":[{"name":"meta.field-counter.recfile","match":"((#))([a-zA-Z]\\w*)","captures":{"1":{"name":"keyword.operator.count.recfile"},"2":{"name":"punctuation.definition.counter.recfile"},"3":{"name":"variable.reference.field.recfile"}}},{"name":"meta.field-value.recfile","match":"([a-zA-Z]\\w*)((\\[)([^\\]]+)(\\]))?","captures":{"1":{"name":"variable.reference.field.recfile"},"2":{"name":"meta.subscript.recfile"},"3":{"name":"punctuation.definition.subscript.bracket.square.begin.recfile"},"4":{"patterns":[{"include":"#numberOnly"}]},"5":{"name":"punctuation.definition.subscript.bracket.square.end.recfile"}}}]},"selectGroup":{"name":"meta.group.expression.recfile","begin":"\\(","end":"\\)","patterns":[{"include":"#select"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.expression.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.expression.recfile"}}},"selectMatch":{"name":"meta.regexp-match.recfile","begin":"\\s*(~)\\s*(?=\"|')","end":"(?!\\G)","patterns":[{"include":"#string"}],"beginCaptures":{"1":{"name":"keyword.operator.logical.comparison.pattern-match.recfile"}},"applyEndPatternLast":true},"selectOperator":{"patterns":[{"name":"keyword.operator.logical.comparison.date.before.recfile","match":"\u003c\u003c"},{"name":"keyword.operator.logical.comparison.date.after.recfile","match":"\u003e\u003e"},{"name":"keyword.operator.logical.comparison.date.same-time.recfile","match":"=="},{"name":"keyword.operator.logical.comparison.imply.recfile","match":"=\u003e"},{"match":"[-+*/%!]|\u0026\u0026|\\|{2}|[\u003c\u003e]=?|!=","captures":{"0":{"patterns":[{"include":"etc#op"}]}}},{"name":"keyword.operator.logical.comparison.equals.recfile","match":"="},{"name":"keyword.operator.concatenation.recfile","match":"\u0026"},{"name":"meta.ternary-condition.recfile","begin":"\\?","end":":","patterns":[{"include":"#select"}],"beginCaptures":{"0":{"name":"keyword.operator.logical.ternary.begin.recfile"}},"endCaptures":{"0":{"name":"keyword.operator.logical.ternary.end.recfile"}}}]},"string":{"patterns":[{"name":"string.quoted.double.recfile","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.quote.recfile","match":"\\\\\""}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.recfile"}}},{"name":"string.quoted.single.recfile","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.quote.recfile","match":"\\\\'"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.recfile"}}}]}},"injections":{"L:meta.regexp-match string.quoted - (meta.group.regexp | meta.character-class)":{"patterns":[{"include":"#regexp"}]}}}
|