@shikijs/langs-precompiled 3.2.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abap.mjs +1 -1
- package/dist/actionscript-3.mjs +1 -1
- package/dist/ada.mjs +1 -1
- package/dist/angular-expression.mjs +1 -1
- package/dist/angular-html.mjs +1 -1
- package/dist/angular-inline-style.mjs +1 -1
- package/dist/angular-inline-template.mjs +1 -1
- package/dist/angular-let-declaration.mjs +1 -1
- package/dist/angular-template-blocks.mjs +1 -1
- package/dist/angular-ts.mjs +1 -1
- package/dist/apache.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/awk.mjs +1 -1
- package/dist/ballerina.mjs +1 -1
- package/dist/bat.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/berry.mjs +1 -1
- package/dist/bibtex.mjs +1 -1
- package/dist/bicep.mjs +1 -1
- package/dist/blade.mjs +1 -1
- package/dist/bsl.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/cairo.mjs +1 -1
- package/dist/clarity.mjs +1 -1
- package/dist/clojure.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/codeql.mjs +1 -1
- package/dist/coffee.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/coq.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/csharp.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/cue.mjs +1 -1
- package/dist/cypher.mjs +1 -1
- package/dist/d.mjs +1 -1
- package/dist/dart.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/desktop.mjs +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/dotenv.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/edge.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erb.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/es-tag-css.mjs +1 -1
- package/dist/es-tag-glsl.mjs +1 -1
- package/dist/es-tag-html.mjs +1 -1
- package/dist/es-tag-sql.mjs +1 -1
- package/dist/es-tag-xml.mjs +1 -1
- package/dist/fennel.mjs +1 -1
- package/dist/fish.mjs +1 -1
- package/dist/fluent.mjs +1 -1
- package/dist/fortran-fixed-form.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/fsharp.mjs +1 -1
- package/dist/gdresource.mjs +1 -1
- package/dist/gdscript.mjs +1 -1
- package/dist/gdshader.mjs +1 -1
- package/dist/genie.mjs +1 -1
- package/dist/gherkin.mjs +1 -1
- package/dist/gleam.mjs +1 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/glsl.mjs +1 -1
- package/dist/gnuplot.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/groovy.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/handlebars.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/haxe.mjs +1 -1
- package/dist/hcl.mjs +1 -1
- package/dist/hjson.mjs +1 -1
- package/dist/hlsl.mjs +1 -1
- package/dist/html-derivative.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/http.mjs +1 -1
- package/dist/hxml.mjs +1 -1
- package/dist/hy.mjs +1 -1
- package/dist/imba.mjs +1 -1
- package/dist/ini.mjs +1 -1
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jinja.mjs +1 -1
- package/dist/jison.mjs +1 -1
- package/dist/json.mjs +1 -1
- package/dist/json5.mjs +1 -1
- package/dist/jsonc.mjs +1 -1
- package/dist/jsonl.mjs +1 -1
- package/dist/jsonnet.mjs +1 -1
- package/dist/jssm.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kotlin.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/lean.mjs +1 -1
- package/dist/less.mjs +1 -1
- package/dist/liquid.mjs +1 -1
- package/dist/llvm.mjs +1 -1
- package/dist/log.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/luau.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown-vue.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/marko.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/move.mjs +1 -1
- package/dist/narrat.mjs +1 -1
- package/dist/nextflow.mjs +1 -1
- package/dist/nginx.mjs +1 -1
- package/dist/nim.mjs +1 -1
- package/dist/nix.mjs +1 -1
- package/dist/nushell.mjs +1 -1
- package/dist/objective-c.mjs +1 -1
- package/dist/objective-cpp.mjs +1 -1
- package/dist/ocaml.mjs +1 -1
- package/dist/pascal.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/plsql.mjs +1 -1
- package/dist/po.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/powerquery.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/prisma.mjs +1 -1
- package/dist/prolog.mjs +1 -1
- package/dist/proto.mjs +1 -1
- package/dist/pug.mjs +1 -1
- package/dist/puppet.mjs +1 -1
- package/dist/purescript.mjs +1 -1
- package/dist/python.mjs +1 -1
- package/dist/qml.mjs +1 -1
- package/dist/qss.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/racket.mjs +1 -1
- package/dist/raku.mjs +1 -1
- package/dist/razor.mjs +1 -1
- package/dist/reg.mjs +1 -1
- package/dist/regexp.mjs +1 -1
- package/dist/rel.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/rst.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/rust.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/sass.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/sdbl.mjs +1 -1
- package/dist/shaderlab.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/shellsession.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/solidity.mjs +1 -1
- package/dist/soy.mjs +1 -1
- package/dist/sparql.mjs +1 -1
- package/dist/splunk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/ssh-config.mjs +1 -1
- package/dist/stata.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/system-verilog.mjs +1 -1
- package/dist/systemd.mjs +1 -1
- package/dist/talonscript.mjs +1 -1
- package/dist/tasl.mjs +1 -1
- package/dist/tcl.mjs +1 -1
- package/dist/templ.mjs +1 -1
- package/dist/terraform.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/turtle.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/typespec.mjs +1 -1
- package/dist/typst.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vala.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/vhdl.mjs +1 -1
- package/dist/viml.mjs +1 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue-sfc-style-variable-injection.mjs +1 -1
- package/dist/vue.mjs +3 -3
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wenyan.mjs +1 -1
- package/dist/wgsl.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wit.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/xml.mjs +1 -1
- package/dist/xsl.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/dist/zenscript.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +4 -4
package/dist/xml.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import java from './java.mjs'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"XML",name:"xml",patterns:[{begin:/(<\?)\p{space}*([\-
|
|
3
|
+
const lang = Object.freeze({displayName:"XML",name:"xml",patterns:[{begin:/(<\?)\p{space}*([\-0-9A-Z_a-z]+)/dgv,captures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"entity.name.tag.xml"}},end:/(\?>)/dgv,name:"meta.tag.preprocessor.xml",patterns:[{match:/ ([\-A-Za-z]+)/dgv,name:"entity.other.attribute-name.xml"},{include:"#doublequotedString"},{include:"#singlequotedString"}]},{begin:/(<!)(DOCTYPE)\p{space}+([\:A-Z_a-z][\-\.0-\:A-Z_a-z]*)/dgv,captures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"keyword.other.doctype.xml"},"3":{name:"variable.language.documentroot.xml"}},end:/\p{space}*(>)/dgv,name:"meta.tag.sgml.doctype.xml",patterns:[{include:"#internalSubset"}]},{include:"#comments"},{begin:/(<)((?:([\-0-9A-Z_a-z]+)(:))?([\-0-\:A-Z_a-z]+))(?=(\p{space}[^\>]*)?><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"entity.name.tag.xml"},"3":{name:"entity.name.tag.namespace.xml"},"4":{name:"punctuation.separator.namespace.xml"},"5":{name:"entity.name.tag.localname.xml"}},end:/(>)(<\/)((?:([\-0-9A-Z_a-z]+)(:))?([\-0-\:A-Z_a-z]+))(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"punctuation.definition.tag.xml"},"3":{name:"entity.name.tag.xml"},"4":{name:"entity.name.tag.namespace.xml"},"5":{name:"punctuation.separator.namespace.xml"},"6":{name:"entity.name.tag.localname.xml"},"7":{name:"punctuation.definition.tag.xml"}},name:"meta.tag.no-content.xml",patterns:[{include:"#tagStuff"}]},{begin:/(<\/?)(?:([\-\.\p{L}\p{M}\p{N}\p{Pc}]+)((:)))?([\-\.\:\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,captures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"entity.name.tag.namespace.xml"},"3":{name:"entity.name.tag.xml"},"4":{name:"punctuation.separator.namespace.xml"},"5":{name:"entity.name.tag.localname.xml"}},end:/(\/?>)/dgv,name:"meta.tag.xml",patterns:[{include:"#tagStuff"}]},{include:"#entity"},{include:"#bare-ampersand"},{begin:/<%@/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.xml"}},end:/%>/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.xml"}},name:"source.java-props.embedded.xml",patterns:[{match:/page|include|taglib/dgv,name:"keyword.other.page-props.xml"}]},{begin:/<%[\!\=]?(?!--)/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.xml"}},end:/(?!--)%>/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.xml"}},name:"source.java.embedded.xml",patterns:[{include:"source.java"}]},{begin:/<!\[CDATA\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/\]\]>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.unquoted.cdata.xml"}],repository:{EntityDecl:{begin:/(<!)(ENTITY)\p{space}+(%\p{space}+)?([\:A-Z_a-z][\-\.0-\:A-Z_a-z]*)(\p{space}+(?:SYSTEM|PUBLIC)\p{space}+)?/dgv,captures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"keyword.other.entity.xml"},"3":{name:"punctuation.definition.entity.xml"},"4":{name:"variable.language.entity.xml"},"5":{name:"keyword.other.entitytype.xml"}},end:/(>)/dgv,patterns:[{include:"#doublequotedString"},{include:"#singlequotedString"}]},"bare-ampersand":{match:/&/dgv,name:"invalid.illegal.bad-ampersand.xml"},comments:{patterns:[{begin:/<%--/dgv,captures:{"0":{name:"punctuation.definition.comment.xml"},end:"--%>",name:"comment.block.xml"}},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.xml"}},end:/-->/dgv,name:"comment.block.xml",patterns:[{begin:/--(?!>)/dgv,captures:{"0":{name:"invalid.illegal.bad-comments-or-CDATA.xml"}}}]}]},doublequotedString:{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.quoted.double.xml",patterns:[{include:"#entity"},{include:"#bare-ampersand"}]},entity:{captures:{"1":{name:"punctuation.definition.constant.xml"},"3":{name:"punctuation.definition.constant.xml"}},match:/(&)([\:A-Z_a-z][\-\.0-\:A-Z_a-z]*|#[0-9]+|#x\p{AHex}+)(;)/dgv,name:"constant.character.entity.xml"},internalSubset:{begin:/(\[)/dgv,captures:{"1":{name:"punctuation.definition.constant.xml"}},end:/(\])/dgv,name:"meta.internalsubset.xml",patterns:[{include:"#EntityDecl"},{include:"#parameterEntity"},{include:"#comments"}]},parameterEntity:{captures:{"1":{name:"punctuation.definition.constant.xml"},"3":{name:"punctuation.definition.constant.xml"}},match:/(%)([\:A-Z_a-z][\-\.0-\:A-Z_a-z]*)(;)/dgv,name:"constant.character.parameter-entity.xml"},singlequotedString:{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.quoted.single.xml",patterns:[{include:"#entity"},{include:"#bare-ampersand"}]},tagStuff:{patterns:[{captures:{"1":{name:"entity.other.attribute-name.namespace.xml"},"2":{name:"entity.other.attribute-name.xml"},"3":{name:"punctuation.separator.namespace.xml"},"4":{name:"entity.other.attribute-name.localname.xml"}},match:/(?:^|\p{space}+)(?:([\-\.\p{L}\p{M}\p{N}\p{Pc}]+)((:)))?([\-\.\:\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*=/dgv},{include:"#doublequotedString"},{include:"#singlequotedString"}]}},scopeName:"text.xml",embeddedLangs:["java"],aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...java,
|
package/dist/xsl.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import xml from './xml.mjs'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"XSL",name:"xsl",patterns:[{begin:/(<)(xsl)((:))(template)/dgv,captures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"entity.name.tag.namespace.xml"},"3":{name:"entity.name.tag.xml"},"4":{name:"punctuation.separator.namespace.xml"},"5":{name:"entity.name.tag.localname.xml"}},end:/(>)/dgv,name:"meta.tag.xml.template",patterns:[{captures:{"1":{name:"entity.other.attribute-name.namespace.xml"},"2":{name:"entity.other.attribute-name.xml"},"3":{name:"punctuation.separator.namespace.xml"},"4":{name:"entity.other.attribute-name.localname.xml"}},match:/ (?:([\-
|
|
3
|
+
const lang = Object.freeze({displayName:"XSL",name:"xsl",patterns:[{begin:/(<)(xsl)((:))(template)/dgv,captures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"entity.name.tag.namespace.xml"},"3":{name:"entity.name.tag.xml"},"4":{name:"punctuation.separator.namespace.xml"},"5":{name:"entity.name.tag.localname.xml"}},end:/(>)/dgv,name:"meta.tag.xml.template",patterns:[{captures:{"1":{name:"entity.other.attribute-name.namespace.xml"},"2":{name:"entity.other.attribute-name.xml"},"3":{name:"punctuation.separator.namespace.xml"},"4":{name:"entity.other.attribute-name.localname.xml"}},match:/ (?:([\-0-9A-Z_a-z]+)((:)))?([\-A-Za-z]+)/dgv},{include:"#doublequotedString"},{include:"#singlequotedString"}]},{include:"text.xml"}],repository:{doublequotedString:{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.quoted.double.xml"},singlequotedString:{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.quoted.single.xml"}},scopeName:"text.xml.xsl",embeddedLangs:["xml"],aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...xml,
|
package/dist/yaml.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"YAML",fileTypes:["yaml","yml","rviz","reek","clang-format","yaml-tmlanguage","syntax","sublime-syntax"],firstLineMatch:/^%YAML( ?1[^\n]\p{Nd}+)?/dgv,name:"yaml",patterns:[{include:"#comment"},{include:"#property"},{include:"#directive"},{match:/^---/dgv,name:"entity.other.document.begin.yaml"},{match:/^\.{3}/dgv,name:"entity.other.document.end.yaml"},{include:"#node"}],repository:{"block-collection":{patterns:[{include:"#block-sequence"},{include:"#block-mapping"}]},"block-mapping":{patterns:[{include:"#block-pair"}]},"block-node":{patterns:[{include:"#prototype"},{include:"#block-scalar"},{include:"#block-collection"},{include:"#flow-scalar-plain-out"},{include:"#flow-node"}]},"block-pair":{patterns:[{begin:/\?/dgv,beginCaptures:{"1":{name:"punctuation.definition.key-value.begin.yaml"}},end:/(?=\?)|^ *(:)|(:)/dgv,endCaptures:{"1":{name:"punctuation.separator.key-value.mapping.yaml"},"2":{name:"invalid.illegal.expected-newline.yaml"}},name:"meta.block-mapping.yaml",patterns:[{include:"#block-node"}]},{begin:/(?=(?:[^\p{space}\-\?\:\,\[\]\{\}\#\&\*\!\|\>'"\%\@\`]|[\?\:\-]\P{space})([^\p{space}\:]|:\P{space}|\p{space}+(?![\#\p{space}]))*\p{space}*:(\p{space}|(?=\n?$)))/dgv,end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$)))/dgv,patterns:[{include:"#flow-scalar-plain-out-implicit-type"},{begin:/[^\p{space}\-\?\:\,\[\]\{\}\#\&\*\!\|\>'"\%\@\`]|[\?\:\-]\P{space}/dgv,beginCaptures:{"0":{name:"entity.name.tag.yaml"}},contentName:"entity.name.tag.yaml",end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$)))/dgv,name:"string.unquoted.plain.out.yaml"}]},{match:/:(?=\p{space}|(?=\n?$))/dgv,name:"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{begin:/(?:(\|)|(>))([1-9])?([\-\+])?([^\n]*\n?)/dgv,beginCaptures:{"1":{name:"keyword.control.flow.block-scalar.literal.yaml"},"2":{name:"keyword.control.flow.block-scalar.folded.yaml"},"3":{name:"constant.numeric.indentation-indicator.yaml"},"4":{name:"storage.modifier.chomping-indicator.yaml"},"5":{patterns:[{include:"#comment"},{match:/[^\n]+/dgv,name:"invalid.illegal.expected-comment-or-newline.yaml"}]}},end:/*@__PURE__*/ new EmulatedRegExp("^(?=\\P{space})|(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/^( +)(?! )/dgv,end:/^(?!\1|\p{space}*(?=\n?$))()/dgv,name:"string.unquoted.block.yaml"}]},"block-sequence":{match:/(-)(?!\P{space})/dgv,name:"punctuation.definition.block.sequence.item.yaml"},comment:{begin:/(?:(^[ \t]*)|[ \t]+)(?=#[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]*(?=\n?$))/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.yaml"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.yaml"}},end:/\n/dgv,name:"comment.line.number-sign.yaml"}]},directive:{begin:/^%/dgv,beginCaptures:{"0":{name:"punctuation.definition.directive.begin.yaml"}},end:/(?=(?=\n?$)|[ \t]+((?=\n?$)|#))/dgv,name:"meta.directive.yaml",patterns:[{captures:{"1":{name:"keyword.other.directive.yaml.yaml"},"2":{name:"constant.numeric.yaml-version.yaml"}},match:/(YAML)[ \t]+(\p{Nd}+\.\p{Nd}+)/dgvy},{captures:{"1":{name:"keyword.other.directive.tag.yaml"},"2":{name:"storage.type.tag-handle.yaml"},"3":{name:"support.type.tag-prefix.yaml"}},match:/(TAG)(?:[ \t]+(!(?:[0-9A-Za-z\-]*!)?)(?:[ \t]+(!(?:%\p{AHex}{2}|[0-9A-Za-z\-\#\;\/\?\:\@\&\=\+\$\,_\.\!\~\*'\(\)\[\]])*|(?![\,\!\[\]\{\}])(?:%\p{AHex}{2}|[0-9A-Za-z\-\#\;\/\?\:\@\&\=\+\$\,_\.\!\~\*'\(\)\[\]])+))?)?/dgvy},{captures:{"1":{name:"support.other.directive.reserved.yaml"},"2":{name:"string.unquoted.directive-name.yaml"},"3":{name:"string.unquoted.directive-parameter.yaml"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+)(?:[ \t]+([\p{L}\p{M}\p{N}\p{Pc}]+)(?:[ \t]+([\p{L}\p{M}\p{N}\p{Pc}]+))?)?/dgvy},{match:/\P{space}+/dgv,name:"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{captures:{"1":{name:"keyword.control.flow.alias.yaml"},"2":{name:"punctuation.definition.alias.yaml"},"3":{name:"variable.other.alias.yaml"},"4":{name:"invalid.illegal.character.anchor.yaml"}},match:/((\*))([^\p{space}\[\]\/\{\}\,]+)([^\p{space}\]\}\,]\P{space}*)?/dgv},"flow-collection":{patterns:[{include:"#flow-sequence"},{include:"#flow-mapping"}]},"flow-mapping":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.mapping.begin.yaml"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.mapping.end.yaml"}},name:"meta.flow-mapping.yaml",patterns:[{include:"#prototype"},{match:/,/dgv,name:"punctuation.separator.mapping.yaml"},{include:"#flow-pair"}]},"flow-node":{patterns:[{include:"#prototype"},{include:"#flow-alias"},{include:"#flow-collection"},{include:"#flow-scalar"}]},"flow-pair":{patterns:[{begin:/\?/dgv,beginCaptures:{"0":{name:"punctuation.definition.key-value.begin.yaml"}},end:/(?=[\}\,\]])/dgv,name:"meta.flow-pair.explicit.yaml",patterns:[{include:"#prototype"},{include:"#flow-pair"},{include:"#flow-node"},{begin:/:(?=\p{space}|(?=\n?$)|[\[\]\{\}\,])/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.mapping.yaml"}},end:/(?=[\}\,\]])/dgv,patterns:[{include:"#flow-value"}]}]},{begin:/(?=(?:[^\p{space}\-\?\:\,\[\]\{\}\#\&\*\!\|\>'"\%\@\`]|[\?\:\-][^\p{space}\[\]\{\}\,])([^\p{space}\:\[\]\{\}\,]|:[^\p{space}\[\]\{\}\,]|\p{space}+(?![\#\p{space}]))*\p{space}*:(\p{space}|(?=\n?$)))/dgv,end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$))|\p{space}*:[\[\]\{\}\,]|\p{space}*[\[\]\{\}\,])/dgv,name:"meta.flow-pair.key.yaml",patterns:[{include:"#flow-scalar-plain-in-implicit-type"},{begin:/[^\p{space}\-\?\:\,\[\]\{\}\#\&\*\!\|\>'"\%\@\`]|[\?\:\-][^\p{space}\[\]\{\}\,]/dgv,beginCaptures:{"0":{name:"entity.name.tag.yaml"}},contentName:"entity.name.tag.yaml",end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$))|\p{space}*:[\[\]\{\}\,]|\p{space}*[\[\]\{\}\,])/dgv,name:"string.unquoted.plain.in.yaml"}]},{include:"#flow-node"},{begin:/:(?=\p{space}|(?=\n?$)|[\[\]\{\}\,])/dgv,captures:{"0":{name:"punctuation.separator.key-value.mapping.yaml"}},end:/(?=[\}\,\]])/dgv,name:"meta.flow-pair.yaml",patterns:[{include:"#flow-value"}]}]},"flow-scalar":{patterns:[{include:"#flow-scalar-double-quoted"},{include:"#flow-scalar-single-quoted"},{include:"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.yaml"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.yaml"}},name:"string.quoted.double.yaml",patterns:[{match:/\\([0abtnvfre "\/\\N_Lp]|x\p{Nd}\p{Nd}|u\p{Nd}{4}|U\p{Nd}{8})/dgv,name:"constant.character.escape.yaml"},{match:/\\\n/dgv,name:"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{patterns:[{include:"#flow-scalar-plain-in-implicit-type"},{begin:/[^\p{space}\-\?\:\,\[\]\{\}\#\&\*\!\|\>'"\%\@\`]|[\?\:\-][^\p{space}\[\]\{\}\,]/dgv,end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$))|\p{space}*:[\[\]\{\}\,]|\p{space}*[\[\]\{\}\,])/dgv,name:"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{patterns:[{captures:{"1":{name:"constant.language.null.yaml"},"2":{name:"constant.language.boolean.yaml"},"3":{name:"constant.numeric.integer.yaml"},"4":{name:"constant.numeric.float.yaml"},"5":{name:"constant.other.timestamp.yaml"},"6":{name:"constant.language.value.yaml"},"7":{name:"constant.language.merge.yaml"}},match:/(?:(null|Null|NULL|~)|([yY]|yes|Yes|YES|[nN]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|((?:[\-\+]?0b[0-1_]+|[\-\+]?0[0-7_]+|[\-\+]?(?:0|[1-9][0-9_]*)|[\-\+]?0x[_\p{AHex}]+|[\-\+]?[1-9][0-9_]*(?::[0-5]?[0-9])+))|((?:[\-\+]?(?:[0-9][0-9_]*)?\.[0-9\.]*(?:[eE][\-\+][0-9]+)?|[\-\+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*|[\-\+]?\.(?:inf|Inf|INF)|\.(?:nan|NaN|NAN)))|((?:\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2}|\p{Nd}{4}-\p{Nd}{1,2}-\p{Nd}{1,2}(?:[Tt]|[ \t]+)\p{Nd}{1,2}:\p{Nd}{2}:\p{Nd}{2}(?:\.\p{Nd}*)?(?:[ \t]*Z|[\-\+]\p{Nd}{1,2}(?::\p{Nd}{1,2})?)?))|(=)|(<<))(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$))|\p{space}*:[\[\]\{\}\,]|\p{space}*[\[\]\{\}\,])/dgv}]},"flow-scalar-plain-out":{patterns:[{include:"#flow-scalar-plain-out-implicit-type"},{begin:/[^\p{space}\-\?\:\,\[\]\{\}\#\&\*\!\|\>'"\%\@\`]|[\?\:\-]\P{space}/dgv,end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$)))/dgv,name:"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{patterns:[{captures:{"1":{name:"constant.language.null.yaml"},"2":{name:"constant.language.boolean.yaml"},"3":{name:"constant.numeric.integer.yaml"},"4":{name:"constant.numeric.float.yaml"},"5":{name:"constant.other.timestamp.yaml"},"6":{name:"constant.language.value.yaml"},"7":{name:"constant.language.merge.yaml"}},match:/(?:(null|Null|NULL|~)|([yY]|yes|Yes|YES|[nN]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|((?:[\-\+]?0b[0-1_]+|[\-\+]?0[0-7_]+|[\-\+]?(?:0|[1-9][0-9_]*)|[\-\+]?0x[_\p{AHex}]+|[\-\+]?[1-9][0-9_]*(?::[0-5]?[0-9])+))|((?:[\-\+]?(?:[0-9][0-9_]*)?\.[0-9\.]*(?:[eE][\-\+][0-9]+)?|[\-\+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*|[\-\+]?\.(?:inf|Inf|INF)|\.(?:nan|NaN|NAN)))|((?:\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2}|\p{Nd}{4}-\p{Nd}{1,2}-\p{Nd}{1,2}(?:[Tt]|[ \t]+)\p{Nd}{1,2}:\p{Nd}{2}:\p{Nd}{2}(?:\.\p{Nd}*)?(?:[ \t]*Z|[\-\+]\p{Nd}{1,2}(?::\p{Nd}{1,2})?)?))|(=)|(<<))(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$)))/dgv}]},"flow-scalar-single-quoted":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.yaml"}},end:/'(?!')/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.yaml"}},name:"string.quoted.single.yaml",patterns:[{match:/''/dgv,name:"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.sequence.begin.yaml"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.sequence.end.yaml"}},name:"meta.flow-sequence.yaml",patterns:[{include:"#prototype"},{match:/,/dgv,name:"punctuation.separator.sequence.yaml"},{include:"#flow-pair"},{include:"#flow-node"}]},"flow-value":{patterns:[{begin:/(?![\}\,\]])/dgvy,end:/(?=[\}\,\]])/dgv,name:"meta.flow-pair.value.yaml",patterns:[{include:"#flow-node"}]}]},node:{patterns:[{include:"#block-node"}]},property:{begin:/(?=[\!\&])/dgv,end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.property.yaml",patterns:[{captures:{"1":{name:"keyword.control.property.anchor.yaml"},"2":{name:"punctuation.definition.anchor.yaml"},"3":{name:"entity.name.type.anchor.yaml"},"4":{name:"invalid.illegal.character.anchor.yaml"}},match:/((&))([^\p{space}\[\]\/\{\}\,]+)(\P{space}+)?/dgvy},{match:/!(?:<(?:%\p{AHex}{2}|[0-9A-Za-z\-\#\;\/\?\:\@\&\=\+\$\,_\.\!\~\*'\(\)\[\]])+>|(?:[0-9A-Za-z\-]*!)?(?:%\p{AHex}{2}|[0-9A-Za-z\-\#\;\/\?\:\@\&\=\+\$_\.\~\*'\(\)])+|)(?=[ \t]|(?=\n?$))/dgvy,name:"storage.type.tag-handle.yaml"},{match:/\P{space}+/dgv,name:"invalid.illegal.tag-handle.yaml"}]},prototype:{patterns:[{include:"#comment"},{include:"#property"}]}},scopeName:"source.yaml",embeddedLangs:undefined,aliases:["yml"]})
|
|
3
|
+
const lang = Object.freeze({displayName:"YAML",fileTypes:["yaml","yml","rviz","reek","clang-format","yaml-tmlanguage","syntax","sublime-syntax"],firstLineMatch:/^%YAML( ?1[^\n]\p{Nd}+)?/dgv,name:"yaml",patterns:[{include:"#comment"},{include:"#property"},{include:"#directive"},{match:/^---/dgv,name:"entity.other.document.begin.yaml"},{match:/^\.{3}/dgv,name:"entity.other.document.end.yaml"},{include:"#node"}],repository:{"block-collection":{patterns:[{include:"#block-sequence"},{include:"#block-mapping"}]},"block-mapping":{patterns:[{include:"#block-pair"}]},"block-node":{patterns:[{include:"#prototype"},{include:"#block-scalar"},{include:"#block-collection"},{include:"#flow-scalar-plain-out"},{include:"#flow-node"}]},"block-pair":{patterns:[{begin:/\?/dgv,beginCaptures:{"1":{name:"punctuation.definition.key-value.begin.yaml"}},end:/(?=\?)|^ *(:)|(:)/dgv,endCaptures:{"1":{name:"punctuation.separator.key-value.mapping.yaml"},"2":{name:"invalid.illegal.expected-newline.yaml"}},name:"meta.block-mapping.yaml",patterns:[{include:"#block-node"}]},{begin:/(?=(?:[^\-\]\!"\#\%\&'\*\,\:\>\?\@\[\`\{\|\}\p{space}]|[\-\:\?]\P{space})([^\:\p{space}]|:\P{space}|\p{space}+(?![\#\p{space}]))*\p{space}*:(\p{space}|(?=\n?$)))/dgv,end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$)))/dgv,patterns:[{include:"#flow-scalar-plain-out-implicit-type"},{begin:/[^\-\]\!"\#\%\&'\*\,\:\>\?\@\[\`\{\|\}\p{space}]|[\-\:\?]\P{space}/dgv,beginCaptures:{"0":{name:"entity.name.tag.yaml"}},contentName:"entity.name.tag.yaml",end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$)))/dgv,name:"string.unquoted.plain.out.yaml"}]},{match:/:(?=\p{space}|(?=\n?$))/dgv,name:"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{begin:/(?:(\|)|(>))([1-9])?([\-\+])?([^\n]*\n?)/dgv,beginCaptures:{"1":{name:"keyword.control.flow.block-scalar.literal.yaml"},"2":{name:"keyword.control.flow.block-scalar.folded.yaml"},"3":{name:"constant.numeric.indentation-indicator.yaml"},"4":{name:"storage.modifier.chomping-indicator.yaml"},"5":{patterns:[{include:"#comment"},{match:/[^\n]+/dgv,name:"invalid.illegal.expected-comment-or-newline.yaml"}]}},end:/*@__PURE__*/ new EmulatedRegExp("^(?=\\P{space})|(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/^( +)(?! )/dgv,end:/^(?!\1|\p{space}*(?=\n?$))()/dgv,name:"string.unquoted.block.yaml"}]},"block-sequence":{match:/(-)(?!\P{space})/dgv,name:"punctuation.definition.block.sequence.item.yaml"},comment:{begin:/(?:^([\t ]*)|[\t ]+)(?=#[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]*(?=\n?$))/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.yaml"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.yaml"}},end:/\n/dgv,name:"comment.line.number-sign.yaml"}]},directive:{begin:/^%/dgv,beginCaptures:{"0":{name:"punctuation.definition.directive.begin.yaml"}},end:/(?=(?=\n?$)|[\t ]+((?=\n?$)|#))/dgv,name:"meta.directive.yaml",patterns:[{captures:{"1":{name:"keyword.other.directive.yaml.yaml"},"2":{name:"constant.numeric.yaml-version.yaml"}},match:/(YAML)[\t ]+(\p{Nd}+\.\p{Nd}+)/dgvy},{captures:{"1":{name:"keyword.other.directive.tag.yaml"},"2":{name:"storage.type.tag-handle.yaml"},"3":{name:"support.type.tag-prefix.yaml"}},match:/(TAG)(?:[\t ]+(!(?:[\-0-9A-Za-z]*!)?)(?:[\t ]+(!(?:%\p{AHex}{2}|[\]\!\#\$\&-\;\=\?-\[_a-z\~])*|(?![\]\!\,\[\{\}])(?:%\p{AHex}{2}|[\]\!\#\$\&-\;\=\?-\[_a-z\~])+))?)?/dgvy},{captures:{"1":{name:"support.other.directive.reserved.yaml"},"2":{name:"string.unquoted.directive-name.yaml"},"3":{name:"string.unquoted.directive-parameter.yaml"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+)(?:[\t ]+([\p{L}\p{M}\p{N}\p{Pc}]+)(?:[\t ]+([\p{L}\p{M}\p{N}\p{Pc}]+))?)?/dgvy},{match:/\P{space}+/dgv,name:"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{captures:{"1":{name:"keyword.control.flow.alias.yaml"},"2":{name:"punctuation.definition.alias.yaml"},"3":{name:"variable.other.alias.yaml"},"4":{name:"invalid.illegal.character.anchor.yaml"}},match:/((\*))([^\]\,\/\[\{\}\p{space}]+)([^\]\,\}\p{space}]\P{space}*)?/dgv},"flow-collection":{patterns:[{include:"#flow-sequence"},{include:"#flow-mapping"}]},"flow-mapping":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.mapping.begin.yaml"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.mapping.end.yaml"}},name:"meta.flow-mapping.yaml",patterns:[{include:"#prototype"},{match:/,/dgv,name:"punctuation.separator.mapping.yaml"},{include:"#flow-pair"}]},"flow-node":{patterns:[{include:"#prototype"},{include:"#flow-alias"},{include:"#flow-collection"},{include:"#flow-scalar"}]},"flow-pair":{patterns:[{begin:/\?/dgv,beginCaptures:{"0":{name:"punctuation.definition.key-value.begin.yaml"}},end:/(?=[\]\,\}])/dgv,name:"meta.flow-pair.explicit.yaml",patterns:[{include:"#prototype"},{include:"#flow-pair"},{include:"#flow-node"},{begin:/:(?=\p{space}|(?=\n?$)|[\]\,\[\{\}])/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.mapping.yaml"}},end:/(?=[\]\,\}])/dgv,patterns:[{include:"#flow-value"}]}]},{begin:/(?=(?:[^\-\]\!"\#\%\&'\*\,\:\>\?\@\[\`\{\|\}\p{space}]|[\-\:\?][^\]\,\[\{\}\p{space}])([^\]\,\:\[\{\}\p{space}]|:[^\]\,\[\{\}\p{space}]|\p{space}+(?![\#\p{space}]))*\p{space}*:(\p{space}|(?=\n?$)))/dgv,end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$))|\p{space}*:[\]\,\[\{\}]|\p{space}*[\]\,\[\{\}])/dgv,name:"meta.flow-pair.key.yaml",patterns:[{include:"#flow-scalar-plain-in-implicit-type"},{begin:/[^\-\]\!"\#\%\&'\*\,\:\>\?\@\[\`\{\|\}\p{space}]|[\-\:\?][^\]\,\[\{\}\p{space}]/dgv,beginCaptures:{"0":{name:"entity.name.tag.yaml"}},contentName:"entity.name.tag.yaml",end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$))|\p{space}*:[\]\,\[\{\}]|\p{space}*[\]\,\[\{\}])/dgv,name:"string.unquoted.plain.in.yaml"}]},{include:"#flow-node"},{begin:/:(?=\p{space}|(?=\n?$)|[\]\,\[\{\}])/dgv,captures:{"0":{name:"punctuation.separator.key-value.mapping.yaml"}},end:/(?=[\]\,\}])/dgv,name:"meta.flow-pair.yaml",patterns:[{include:"#flow-value"}]}]},"flow-scalar":{patterns:[{include:"#flow-scalar-double-quoted"},{include:"#flow-scalar-single-quoted"},{include:"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.yaml"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.yaml"}},name:"string.quoted.double.yaml",patterns:[{match:/\\([ "\/0LN\\_abefnprtv]|x\p{Nd}\p{Nd}|u\p{Nd}{4}|U\p{Nd}{8})/dgv,name:"constant.character.escape.yaml"},{match:/\\\n/dgv,name:"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{patterns:[{include:"#flow-scalar-plain-in-implicit-type"},{begin:/[^\-\]\!"\#\%\&'\*\,\:\>\?\@\[\`\{\|\}\p{space}]|[\-\:\?][^\]\,\[\{\}\p{space}]/dgv,end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$))|\p{space}*:[\]\,\[\{\}]|\p{space}*[\]\,\[\{\}])/dgv,name:"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{patterns:[{captures:{"1":{name:"constant.language.null.yaml"},"2":{name:"constant.language.boolean.yaml"},"3":{name:"constant.numeric.integer.yaml"},"4":{name:"constant.numeric.float.yaml"},"5":{name:"constant.other.timestamp.yaml"},"6":{name:"constant.language.value.yaml"},"7":{name:"constant.language.merge.yaml"}},match:/(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([\-\+]?0b[01_]+|[\-\+]?0[0-7_]+|[\-\+]?(?:0|[1-9][0-9_]*)|[\-\+]?0x[_\p{AHex}]+|[\-\+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([\-\+]?(?:[0-9][0-9_]*)?\.[\.0-9]*(?:[Ee][\-\+][0-9]+)?|[\-\+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*|[\-\+]?\.(?:inf|Inf|INF)|\.(?:nan|NaN|NAN))|(\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2}|\p{Nd}{4}-\p{Nd}{1,2}-\p{Nd}{1,2}(?:[Tt]|[\t ]+)\p{Nd}{1,2}:\p{Nd}{2}:\p{Nd}{2}(?:\.\p{Nd}*)?(?:[\t ]*Z|[\-\+]\p{Nd}{1,2}(?::\p{Nd}{1,2})?)?)|(=)|(<<))(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$))|\p{space}*:[\]\,\[\{\}]|\p{space}*[\]\,\[\{\}])/dgv}]},"flow-scalar-plain-out":{patterns:[{include:"#flow-scalar-plain-out-implicit-type"},{begin:/[^\-\]\!"\#\%\&'\*\,\:\>\?\@\[\`\{\|\}\p{space}]|[\-\:\?]\P{space}/dgv,end:/(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$)))/dgv,name:"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{patterns:[{captures:{"1":{name:"constant.language.null.yaml"},"2":{name:"constant.language.boolean.yaml"},"3":{name:"constant.numeric.integer.yaml"},"4":{name:"constant.numeric.float.yaml"},"5":{name:"constant.other.timestamp.yaml"},"6":{name:"constant.language.value.yaml"},"7":{name:"constant.language.merge.yaml"}},match:/(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([\-\+]?0b[01_]+|[\-\+]?0[0-7_]+|[\-\+]?(?:0|[1-9][0-9_]*)|[\-\+]?0x[_\p{AHex}]+|[\-\+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([\-\+]?(?:[0-9][0-9_]*)?\.[\.0-9]*(?:[Ee][\-\+][0-9]+)?|[\-\+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*|[\-\+]?\.(?:inf|Inf|INF)|\.(?:nan|NaN|NAN))|(\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2}|\p{Nd}{4}-\p{Nd}{1,2}-\p{Nd}{1,2}(?:[Tt]|[\t ]+)\p{Nd}{1,2}:\p{Nd}{2}:\p{Nd}{2}(?:\.\p{Nd}*)?(?:[\t ]*Z|[\-\+]\p{Nd}{1,2}(?::\p{Nd}{1,2})?)?)|(=)|(<<))(?=\p{space}*(?=\n?$)|\p{space}+#|\p{space}*:(\p{space}|(?=\n?$)))/dgv}]},"flow-scalar-single-quoted":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.yaml"}},end:/'(?!')/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.yaml"}},name:"string.quoted.single.yaml",patterns:[{match:/''/dgv,name:"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.sequence.begin.yaml"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.sequence.end.yaml"}},name:"meta.flow-sequence.yaml",patterns:[{include:"#prototype"},{match:/,/dgv,name:"punctuation.separator.sequence.yaml"},{include:"#flow-pair"},{include:"#flow-node"}]},"flow-value":{patterns:[{begin:/(?![\]\,\}])/dgvy,end:/(?=[\]\,\}])/dgv,name:"meta.flow-pair.value.yaml",patterns:[{include:"#flow-node"}]}]},node:{patterns:[{include:"#block-node"}]},property:{begin:/(?=[\!\&])/dgv,end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.property.yaml",patterns:[{captures:{"1":{name:"keyword.control.property.anchor.yaml"},"2":{name:"punctuation.definition.anchor.yaml"},"3":{name:"entity.name.type.anchor.yaml"},"4":{name:"invalid.illegal.character.anchor.yaml"}},match:/((&))([^\]\,\/\[\{\}\p{space}]+)(\P{space}+)?/dgvy},{match:/!(?:<(?:%\p{AHex}{2}|[\]\!\#\$\&-\;\=\?-\[_a-z\~])+>|(?:[\-0-9A-Za-z]*!)?(?:%\p{AHex}{2}|[\#\$\&-\+\--\;\=\?-Z_a-z\~])+|)(?=[\t ]|(?=\n?$))/dgvy,name:"storage.type.tag-handle.yaml"},{match:/\P{space}+/dgv,name:"invalid.illegal.tag-handle.yaml"}]},prototype:{patterns:[{include:"#comment"},{include:"#property"}]}},scopeName:"source.yaml",embeddedLangs:undefined,aliases:["yml"]})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/zenscript.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"ZenScript",fileTypes:["zs"],name:"zenscript",patterns:[{match:/\b((0([
|
|
1
|
+
const lang = Object.freeze({displayName:"ZenScript",fileTypes:["zs"],name:"zenscript",patterns:[{match:/\b((0([Xx])\p{AHex}*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))(([Ee])([\-\+])?[0-9]+)?)([DFLUdflu]|UL|ul)?\b/dgv,name:"constant.numeric.zenscript"},{match:/\b-?(0[BOXbox])(0|[1-9A-Fa-f][_\p{AHex}]*)[A-Z_a-z]*\b/dgv,name:"constant.numeric.zenscript"},{include:"#code"},{match:/\b((?:[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*)(?=\[)/dgv,name:"storage.type.object.array.zenscript"}],repository:{brackets:{patterns:[{captures:{"1":{name:"keyword.control.zenscript"},"2":{name:"keyword.other.zenscript"},"3":{name:"keyword.control.zenscript"},"4":{name:"variable.other.zenscript"},"5":{name:"keyword.control.zenscript"},"6":{name:"constant.numeric.zenscript"},"7":{name:"keyword.control.zenscript"}},match:/(<)\b([^\n]*?)(:([^\n]*?(:(\*|\p{Nd}+)?)?)?)(>)/dgv,name:"keyword.other.zenscript"}]},class:{captures:{"1":{name:"storage.type.zenscript"},"2":{name:"entity.name.type.class.zenscript"}},match:/(zenClass)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"meta.class.zenscript"},code:{patterns:[{include:"#class"},{include:"#functions"},{include:"#dots"},{include:"#quotes"},{include:"#brackets"},{include:"#comments"},{include:"#var"},{include:"#keywords"},{include:"#constants"},{include:"#operators"}]},comments:{patterns:[{match:/\/\/[^\n]*/dgv,name:"comment.line.double=slash"},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"comment.block"}},end:/\*\//dgv,endCaptures:{"0":{name:"comment.block"}},name:"comment.block"}]},dots:{captures:{"1":{name:"storage.type.zenscript"},"2":{name:"keyword.control.zenscript"},"5":{name:"keyword.control.zenscript"}},match:/\b([\p{L}\p{M}\p{N}\p{Pc}]+)(\.)([\p{L}\p{M}\p{N}\p{Pc}]+)((\.)([\p{L}\p{M}\p{N}\p{Pc}]+))*/dgv,name:"plain.text.zenscript"},functions:{captures:{"0":{name:"storage.type.function.zenscript"},"1":{name:"entity.name.function.zenscript"}},match:/function\p{space}+([\$A-Z_a-z][\$\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?=\()/dgv,name:"meta.function.zenscript"},keywords:{patterns:[{match:/\b(instanceof|get|implements|set|import|function|override|const|if|else|do|while|for|throw|panic|lock|try|catch|finally|return|break|continue|switch|case|default|in|is|as|match|throws|super|new)\b/dgv,name:"keyword.control.zenscript"},{match:/\b(zenClass|zenConstructor|alias|class|interface|enum|struct|expand|variant|set|void|bool|byte|sbyte|short|ushort|int|uint|long|ulong|usize|float|double|char|string)\b/dgv,name:"storage.type.zenscript"},{match:/\b(variant|abstract|final|private|public|export|internal|static|protected|implicit|virtual|extern|immutable)\b/dgv,name:"storage.modifier.zenscript"},{match:/\b(Native|Precondition)\b/dgv,name:"entity.other.attribute-name"},{match:/\b(null|true|false)\b/dgv,name:"constant.language"}]},operators:{patterns:[{match:/\b(\.|\.\.|\.\.\.|[\+\,]|\+=|\+\+|-|-=|--|~|~=|\*|\*=|\/|\/=|%|%=|\||\|=|\|\||&|&=|&&|\^|\^=|\?|\?\.|\?\?|<|<=|<<|<<=|>|>=|>>|>>=|>>>|>>>=|=>|=|==|===|!|!=|!==|[\$\`])\b/dgv,name:"keyword.control"},{match:/\b([\:\;])\b/dgv,name:"keyword.control"}]},quotes:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.zenscript"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.zenscript"}},name:"string.quoted.double.zenscript",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.zenscript"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.zenscript"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.zenscript"}},name:"string.quoted.single.zenscript",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.zenscript"}]}]},var:{match:/\b(va[lr])\b/dgv,name:"storage.type"}},scopeName:"source.zenscript",embeddedLangs:undefined,aliases:undefined})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/zig.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Zig",fileTypes:["zig","zon"],name:"zig",patterns:[{include:"#comments"},{include:"#strings"},{include:"#keywords"},{include:"#operators"},{include:"#punctuation"},{include:"#numbers"},{include:"#support"},{include:"#variables"}],repository:{commentContents:{patterns:[{match:/\b(TODO|FIXME|XXX|NOTE)\b:?/dgv,name:"keyword.todo.zig"}]},comments:{patterns:[{begin:/\/\/[\!\/](?=[^\/])/dgv,end:/(?=\n?$)/dgv,name:"comment.line.documentation.zig",patterns:[{include:"#commentContents"}]},{begin:/\/\//dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-slash.zig",patterns:[{include:"#commentContents"}]}]},keywords:{patterns:[{match:/\binline\b(?!\p{space}*\bfn\b)/dgv,name:"keyword.control.repeat.zig"},{match:/\b(while|for)\b/dgv,name:"keyword.control.repeat.zig"},{match:/\b(extern|packed|export|pub|noalias|inline|comptime|volatile|align|linksection|threadlocal|allowzero|noinline|callconv)\b/dgv,name:"keyword.storage.zig"},{match:/\b(struct|enum|union|opaque)\b/dgv,name:"keyword.structure.zig"},{match:/\b(asm|unreachable)\b/dgv,name:"keyword.statement.zig"},{match:/\b(break|return|continue|defer|errdefer)\b/dgv,name:"keyword.control.flow.zig"},{match:/\b(await|resume|suspend|async|nosuspend)\b/dgv,name:"keyword.control.async.zig"},{match:/\b(try|catch)\b/dgv,name:"keyword.control.trycatch.zig"},{match:/\b(if|else|switch|orelse)\b/dgv,name:"keyword.control.conditional.zig"},{match:/\b(null|undefined)\b/dgv,name:"keyword.constant.default.zig"},{match:/\b(true|false)\b/dgv,name:"keyword.constant.bool.zig"},{match:/\b(usingnamespace|test|and|or)\b/dgv,name:"keyword.default.zig"},{match:/\b(bool|void|noreturn|type|error|anyerror|anyframe|anytype|anyopaque)\b/dgv,name:"keyword.type.zig"},{match:/\b(f16|f32|f64|f80|f128|u\p{Nd}+|i\p{Nd}+|isize|usize|comptime_int|comptime_float)\b/dgv,name:"keyword.type.integer.zig"},{match:/\b(c_(?:char|short|ushort|int|uint|long|ulong|longlong|ulonglong|longdouble))\b/dgv,name:"keyword.type.c.zig"}]},numbers:{patterns:[{match:/\b0x\p{AHex}[_\p{AHex}]*(\.\p{AHex}[_\p{AHex}]*)?([
|
|
1
|
+
const lang = Object.freeze({displayName:"Zig",fileTypes:["zig","zon"],name:"zig",patterns:[{include:"#comments"},{include:"#strings"},{include:"#keywords"},{include:"#operators"},{include:"#punctuation"},{include:"#numbers"},{include:"#support"},{include:"#variables"}],repository:{commentContents:{patterns:[{match:/\b(TODO|FIXME|XXX|NOTE)\b:?/dgv,name:"keyword.todo.zig"}]},comments:{patterns:[{begin:/\/\/[\!\/](?=[^\/])/dgv,end:/(?=\n?$)/dgv,name:"comment.line.documentation.zig",patterns:[{include:"#commentContents"}]},{begin:/\/\//dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-slash.zig",patterns:[{include:"#commentContents"}]}]},keywords:{patterns:[{match:/\binline\b(?!\p{space}*\bfn\b)/dgv,name:"keyword.control.repeat.zig"},{match:/\b(while|for)\b/dgv,name:"keyword.control.repeat.zig"},{match:/\b(extern|packed|export|pub|noalias|inline|comptime|volatile|align|linksection|threadlocal|allowzero|noinline|callconv)\b/dgv,name:"keyword.storage.zig"},{match:/\b(struct|enum|union|opaque)\b/dgv,name:"keyword.structure.zig"},{match:/\b(asm|unreachable)\b/dgv,name:"keyword.statement.zig"},{match:/\b(break|return|continue|defer|errdefer)\b/dgv,name:"keyword.control.flow.zig"},{match:/\b(await|resume|suspend|async|nosuspend)\b/dgv,name:"keyword.control.async.zig"},{match:/\b(try|catch)\b/dgv,name:"keyword.control.trycatch.zig"},{match:/\b(if|else|switch|orelse)\b/dgv,name:"keyword.control.conditional.zig"},{match:/\b(null|undefined)\b/dgv,name:"keyword.constant.default.zig"},{match:/\b(true|false)\b/dgv,name:"keyword.constant.bool.zig"},{match:/\b(usingnamespace|test|and|or)\b/dgv,name:"keyword.default.zig"},{match:/\b(bool|void|noreturn|type|error|anyerror|anyframe|anytype|anyopaque)\b/dgv,name:"keyword.type.zig"},{match:/\b(f16|f32|f64|f80|f128|u\p{Nd}+|i\p{Nd}+|isize|usize|comptime_int|comptime_float)\b/dgv,name:"keyword.type.integer.zig"},{match:/\b(c_(?:char|short|ushort|int|uint|long|ulong|longlong|ulonglong|longdouble))\b/dgv,name:"keyword.type.c.zig"}]},numbers:{patterns:[{match:/\b0x\p{AHex}[_\p{AHex}]*(\.\p{AHex}[_\p{AHex}]*)?([Pp][\-\+]?[_\p{AHex}]+)?\b/dgv,name:"constant.numeric.hexfloat.zig"},{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([Ee][\-\+]?[0-9_]+)?\b/dgv,name:"constant.numeric.float.zig"},{match:/\b[0-9][0-9_]*\b/dgv,name:"constant.numeric.decimal.zig"},{match:/\b0x[_\p{AHex}]+\b/dgv,name:"constant.numeric.hexadecimal.zig"},{match:/\b0o[0-7_]+\b/dgv,name:"constant.numeric.octal.zig"},{match:/\b0b[01_]+\b/dgv,name:"constant.numeric.binary.zig"},{match:/\b[0-9](([EPep][\-\+])|[0-9A-Z_a-z])*(\.(([EPep][\-\+])|[0-9A-Z_a-z])*)?([EPep][\-\+])?[0-9A-Z_a-z]*\b/dgv,name:"constant.numeric.invalid.zig"}]},operators:{patterns:[{match:/(?<=\[)\*c(?=\])/dgv,name:"keyword.operator.c-pointer.zig"},{match:/\b((and|or))\b|(==|!=|<=|>=|[\<\>])/dgv,name:"keyword.operator.comparison.zig"},{match:/(-%?|\+%?|\*%?|[\%\/])=?/dgv,name:"keyword.operator.arithmetic.zig"},{match:/(<<%?|>>|[\!\&\^\|\~])=?/dgv,name:"keyword.operator.bitwise.zig"},{match:/(==|\+\+|\*\*|->)/dgv,name:"keyword.operator.special.zig"},{match:/=/dgv,name:"keyword.operator.assignment.zig"},{match:/\?/dgv,name:"keyword.operator.question.zig"}]},punctuation:{patterns:[{match:/\./dgv,name:"punctuation.accessor.zig"},{match:/,/dgv,name:"punctuation.comma.zig"},{match:/:/dgv,name:"punctuation.separator.key-value.zig"},{match:/;/dgv,name:"punctuation.terminator.statement.zig"}]},stringcontent:{patterns:[{match:/\\(["'\\nrt]|(x\p{AHex}{2})|(u\{\p{AHex}+\}))/dgv,name:"constant.character.escape.zig"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-string-escape.zig"}]},strings:{patterns:[{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.zig",patterns:[{include:"#stringcontent"}]},{begin:/\\\\/dgv,end:/(?=\n?$)/dgv,name:"string.multiline.zig"},{match:/'([^'\\]|\\(x\p{AHex}{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|[^\n]))'/dgv,name:"string.quoted.single.zig"}]},support:{patterns:[{match:/@[A-Z_a-z][0-9A-Z_a-z]*/dgv,name:"support.function.builtin.zig"}]},variables:{patterns:[{name:"meta.function.declaration.zig",patterns:[{captures:{"1":{name:"storage.type.function.zig"},"2":{name:"entity.name.type.zig"}},match:/\b(fn)\p{space}+([A-Z][0-9A-Za-z]*)\b/dgv},{captures:{"1":{name:"storage.type.function.zig"},"2":{name:"entity.name.function.zig"}},match:/\b(fn)\p{space}+([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv},{begin:/\b(fn)\p{space}+@"/dgv,beginCaptures:{"1":{name:"storage.type.function.zig"}},end:/"/dgv,name:"entity.name.function.string.zig",patterns:[{include:"#stringcontent"}]},{match:/\b(const|var|fn)\b/dgv,name:"keyword.default.zig"}]},{name:"meta.function.call.zig",patterns:[{match:/([A-Z][0-9A-Za-z]*)(?=\p{space}*\()/dgv,name:"entity.name.type.zig"},{match:/([A-Z_a-z][0-9A-Z_a-z]*)(?=\p{space}*\()/dgv,name:"entity.name.function.zig"}]},{name:"meta.variable.zig",patterns:[{match:/\b[A-Z_a-z][0-9A-Z_a-z]*\b/dgv,name:"variable.zig"},{begin:/@"/dgv,end:/"/dgv,name:"variable.string.zig",patterns:[{include:"#stringcontent"}]}]}]}},scopeName:"source.zig",embeddedLangs:undefined,aliases:undefined})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shikijs/langs-precompiled",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.3.0",
|
|
5
5
|
"description": "TextMate grammars for Shiki in ESM",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -348,11 +348,11 @@
|
|
|
348
348
|
"node": ">=20"
|
|
349
349
|
},
|
|
350
350
|
"dependencies": {
|
|
351
|
-
"oniguruma-to-es": "^4.
|
|
352
|
-
"@shikijs/types": "3.
|
|
351
|
+
"oniguruma-to-es": "^4.2.0",
|
|
352
|
+
"@shikijs/types": "3.3.0"
|
|
353
353
|
},
|
|
354
354
|
"devDependencies": {
|
|
355
|
-
"tm-grammars": "^1.23.
|
|
355
|
+
"tm-grammars": "^1.23.15"
|
|
356
356
|
},
|
|
357
357
|
"scripts": {
|
|
358
358
|
"build": "pnpm prepare"
|