@shikijs/langs-precompiled 1.27.2 → 1.29.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-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/ballerina.mjs +1 -1
- package/dist/bat.mjs +1 -1
- package/dist/beancount.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/cmake.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/codeowners.mjs +1 -1
- package/dist/coffee.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/csv.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/docker.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/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/git-commit.mjs +1 -1
- package/dist/git-rebase.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.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-html.mjs +1 -1
- package/dist/jison.mjs +1 -1
- package/dist/json.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/latex.mjs +1 -1
- package/dist/lean.mjs +1 -1
- package/dist/less.mjs +1 -1
- package/dist/liquid.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/postcss.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/python.mjs +1 -1
- package/dist/qml.mjs +1 -1
- package/dist/qmldir.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 +10 -2
- package/dist/reg.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/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/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.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wenyan.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/xml.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +4 -4
package/dist/razor.mjs
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
import html from './html.mjs'
|
|
3
|
+
import csharp from './csharp.mjs'
|
|
2
4
|
|
|
3
|
-
throw new Error("razor is not supported due to the grammar limits")
|
|
5
|
+
const lang = Object.freeze({displayName:"ASP.NET Razor",fileTypes:["razor","cshtml"],injections:{"string.quoted.double.html":{patterns:[{include:"#explicit-razor-expression"},{include:"#implicit-expression"}]},"string.quoted.single.html":{patterns:[{include:"#explicit-razor-expression"},{include:"#implicit-expression"}]}},name:"razor",patterns:[{include:"#razor-control-structures"},{include:"text.html.basic"}],repository:{"addTagHelper-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.addTagHelper"},"3":{patterns:[{include:"#tagHelper-directive-argument"}]}},match:/(@)(addTagHelper)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"attribute-directive":{begin:/(@)(attribute)\b\p{space}+/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.attribute"}},end:/(?<=\])|(?=\n?$)/dgv,name:"meta.directive",patterns:[{include:"source.cs#attribute-section"}]},"await-prefix":{match:/(await)\p{space}+/dgv,name:"keyword.other.await.cs"},"balanced-brackets-csharp":{begin:/(\[)/dgv,beginCaptures:{"1":{name:"punctuation.squarebracket.open.cs"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.squarebracket.close.cs"}},name:"razor.test.balanced.brackets",patterns:[{include:"source.cs"}]},"balanced-parenthesis-csharp":{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.parenthesis.open.cs"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.parenthesis.close.cs"}},name:"razor.test.balanced.parenthesis",patterns:[{include:"source.cs"}]},"catch-clause":{begin:/(?:^|(?<=\}))\p{space}*(catch)\b\p{space}*?(?=[\n\(\{])/dgv,beginCaptures:{"1":{name:"keyword.control.try.catch.cs"}},end:/(?<=\})/dgv,name:"meta.statement.catch.razor",patterns:[{include:"#catch-condition"},{include:"source.cs#when-clause"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"catch-condition":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.cs"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.cs"}},patterns:[{captures:{"1":{patterns:[{include:"source.cs#type"}]},"6":{name:"entity.name.variable.local.cs"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<$0_type_name>(?:(?:(?<identifier>@?[_\\p{Alpha}][_\\p{Alpha}\\p{Nd}]*)\\p{space}*::\\p{space}*)?(?<$1_name_and_type_args>($2$E$@?[_\\p{Alpha}][_\\p{Alpha}\\p{Nd}]*)\\p{space}*(?<$2_type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($3$E$($2$E$@?[_\\p{Alpha}][_\\p{Alpha}\\p{Nd}]*)\\p{space}*($4$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*|(?<tuple>\\p{space}*\\((?:[^\\(\\)]|(?:\\p{space}*\\((?:[^\\(\\)]|(?:\\p{space}*\\((?:[^\\(\\)]|(?:\\p{space}*\\((?:[^\\(\\)]|(?:\\p{space}*\\((?:[^\\(\\)]|(?:))+\\)))+\\)))+\\)))+\\)))+\\)))(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}*(?:(($2$E$@?[_\\p{Alpha}][_\\p{Alpha}\\p{Nd}]*))\\b)?","dgv",{"useEmulationGroups":true})}]},"code-directive":{begin:/(@)(code)((?=\{)|\p{space}+)/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.code"}},end:/(?<=\})|\p{space}/dgv,patterns:[{include:"#directive-codeblock"}]},"csharp-code-block":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.curlybrace.open.cs"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.curlybrace.close.cs"}},name:"meta.structure.razor.csharp.codeblock",patterns:[{include:"#razor-codeblock-body"}]},"csharp-condition":{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.parenthesis.open.cs"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.parenthesis.close.cs"}},patterns:[{include:"source.cs#local-variable-declaration"},{include:"source.cs#expression"},{include:"source.cs#punctuation-comma"},{include:"source.cs#punctuation-semicolon"}]},"directive-codeblock":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"keyword.control.razor.directive.codeblock.open"}},contentName:"source.cs",end:/(\})/dgv,endCaptures:{"1":{name:"keyword.control.razor.directive.codeblock.close"}},name:"meta.structure.razor.directive.codeblock",patterns:[{include:"source.cs#class-or-struct-members"}]},"directive-markupblock":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"keyword.control.razor.directive.codeblock.open"}},end:/(\})/dgv,endCaptures:{"1":{name:"keyword.control.razor.directive.codeblock.close"}},name:"meta.structure.razor.directive.markblock",patterns:[{include:"$self"}]},directives:{patterns:[{include:"#code-directive"},{include:"#functions-directive"},{include:"#page-directive"},{include:"#addTagHelper-directive"},{include:"#removeTagHelper-directive"},{include:"#tagHelperPrefix-directive"},{include:"#model-directive"},{include:"#inherits-directive"},{include:"#implements-directive"},{include:"#namespace-directive"},{include:"#inject-directive"},{include:"#attribute-directive"},{include:"#section-directive"},{include:"#layout-directive"},{include:"#using-directive"},{include:"#rendermode-directive"},{include:"#preservewhitespace-directive"},{include:"#typeparam-directive"}]},"do-statement":{begin:/(@)(do)\b\p{space}/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.loop.do.cs"}},end:/(?<=\})/dgv,name:"meta.statement.do.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"do-statement-with-optional-transition":{begin:/(?:^\p{space}*|(@))(do)\b\p{space}/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.loop.do.cs"}},end:/(?<=\})/dgv,name:"meta.statement.do.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"else-part":{begin:/(?:^|(?<=\}))\p{space}*(else)\b\p{space}*?(?: (if))?\p{space}*?(?=[\n\(\{])/dgv,beginCaptures:{"1":{name:"keyword.control.conditional.else.cs"},"2":{name:"keyword.control.conditional.if.cs"}},end:/(?<=\})/dgv,name:"meta.statement.else.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"escaped-transition":{match:/@@/dgv,name:"constant.character.escape.razor.transition"},"explicit-razor-expression":{begin:/(@)\(/dgv,beginCaptures:{"0":{name:"keyword.control.cshtml"},"1":{patterns:[{include:"#transition"}]}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.control.cshtml"}},name:"meta.expression.explicit.cshtml",patterns:[{include:"source.cs#expression"}]},"finally-clause":{begin:/(?:^|(?<=\}))\p{space}*(finally)\b\p{space}*?(?=[\n\{])/dgv,beginCaptures:{"1":{name:"keyword.control.try.finally.cs"}},end:/(?<=\})/dgv,name:"meta.statement.finally.razor",patterns:[{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"for-statement":{begin:/(@)(for)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.loop.for.cs"}},end:/(?<=\})/dgv,name:"meta.statement.for.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"for-statement-with-optional-transition":{begin:/(?:^\p{space}*|(@))(for)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.loop.for.cs"}},end:/(?<=\})/dgv,name:"meta.statement.for.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"foreach-condition":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.cs"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.cs"}},patterns:[{captures:{"1":{name:"keyword.other.var.cs"},"2":{patterns:[{include:"source.cs#type"}]},"7":{name:"entity.name.variable.local.cs"},"8":{name:"keyword.control.loop.in.cs"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(\\bvar\\b)|(?<$0_type_name>(?:(?:(?<identifier>@?[_\\p{Alpha}][_\\p{Alpha}\\p{Nd}]*)\\p{space}*::\\p{space}*)?(?<$1_name_and_type_args>($3$E$@?[_\\p{Alpha}][_\\p{Alpha}\\p{Nd}]*)\\p{space}*(?<$2_type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_\\p{Alpha}][_\\p{Alpha}\\p{Nd}]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*|(?<tuple>\\p{space}*\\((?:[^\\(\\)]|(?:\\p{space}*\\((?:[^\\(\\)]|(?:\\p{space}*\\((?:[^\\(\\)]|(?:\\p{space}*\\((?:[^\\(\\)]|(?:\\p{space}*\\((?:[^\\(\\)]|(?:))+\\)))+\\)))+\\)))+\\)))+\\)))(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*))\\p{space}+(($3$E$@?[_\\p{Alpha}][_\\p{Alpha}\\p{Nd}]*))\\p{space}+\\b(in)\\b","dgv",{"useEmulationGroups":true})},{captures:{"1":{name:"keyword.other.var.cs"},"2":{patterns:[{include:"source.cs#tuple-declaration-deconstruction-element-list"}]},"3":{name:"keyword.control.loop.in.cs"}},match:/(?:\b(var)\b\p{space}*)?(?<tuple>\((?:[^\(\)]|(?:\((?:[^\(\)]|(?:\((?:[^\(\)]|(?:\((?:[^\(\)]|(?:\((?:[^\(\)]|(?:))+\)))+\)))+\)))+\)))+\))\p{space}+\b(in)\b/dgv},{include:"source.cs#expression"}]},"foreach-statement":{begin:/(@)(await\p{space}+)?(foreach)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{patterns:[{include:"#await-prefix"}]},"3":{name:"keyword.control.loop.foreach.cs"}},end:/(?<=\})/dgv,name:"meta.statement.foreach.razor",patterns:[{include:"#foreach-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"foreach-statement-with-optional-transition":{begin:/(?:^\p{space}*|(@)(await\p{space}+)?)(foreach)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{patterns:[{include:"#await-prefix"}]},"3":{name:"keyword.control.loop.foreach.cs"}},end:/(?<=\})/dgv,name:"meta.statement.foreach.razor",patterns:[{include:"#foreach-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"functions-directive":{begin:/(@)(functions)((?=\{)|\p{space}+)/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.functions"}},end:/(?<=\})|\p{space}/dgv,patterns:[{include:"#directive-codeblock"}]},"if-statement":{begin:/(@)(if)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.conditional.if.cs"}},end:/(?<=\})/dgv,name:"meta.statement.if.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"if-statement-with-optional-transition":{begin:/(?:^\p{space}*|(@))(if)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.conditional.if.cs"}},end:/(?<=\})/dgv,name:"meta.statement.if.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"implements-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.implements"},"3":{patterns:[{include:"source.cs#type"}]}},match:/(@)(implements)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"implicit-expression":{begin:/(?<![\p{Alpha}\p{Alpha}\p{Nd}])(@)/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]}},contentName:"source.cs",end:/(?=[\p{space}\<\>\{\}\)\]'"])/dgv,name:"meta.expression.implicit.cshtml",patterns:[{include:"#await-prefix"},{include:"#implicit-expression-body"}]},"implicit-expression-accessor":{match:/(?<=\.)[_\p{Alpha}][_\p{Alpha}\p{Nd}]*/dgv,name:"variable.other.object.property.cs"},"implicit-expression-accessor-start":{begin:/([_\p{Alpha}][_\p{Alpha}\p{Nd}]*)/dgv,beginCaptures:{"1":{name:"variable.other.object.cs"}},end:/(?=[\p{space}\<\>\{\}\)\]'"])/dgv,patterns:[{include:"#implicit-expression-continuation"}]},"implicit-expression-body":{end:/(?=[\p{space}\<\>\{\}\)\]'"])/dgv,patterns:[{include:"#implicit-expression-invocation-start"},{include:"#implicit-expression-accessor-start"}]},"implicit-expression-continuation":{end:/(?=[\p{space}\<\>\{\}\)\]'"])/dgv,patterns:[{include:"#balanced-parenthesis-csharp"},{include:"#balanced-brackets-csharp"},{include:"#implicit-expression-invocation"},{include:"#implicit-expression-accessor"},{include:"#implicit-expression-extension"}]},"implicit-expression-dot-operator":{captures:{"1":{name:"punctuation.accessor.cs"}},match:/(\.)(?=[_\p{Alpha}][_\p{Alpha}\p{Nd}]*)/dgv},"implicit-expression-invocation":{match:/(?<=\.)[_\p{Alpha}][_\p{Alpha}\p{Nd}]*(?=\()/dgv,name:"entity.name.function.cs"},"implicit-expression-invocation-start":{begin:/([_\p{Alpha}][_\p{Alpha}\p{Nd}]*)(?=\()/dgv,beginCaptures:{"1":{name:"entity.name.function.cs"}},end:/(?=[\p{space}\<\>\{\}\)\]'"])/dgv,patterns:[{include:"#implicit-expression-continuation"}]},"implicit-expression-null-conditional-operator":{captures:{"1":{name:"keyword.operator.null-conditional.cs"}},match:/(\?)(?=[\.\[])/dgv},"implicit-expression-null-forgiveness-operator":{captures:{"1":{name:"keyword.operator.logical.cs"}},match:/(!)(?=\.[_\p{Alpha}][_\p{Alpha}\p{Nd}]*|\?|[\[\(])/dgv},"implicit-expression-operator":{patterns:[{include:"#implicit-expression-dot-operator"},{include:"#implicit-expression-null-conditional-operator"},{include:"#implicit-expression-null-forgiveness-operator"}]},"inherits-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.inherits"},"3":{patterns:[{include:"source.cs#type"}]}},match:/(@)(inherits)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"inject-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.inject"},"3":{patterns:[{include:"source.cs#type"}]},"4":{name:"entity.name.variable.property.cs"}},match:/(@)(inject)\p{space}*([\P{space}\p{space}]+?)?\p{space}*([_\p{Alpha}][_\p{Alpha}\p{Nd}]*)?\p{space}*(?=(?=\n?$))/dgv,name:"meta.directive"},"layout-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.layout"},"3":{patterns:[{include:"source.cs#type"}]}},match:/(@)(layout)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"lock-statement":{begin:/(@)(lock)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.other.lock.cs"}},end:/(?<=\})/dgv,name:"meta.statement.lock.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"lock-statement-with-optional-transition":{begin:/(?:^\p{space}*|(@))(lock)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.other.lock.cs"}},end:/(?<=\})/dgv,name:"meta.statement.lock.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"model-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.model"},"3":{patterns:[{include:"source.cs#type"}]}},match:/(@)(model)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"namespace-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.namespace"},"3":{patterns:[{include:"#namespace-directive-argument"}]}},match:/(@)(namespace)\p{space}+([^\p{space}]+)?/dgv,name:"meta.directive"},"namespace-directive-argument":{captures:{"1":{name:"entity.name.type.namespace.cs"},"2":{name:"punctuation.accessor.cs"}},match:/([_\p{Alpha}][_\p{Alpha}\p{Nd}]*)(\.)?/dgv},"non-void-tag":{begin:/(?=<(!)?([^\/\p{space}\>]+)(\p{space}|\/?>))/dgv,end:/(<\/)((?!))\p{space}*(>)|(\/>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.html"},"3":{name:"punctuation.definition.tag.end.html"},"4":{name:"punctuation.definition.tag.end.html"}},patterns:[{begin:/(<)(!)?([^\/\p{space}\>]+)(?=\p{space}|\/?>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"constant.character.escape.razor.tagHelperOptOut"},"3":{name:"entity.name.tag.html"}},end:/(?=\/?>)/dgv,patterns:[{include:"#razor-control-structures"},{include:"text.html.basic#attribute"}]},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.html"}},end:/(?=<\/)/dgv,patterns:[{include:"#wellformed-html"},{include:"$self"}]}]},"optionally-transitioned-csharp-control-structures":{patterns:[{include:"#using-statement-with-optional-transition"},{include:"#if-statement-with-optional-transition"},{include:"#else-part"},{include:"#foreach-statement-with-optional-transition"},{include:"#for-statement-with-optional-transition"},{include:"#while-statement"},{include:"#switch-statement-with-optional-transition"},{include:"#lock-statement-with-optional-transition"},{include:"#do-statement-with-optional-transition"},{include:"#try-statement-with-optional-transition"}]},"optionally-transitioned-razor-control-structures":{patterns:[{include:"#razor-comment"},{include:"#razor-codeblock"},{include:"#explicit-razor-expression"},{include:"#escaped-transition"},{include:"#directives"},{include:"#optionally-transitioned-csharp-control-structures"},{include:"#implicit-expression"}]},"page-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.page"},"3":{patterns:[{include:"source.cs#string-literal"}]}},match:/(@)(page)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"preservewhitespace-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.preservewhitespace"},"3":{patterns:[{include:"source.cs#boolean-literal"}]}},match:/(@)(preservewhitespace)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"razor-codeblock":{begin:/(@)(\{)/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.codeblock.open"}},contentName:"source.cs",end:/(\})/dgv,endCaptures:{"1":{name:"keyword.control.razor.directive.codeblock.close"}},name:"meta.structure.razor.codeblock",patterns:[{include:"#razor-codeblock-body"}]},"razor-codeblock-body":{patterns:[{include:"#text-tag"},{include:"#wellformed-html"},{include:"#razor-single-line-markup"},{include:"#optionally-transitioned-razor-control-structures"},{include:"source.cs"}]},"razor-comment":{begin:/(@)(\*)/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.comment.star"}},contentName:"comment.block.razor",end:/(\*)(@)/dgv,endCaptures:{"1":{name:"keyword.control.razor.comment.star"},"2":{patterns:[{include:"#transition"}]}},name:"meta.comment.razor"},"razor-control-structures":{patterns:[{include:"#razor-comment"},{include:"#razor-codeblock"},{include:"#explicit-razor-expression"},{include:"#escaped-transition"},{include:"#directives"},{include:"#transitioned-csharp-control-structures"},{include:"#implicit-expression"}]},"razor-single-line-markup":{captures:{"1":{name:"keyword.control.razor.singleLineMarkup"},"2":{patterns:[{include:"#razor-control-structures"},{include:"text.html.basic"}]}},match:/(@:)([^\$]*)(?=\n?$)/dgv},"removeTagHelper-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.removeTagHelper"},"3":{patterns:[{include:"#tagHelper-directive-argument"}]}},match:/(@)(removeTagHelper)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"rendermode-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.rendermode"},"3":{patterns:[{include:"source.cs#type"}]}},match:/(@)(rendermode)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"section-directive":{begin:/(@)(section)\b\p{space}+([_\p{Alpha}][_\p{Alpha}\p{Nd}]*)?/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.section"},"3":{name:"variable.other.razor.directive.sectionName"}},end:/(?<=\})/dgv,name:"meta.directive.block",patterns:[{include:"#directive-markupblock"}]},"switch-code-block":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.curlybrace.open.cs"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.curlybrace.close.cs"}},name:"meta.structure.razor.csharp.codeblock.switch",patterns:[{include:"source.cs#switch-label"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"switch-statement":{begin:/(@)(switch)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.switch.cs"}},end:/(?<=\})/dgv,name:"meta.statement.switch.razor",patterns:[{include:"#csharp-condition"},{include:"#switch-code-block"},{include:"#razor-codeblock-body"}]},"switch-statement-with-optional-transition":{begin:/(?:^\p{space}*|(@))(switch)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.switch.cs"}},end:/(?<=\})/dgv,name:"meta.statement.switch.razor",patterns:[{include:"#csharp-condition"},{include:"#switch-code-block"},{include:"#razor-codeblock-body"}]},"tagHelper-directive-argument":{patterns:[{include:"source.cs#string-literal"},{include:"#unquoted-string-argument"}]},"tagHelperPrefix-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.tagHelperPrefix"},"3":{patterns:[{include:"#tagHelper-directive-argument"}]}},match:/(@)(tagHelperPrefix)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"text-tag":{begin:/(<text\p{space}*>)/dgv,beginCaptures:{"1":{name:"keyword.control.cshtml.transition.textTag.open"}},end:/(<\/text>)/dgv,endCaptures:{"1":{name:"keyword.control.cshtml.transition.textTag.close"}},patterns:[{include:"#wellformed-html"},{include:"$self"}]},transition:{match:/@/dgv,name:"keyword.control.cshtml.transition"},"transitioned-csharp-control-structures":{patterns:[{include:"#using-statement"},{include:"#if-statement"},{include:"#else-part"},{include:"#foreach-statement"},{include:"#for-statement"},{include:"#while-statement"},{include:"#switch-statement"},{include:"#lock-statement"},{include:"#do-statement"},{include:"#try-statement"}]},"try-block":{begin:/(@)(try)\b\p{space}*/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.try.cs"}},end:/(?<=\})/dgv,name:"meta.statement.try.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"try-block-with-optional-transition":{begin:/(?:^\p{space}*|(@))(try)\b\p{space}*/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.try.cs"}},end:/(?<=\})/dgv,name:"meta.statement.try.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"try-statement":{patterns:[{include:"#try-block"},{include:"#catch-clause"},{include:"#finally-clause"}]},"try-statement-with-optional-transition":{patterns:[{include:"#try-block-with-optional-transition"},{include:"#catch-clause"},{include:"#finally-clause"}]},"typeparam-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.razor.directive.typeparam"},"3":{patterns:[{include:"source.cs#type"}]}},match:/(@)(typeparam)\p{space}+([^\$]+)?/dgv,name:"meta.directive"},"unquoted-string-argument":{match:/[^\$]+/dgv,name:"string.quoted.double.cs"},"using-alias-directive":{captures:{"1":{name:"entity.name.type.alias.cs"},"2":{name:"keyword.operator.assignment.cs"},"3":{patterns:[{include:"source.cs#type"}]}},match:/([_\p{Alpha}][_\p{Alpha}\p{Nd}]*)\b\p{space}*(=)\p{space}*([^\n]+)\p{space}*/dgv},"using-directive":{captures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.other.using.cs"},"3":{patterns:[{include:"#using-static-directive"},{include:"#using-alias-directive"},{include:"#using-standard-directive"}]},"4":{name:"keyword.control.razor.optionalSemicolon"}},match:/(@)(using)\b\p{space}+(?!\(|\p{space})([^\n]+?)?(;)?(?=\n?$)/dgv,name:"meta.directive"},"using-standard-directive":{captures:{"1":{name:"entity.name.type.namespace.cs"}},match:/([_\p{Alpha}][_\p{Alpha}\p{Nd}]*)\p{space}*/dgv},"using-statement":{begin:/(@)(using)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.other.using.cs"}},end:/(?<=\})/dgv,name:"meta.statement.using.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"using-statement-with-optional-transition":{begin:/(?:^\p{space}*|(@))(using)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.other.using.cs"}},end:/(?<=\})/dgv,name:"meta.statement.using.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]},"using-static-directive":{captures:{"1":{name:"keyword.other.static.cs"},"2":{patterns:[{include:"source.cs#type"}]}},match:/(static)\b\p{space}+([^\n]+)/dgv},"void-tag":{begin:/(<)(!)?(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)(?=\p{space}|\/?>)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"constant.character.escape.razor.tagHelperOptOut"},"3":{name:"entity.name.tag.html"}},end:/\/?>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.structure.$3.void.html",patterns:[{include:"text.html.basic#attribute"}]},"wellformed-html":{patterns:[{include:"#void-tag"},{include:"#non-void-tag"}]},"while-statement":{begin:/(?:(@)|^\p{space}*|(?<=\})\p{space}*)(while)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{patterns:[{include:"#transition"}]},"2":{name:"keyword.control.loop.while.cs"}},end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.statement.cs"}},name:"meta.statement.while.razor",patterns:[{include:"#csharp-condition"},{include:"#csharp-code-block"},{include:"#razor-codeblock-body"}]}},scopeName:"text.aspnetcorerazor",embeddedLangs:["html","csharp"],aliases:undefined})
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
...html,
|
|
9
|
+
...csharp,
|
|
10
|
+
lang
|
|
11
|
+
]
|
package/dist/reg.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Windows Registry Script",fileTypes:["reg","REG"],name:"reg",patterns:[{match:/Windows Registry Editor Version 5\.00|REGEDIT4/dgv,name:"keyword.control.import.reg"},{captures:{"1":{name:"punctuation.definition.comment.reg"}},match:/(;)[^\n]*(
|
|
1
|
+
const lang = Object.freeze({displayName:"Windows Registry Script",fileTypes:["reg","REG"],name:"reg",patterns:[{match:/Windows Registry Editor Version 5\.00|REGEDIT4/dgv,name:"keyword.control.import.reg"},{captures:{"1":{name:"punctuation.definition.comment.reg"}},match:/(;)[^\n]*(?=\n?$)/dgv,name:"comment.line.semicolon.reg"},{captures:{"1":{name:"punctuation.definition.section.reg"},"2":{name:"entity.section.reg"},"3":{name:"punctuation.definition.section.reg"}},match:/^\p{space}*(\[(?!-))([^\n]*?)(\])/dgv,name:"entity.name.function.section.add.reg"},{captures:{"1":{name:"punctuation.definition.section.reg"},"2":{name:"entity.section.reg"},"3":{name:"punctuation.definition.section.reg"}},match:/^\p{space}*(\[-)([^\n]*?)(\])/dgv,name:"entity.name.function.section.delete.reg"},{captures:{"2":{name:"punctuation.definition.quote.reg"},"3":{name:"support.function.regname.ini"},"4":{name:"punctuation.definition.quote.reg"},"5":{name:"punctuation.definition.equals.reg"},"7":{name:"keyword.operator.arithmetic.minus.reg"},"9":{name:"punctuation.definition.quote.reg"},"10":{name:"string.name.regdata.reg"},"11":{name:"punctuation.definition.quote.reg"},"13":{name:"support.type.dword.reg"},"14":{name:"keyword.operator.arithmetic.colon.reg"},"15":{name:"constant.numeric.dword.reg"},"17":{name:"support.type.dword.reg"},"18":{name:"keyword.operator.arithmetic.parenthesis.reg"},"19":{name:"keyword.operator.arithmetic.parenthesis.reg"},"20":{name:"constant.numeric.hex.size.reg"},"21":{name:"keyword.operator.arithmetic.parenthesis.reg"},"22":{name:"keyword.operator.arithmetic.colon.reg"},"23":{name:"constant.numeric.hex.reg"},"24":{name:"keyword.operator.arithmetic.linecontinuation.reg"},"25":{name:"comment.declarationline.semicolon.reg"}},match:/^(\p{space}*(["']?)([^\n]+?)(["']?)\p{space}*(=))?\p{space}*((-)|((["'])([^\n]*?)(["']))|(([Dd][Ww][Oo][Rr][Dd])(:)\p{space}*([\p{Nd}abcdefABCDEF]{1,8}))|(([Hh][Ee][Xx])((\()([\p{Nd}]*)(\)))?(:)([^\n]*?)(\\?)))\p{space}*(;[^\n]*)?(?=\n?$)/dgv,name:"meta.declaration.reg"},{match:/[0-9]+/dgv,name:"constant.numeric.reg"},{match:/[a-fA-F]+/dgv,name:"constant.numeric.hex.reg"},{match:/,+/dgv,name:"constant.numeric.hex.comma.reg"},{match:/\\/dgv,name:"keyword.operator.arithmetic.linecontinuation.reg"}],scopeName:"source.reg",embeddedLangs:undefined,aliases:undefined})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/rel.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Rel",name:"rel",patterns:[{include:"#strings"},{include:"#comment"},{include:"#single-line-comment-consuming-line-ending"},{include:"#deprecated-temporary"},{include:"#operators"},{include:"#symbols"},{include:"#keywords"},{include:"#otherkeywords"},{include:"#types"},{include:"#constants"}],repository:{comment:{patterns:[{begin:/\/\*\*(?!\/)/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.rel"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.rel"}},name:"comment.block.documentation.rel",patterns:[{include:"#docblock"}]},{begin:/(\/\*)(?:\p{space}*((@)internal)(?=\p{space}|(\*\/)))?/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.rel"},"2":{name:"storage.type.internaldeclaration.rel"},"3":{name:"punctuation.decorator.internaldeclaration.rel"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.rel"}},name:"comment.block.rel"},{begin:/doc"""/dgv,end:/"""/dgv,name:"comment.block.documentation.rel"},{begin:/(
|
|
1
|
+
const lang = Object.freeze({displayName:"Rel",name:"rel",patterns:[{include:"#strings"},{include:"#comment"},{include:"#single-line-comment-consuming-line-ending"},{include:"#deprecated-temporary"},{include:"#operators"},{include:"#symbols"},{include:"#keywords"},{include:"#otherkeywords"},{include:"#types"},{include:"#constants"}],repository:{comment:{patterns:[{begin:/\/\*\*(?!\/)/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.rel"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.rel"}},name:"comment.block.documentation.rel",patterns:[{include:"#docblock"}]},{begin:/(\/\*)(?:\p{space}*((@)internal)(?=\p{space}|(\*\/)))?/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.rel"},"2":{name:"storage.type.internaldeclaration.rel"},"3":{name:"punctuation.decorator.internaldeclaration.rel"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.rel"}},name:"comment.block.rel"},{begin:/doc"""/dgv,end:/"""/dgv,name:"comment.block.documentation.rel"},{begin:/(^[ \t]+)?((\/\/)(?:\p{space}*((@)internal)(?=\p{space}|(?=\n?$)))?)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.rel"},"2":{name:"comment.line.double-slash.rel"},"3":{name:"punctuation.definition.comment.rel"},"4":{name:"storage.type.internaldeclaration.rel"},"5":{name:"punctuation.decorator.internaldeclaration.rel"}},contentName:"comment.line.double-slash.rel",end:/(?=(?=\n?$))/dgv}]},constants:{patterns:[{match:/(\b(true|false)\b)/dgv,name:"constant.language.rel"}]},"deprecated-temporary":{patterns:[{match:/@inspect/dgv,name:"keyword.other.rel"}]},keywords:{patterns:[{match:/(\b(def|entity|bound|include|ic|forall|exists|∀|∃|return|module|^end)\b)|(((<)?\|(>)?)|∀|∃)/dgv,name:"keyword.control.rel"}]},operators:{patterns:[{match:/(\b(if|then|else|and|or|not|eq|neq|lt|lt_eq|gt|gt_eq)\b)|(\+|-|\*|\/|÷|\^|%|=|!=|≠|<|<=|≤|>|>=|≥|&)|\p{space}+(end)/dgv,name:"keyword.other.rel"}]},otherkeywords:{patterns:[{match:/\p{space}*(@inline)\p{space}*|\p{space}*(@auto_number)\p{space}*|\p{space}*(function)\p{space}|(\b(implies|select|from|∈|where|for|in)\b)|(((<)?\|(>)?)|∈)/dgv,name:"keyword.other.rel"}]},"single-line-comment-consuming-line-ending":{begin:/(^[ \t]+)?((\/\/)(?:\p{space}*((@)internal)(?=\p{space}|(?=\n?$)))?)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.rel"},"2":{name:"comment.line.double-slash.rel"},"3":{name:"punctuation.definition.comment.rel"},"4":{name:"storage.type.internaldeclaration.rel"},"5":{name:"punctuation.decorator.internaldeclaration.rel"}},contentName:"comment.line.double-slash.rel",end:/(?=^)/dgv},strings:{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.rel",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.rel"}]},symbols:{patterns:[{match:/(:[\[_\$\p{Alpha}](\]|[_\$\p{Alpha}\p{Nd}]*))/dgv,name:"variable.parameter.rel"}]},types:{patterns:[{match:/(\b(Symbol|Char|Bool|Rational|FixedDecimal|Float16|Float32|Float64|Int8|Int16|Int32|Int64|Int128|UInt8|UInt16|UInt32|UInt64|UInt128|Date|DateTime|Day|Week|Month|Year|Nanosecond|Microsecond|Millisecond|Second|Minute|Hour|FilePos|HashValue|AutoNumberValue)\b)/dgv,name:"entity.name.type.rel"}]}},scopeName:"source.rel",embeddedLangs:undefined,aliases:undefined})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/riscv.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"RISC-V",fileTypes:["S","s","riscv","asm"],name:"riscv",patterns:[{comment:"ok actually this are instructions, but one also could call them funtions…",match:/\b(la|lb|lh|lw|ld|nop|li|mv|not|neg|negw|sext\.w|seqz|snez|sltz|sgtz|beqz|bnez|blez|bgez|bltz|bgtz|bgt|ble|bgtu|bleu|j|jal|jr|ret|call|tail|fence|csr[r\|w\|s\|c]|csr[w\|s\|c]i)\b/dgv,name:"support.function.pseudo.riscv"},{match:/\b(add|addw|auipc|lui|jalr|beq|bne|blt|bge|bltu|bgeu|lb|lh|lw|ld|lbu|lhu|sb|sh|sw|sd|addi|addiw|slti|sltiu|xori|ori|andi|slli|slliw|srli|srliw|srai|sraiw|sub|subw|sll|sllw|slt|sltu|xor|srl|srlw|sra|sraw|or|and|fence|fence\.i|csrrw|csrrs|csrrc|csrrwi|csrrsi|csrrci)\b/dgv,name:"support.function.riscv"},{comment:"priviledged instructions",match:/\b(ecall|ebreak|sfence\.vma|mret|sret|uret|wfi)\b/dgv,name:"support.function.riscv.privileged"},{comment:"M extension (multiplication and division)",match:/\b(mul|mulh|mulhsu|mulhu|div|divu|rem|remu|mulw|divw|divuw|remw|remuw)\b/dgv,name:"support.function.riscv.m"},{comment:"C extension (compressed instructions)",match:/\b(c\.addi4spn|c\.fld|c\.lq|c\.lw|c\.flw|c\.ld|c\.fsd|c\.sq|c\.sw|c\.fsw|c\.sd|c\.nop|c\.addi|c\.jal|c\.addiw|c\.li|c\.addi16sp|c\.lui|c\.srli|c\.srli64|c\.srai|c\.srai64|c\.andi|c\.sub|c\.xor|c\.or|c\.and|c\.subw|c\.addw|c\.j|c\.beqz|c\.bnez)\b/dgv,name:"support.function.riscv.c"},{comment:"A extension (atomic instructions)",match:/\b(lr\.[w\|d]|sc\.[w\|d]|amoswap\.[w\|d]|amoadd\.[w\|d]|amoxor\.[w\|d]|amoand\.[w\|d]|amoor\.[w\|d]|amomin\.[w\|d]|amomax\.[w\|d]|amominu\.[w\|d]|amomaxu\.[w\|d])\b/dgv,name:"support.function.riscv.a"},{comment:"F extension (single precision floating point)",match:/\b(flw|fsw|fmadd\.s|fmsub\.s|fnmsub\.s|fnmadd\.s|fadd\.s|fsub\.s|fmul\.s|fdiv\.s|fsqrt\.s|fsgnj\.s|fsgnjn\.s|fsgnjx\.s|fmin\.s|fmax\.s|fcvt\.w\.s|fcvt\.wu\.s|fmv\.x\.w|feq\.s|flt\.s|fle\.s|fclass\.s|fcvt\.s\.w|fcvt\.s\.wu|fmv\.w\.x|fcvt\.l\.s|fcvt\.lu\.s|fcvt\.s\.l|fcvt\.s\.lu)\b/dgv,name:"support.function.riscv.f"},{comment:"D extension (double precision floating point)",match:/\b(fld|fsd|fmadd\.d|fmsub\.d|fnmsub\.d|fnmadd\.d|fadd\.d|fsub\.d|fmul\.d|fdiv\.d|fsqrt\.d|fsgnj\.d|fsgnjn\.d|fsgnjx\.d|fmin\.d|fmax\.d|fcvt\.s\.d|fcvt\.d\.s|feq\.d|flt\.d|fle\.d|fclass\.d|fcvt\.w\.d|fcvt\.wu\.d|fcvt\.d\.w|fcvt\.d\.wu|fcvt\.l\.d|fcvt\.lu\.d|fmv\.x\.d|fcvt\.d\.l|fcvt\.d\.lu|fmv\.d\.x)\b/dgv,name:"support.function.riscv.d"},{match:/\.(skip|ascii|asciiz|byte|[2\|4\|8]byte|data|double|float|half|kdata|ktext|space|text|word|dword|dtprelword|dtpreldword|set\p{space}*(noat|at)|[s\|u]leb128|string|incbin|zero|rodata|comm|common)\b/dgv,name:"storage.type.riscv"},{match:/\.(balign|align|p2align|extern|globl|global|local|pushsection|section|bss|insn|option|type|equ|macro|endm|file|ident)\b/dgv,name:"storage.modifier.riscv"},{captures:{"1":{name:"entity.name.function.label.riscv"}},match:/\b([A-Za-z0-9_]+):/dgv,name:"meta.function.label.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\b(x([0-9]|1[0-9]|2[0-9]|3[0-1]))\b/dgv,name:"variable.other.register.usable.by-number.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\b(zero|ra|sp|gp|tp|t[0-6]|a[0-7]|s[0-9]|fp|s1[0-1])\b/dgv,name:"variable.other.register.usable.by-name.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\b(([umsh]|vs)status|([umsh]|vs)ie|([ums]|vs)tvec|([ums]|vs)scratch|([ums]|vs)epc|([ums]|vs)cause|([umsh]|vs)tval|([umsh]|vs)ip|fflags|frm|fcsr|m?cycleh?|timeh?|m?instreth?|m?hpmcounter([3-9]|[12][0-9]|3[01])h?|[msh][ei]deleg|[msh]counteren|v?satp|hgeie|hgeip|[hm]tinst|hvip|hgatp|htimedeltah?|mvendorid|marchid|mimpid|mhartid|misa|mstatush|mtval2|pmpcfg[0-3]|pmpaddr([0-9]|1[0-5])|mcountinhibit|mhpmevent([3-9]|[12][0-9]|3[01])|tselect|tdata[1-3]|dcsr|dpc|dscratch[0-1])\b/dgv,name:"variable.other.csr.names.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\bf([0-9]|1[0-9]|2[0-9]|3[0-1])\b/dgv,name:"variable.other.register.usable.floating-point.riscv"},{match:/\b\p{Nd}+\.\p{Nd}+\b/dgv,name:"constant.numeric.float.riscv"},{match:/\b(\p{Nd}+|0(x|X)[a-fA-F0-9]+)\b/dgv,name:"constant.numeric.integer.riscv"},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.riscv"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.riscv"}},name:"string.quoted.double.riscv",patterns:[{match:/\\[rnt\\"]/dgv,name:"constant.character.escape.riscv"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.riscv"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.riscv"}},name:"string.quoted.single.riscv",patterns:[{match:/\\[rnt\\"]/dgv,name:"constant.character.escape.riscv"}]},{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block"},{begin:/\/\//dgv,end:/\n/dgv,name:"comment.line.double-slash"},{begin:/*@__PURE__*/ new EmulatedRegExp("
|
|
3
|
+
const lang = Object.freeze({displayName:"RISC-V",fileTypes:["S","s","riscv","asm"],name:"riscv",patterns:[{comment:"ok actually this are instructions, but one also could call them funtions…",match:/\b(la|lb|lh|lw|ld|nop|li|mv|not|neg|negw|sext\.w|seqz|snez|sltz|sgtz|beqz|bnez|blez|bgez|bltz|bgtz|bgt|ble|bgtu|bleu|j|jal|jr|ret|call|tail|fence|csr[r\|w\|s\|c]|csr[w\|s\|c]i)\b/dgv,name:"support.function.pseudo.riscv"},{match:/\b(add|addw|auipc|lui|jalr|beq|bne|blt|bge|bltu|bgeu|lb|lh|lw|ld|lbu|lhu|sb|sh|sw|sd|addi|addiw|slti|sltiu|xori|ori|andi|slli|slliw|srli|srliw|srai|sraiw|sub|subw|sll|sllw|slt|sltu|xor|srl|srlw|sra|sraw|or|and|fence|fence\.i|csrrw|csrrs|csrrc|csrrwi|csrrsi|csrrci)\b/dgv,name:"support.function.riscv"},{comment:"priviledged instructions",match:/\b(ecall|ebreak|sfence\.vma|mret|sret|uret|wfi)\b/dgv,name:"support.function.riscv.privileged"},{comment:"M extension (multiplication and division)",match:/\b(mul|mulh|mulhsu|mulhu|div|divu|rem|remu|mulw|divw|divuw|remw|remuw)\b/dgv,name:"support.function.riscv.m"},{comment:"C extension (compressed instructions)",match:/\b(c\.addi4spn|c\.fld|c\.lq|c\.lw|c\.flw|c\.ld|c\.fsd|c\.sq|c\.sw|c\.fsw|c\.sd|c\.nop|c\.addi|c\.jal|c\.addiw|c\.li|c\.addi16sp|c\.lui|c\.srli|c\.srli64|c\.srai|c\.srai64|c\.andi|c\.sub|c\.xor|c\.or|c\.and|c\.subw|c\.addw|c\.j|c\.beqz|c\.bnez)\b/dgv,name:"support.function.riscv.c"},{comment:"A extension (atomic instructions)",match:/\b(lr\.[w\|d]|sc\.[w\|d]|amoswap\.[w\|d]|amoadd\.[w\|d]|amoxor\.[w\|d]|amoand\.[w\|d]|amoor\.[w\|d]|amomin\.[w\|d]|amomax\.[w\|d]|amominu\.[w\|d]|amomaxu\.[w\|d])\b/dgv,name:"support.function.riscv.a"},{comment:"F extension (single precision floating point)",match:/\b(flw|fsw|fmadd\.s|fmsub\.s|fnmsub\.s|fnmadd\.s|fadd\.s|fsub\.s|fmul\.s|fdiv\.s|fsqrt\.s|fsgnj\.s|fsgnjn\.s|fsgnjx\.s|fmin\.s|fmax\.s|fcvt\.w\.s|fcvt\.wu\.s|fmv\.x\.w|feq\.s|flt\.s|fle\.s|fclass\.s|fcvt\.s\.w|fcvt\.s\.wu|fmv\.w\.x|fcvt\.l\.s|fcvt\.lu\.s|fcvt\.s\.l|fcvt\.s\.lu)\b/dgv,name:"support.function.riscv.f"},{comment:"D extension (double precision floating point)",match:/\b(fld|fsd|fmadd\.d|fmsub\.d|fnmsub\.d|fnmadd\.d|fadd\.d|fsub\.d|fmul\.d|fdiv\.d|fsqrt\.d|fsgnj\.d|fsgnjn\.d|fsgnjx\.d|fmin\.d|fmax\.d|fcvt\.s\.d|fcvt\.d\.s|feq\.d|flt\.d|fle\.d|fclass\.d|fcvt\.w\.d|fcvt\.wu\.d|fcvt\.d\.w|fcvt\.d\.wu|fcvt\.l\.d|fcvt\.lu\.d|fmv\.x\.d|fcvt\.d\.l|fcvt\.d\.lu|fmv\.d\.x)\b/dgv,name:"support.function.riscv.d"},{match:/\.(skip|ascii|asciiz|byte|[2\|4\|8]byte|data|double|float|half|kdata|ktext|space|text|word|dword|dtprelword|dtpreldword|set\p{space}*(noat|at)|[s\|u]leb128|string|incbin|zero|rodata|comm|common)\b/dgv,name:"storage.type.riscv"},{match:/\.(balign|align|p2align|extern|globl|global|local|pushsection|section|bss|insn|option|type|equ|macro|endm|file|ident)\b/dgv,name:"storage.modifier.riscv"},{captures:{"1":{name:"entity.name.function.label.riscv"}},match:/\b([A-Za-z0-9_]+):/dgv,name:"meta.function.label.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\b(x([0-9]|1[0-9]|2[0-9]|3[0-1]))\b/dgv,name:"variable.other.register.usable.by-number.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\b(zero|ra|sp|gp|tp|t[0-6]|a[0-7]|s[0-9]|fp|s1[0-1])\b/dgv,name:"variable.other.register.usable.by-name.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\b(([umsh]|vs)status|([umsh]|vs)ie|([ums]|vs)tvec|([ums]|vs)scratch|([ums]|vs)epc|([ums]|vs)cause|([umsh]|vs)tval|([umsh]|vs)ip|fflags|frm|fcsr|m?cycleh?|timeh?|m?instreth?|m?hpmcounter([3-9]|[12][0-9]|3[01])h?|[msh][ei]deleg|[msh]counteren|v?satp|hgeie|hgeip|[hm]tinst|hvip|hgatp|htimedeltah?|mvendorid|marchid|mimpid|mhartid|misa|mstatush|mtval2|pmpcfg[0-3]|pmpaddr([0-9]|1[0-5])|mcountinhibit|mhpmevent([3-9]|[12][0-9]|3[01])|tselect|tdata[1-3]|dcsr|dpc|dscratch[0-1])\b/dgv,name:"variable.other.csr.names.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\bf([0-9]|1[0-9]|2[0-9]|3[0-1])\b/dgv,name:"variable.other.register.usable.floating-point.riscv"},{match:/\b\p{Nd}+\.\p{Nd}+\b/dgv,name:"constant.numeric.float.riscv"},{match:/\b(\p{Nd}+|0(x|X)[a-fA-F0-9]+)\b/dgv,name:"constant.numeric.integer.riscv"},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.riscv"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.riscv"}},name:"string.quoted.double.riscv",patterns:[{match:/\\[rnt\\"]/dgv,name:"constant.character.escape.riscv"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.riscv"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.riscv"}},name:"string.quoted.single.riscv",patterns:[{match:/\\[rnt\\"]/dgv,name:"constant.character.escape.riscv"}]},{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block"},{begin:/\/\//dgv,end:/\n/dgv,name:"comment.line.double-slash"},{begin:/*@__PURE__*/ new EmulatedRegExp("^\\p{space}*#\\p{space}*(define)\\p{space}+((?<id>[a-zA-Z_][a-zA-Z0-9_]*))(?:(\\()(\\p{space}*($3$E$[a-zA-Z_][a-zA-Z0-9_]*)\\p{space}*((,)\\p{space}*($3$E$[a-zA-Z_][a-zA-Z0-9_]*)\\p{space}*)*(?:\\.\\.\\.)?)(\\)))?","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.import.define.c"},"2":{name:"entity.name.function.preprocessor.c"},"4":{name:"punctuation.definition.parameters.c"},"5":{name:"variable.parameter.preprocessor.c"},"7":{name:"punctuation.separator.parameters.c"},"8":{name:"punctuation.definition.parameters.c"}},end:/(?=(?:\/\/|\/\*))|(?=\n?$)/dgv,name:"meta.preprocessor.macro.c",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=($E$\\\\\\p{space}*\\n))\\1)","dgv",{"useEmulationGroups":true}),name:"punctuation.separator.continuation.c"},{include:"$base"}]},{begin:/^\p{space}*#\p{space}*(error|warning)\b/dgv,captures:{"1":{name:"keyword.control.import.error.c"}},end:/(?=\n?$)/dgv,name:"meta.preprocessor.diagnostic.c",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=($E$\\\\\\p{space}*\\n))\\1)","dgv",{"useEmulationGroups":true}),name:"punctuation.separator.continuation.c"}]},{begin:/^\p{space}*#\p{space}*(include|import)\b\p{space}+/dgv,captures:{"1":{name:"keyword.control.import.include.c"}},end:/(?=(?:\/\/|\/\*))|(?=\n?$)/dgv,name:"meta.preprocessor.c.include",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=($E$\\\\\\p{space}*\\n))\\1)","dgv",{"useEmulationGroups":true}),name:"punctuation.separator.continuation.c"},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.double.include.c"},{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.other.lt-gt.include.c"}]},{begin:/^\p{space}*#\p{space}*(define|defined|elif|else|if|ifdef|ifndef|line|pragma|undef|endif)\b/dgv,captures:{"1":{name:"keyword.control.import.c"}},end:/(?=(?:\/\/|\/\*))|(?=\n?$)/dgv,name:"meta.preprocessor.c",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=($E$\\\\\\p{space}*\\n))\\1)","dgv",{"useEmulationGroups":true}),name:"punctuation.separator.continuation.c"}]},{begin:/(^[ \t]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.riscv"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"search_start_clip"}),patterns:[{begin:/#|(\/\/)/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.riscv"}},end:/\n/dgv,name:"comment.line.number-sign.riscv"}]}],scopeName:"source.riscv",embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/rst.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import yaml from './yaml.mjs'
|
|
|
7
7
|
import cmake from './cmake.mjs'
|
|
8
8
|
import ruby from './ruby.mjs'
|
|
9
9
|
|
|
10
|
-
const lang = Object.freeze({displayName:"reStructuredText",name:"rst",patterns:[{include:"#body"}],repository:{anchor:{match:/(?<=^|\n(?!$))\.{2}\p{space}+(_[^\:]+:)\p{space}*/dgv,name:"entity.name.tag.anchor"},block:{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+\P{space}+::)([^\n]*)/dgv,beginCaptures:{"2":{name:"keyword.control"},"3":{name:"variable"}},end:/(?<=^|\n(?!$))(?!\1\p{space}|\p{space}*(?=$|\n))()/dgv,patterns:[{include:"#block-param"},{include:"#body"}]},"block-comment":{begin:/(?<=^|\n(?!$))(\p{space}*)\.{2}(\p{space}+|(?=$|\n))/dgv,end:/(?<=^|\n(?!$))(?=\P{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)/dgv,name:"comment.block",patterns:[{begin:/(?<=^|\n(?!$))\p{space}{3,}(?=\P{space})/dgv,name:"comment.block",while:/(?<=^|\n(?!$))\p{space}{3}[^\n]*|(?<=^|\n(?!$))\p{space}*(?=$|\n)/dgv}]},"block-param":{patterns:[{captures:{"1":{name:"keyword.control"},"2":{name:"variable.parameter"}},match:/(:param\p{space}+([^\n]+?):)(?:\p{space}|(?=$|\n))/dgv},{captures:{"1":{name:"keyword.control"},"2":{patterns:[{match:/\b(0x[a-fA-F\p{Nd}]+|\p{Nd}+)\b/dgv,name:"constant.numeric"},{include:"#inline-markup"}]}},match:/(:[^\n]+?:)(?:(?=$|\n)|\p{space}+([^\n]*))/dgv}]},blocks:{patterns:[{include:"#domains"},{include:"#doctest"},{include:"#code-block-cpp"},{include:"#code-block-py"},{include:"#code-block-console"},{include:"#code-block-javascript"},{include:"#code-block-yaml"},{include:"#code-block-cmake"},{include:"#code-block-kconfig"},{include:"#code-block-ruby"},{include:"#code-block-dts"},{include:"#code-block"},{include:"#doctest-block"},{include:"#raw-html"},{include:"#block"},{include:"#literal-block"},{include:"#block-comment"}]},body:{patterns:[{include:"#title"},{include:"#inline-markup"},{include:"#anchor"},{include:"#line-block"},{include:"#replace-include"},{include:"#footnote"},{include:"#substitution"},{include:"#blocks"},{include:"#table"},{include:"#simple-table"},{include:"#options-list"}]},bold:{begin:/(?<=[\p{space}"'\(\[\{\<]|(?<=^|\n(?!$)))\*{2}[^\p{space}\*]/dgv,end:/\*{2}|(?<=^|\n(?!$))\p{space}*(?=$|\n)/dgv,name:"markup.bold"},citation:{applyEndPatternLast:0,begin:/(?<=[\p{space}"'\(\[\{\<]|(?<=^|\n(?!$)))`[^\p{space}\`]/dgv,end:/`_{0,2}|(?<=^|\n(?!$))\p{space}*(?=$|\n)/dgv,name:"entity.name.tag"},"code-block":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(code|code-block)::)/dgv,beginCaptures:{"2":{name:"keyword.control"}},patterns:[{include:"#block-param"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"code-block-cmake":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(cmake)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.cmake"}},patterns:[{include:"#block-param"},{include:"source.cmake"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"code-block-console":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(console|shell|bash)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.console"}},patterns:[{include:"#block-param"},{include:"source.shell"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"code-block-cpp":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(c|c\+\+|cpp|C|C\+\+|CPP|Cpp)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.cpp"}},patterns:[{include:"#block-param"},{include:"source.cpp"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"code-block-dts":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(dts|DTS|devicetree)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.dts"}},patterns:[{include:"#block-param"},{include:"source.dts"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"code-block-javascript":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(javascript)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.js"}},patterns:[{include:"#block-param"},{include:"source.js"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"code-block-kconfig":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*([kK]config)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.kconfig"}},patterns:[{include:"#block-param"},{include:"source.kconfig"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"code-block-py":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(python)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.py"}},patterns:[{include:"#block-param"},{include:"source.python"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"code-block-ruby":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(ruby)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.ruby"}},patterns:[{include:"#block-param"},{include:"source.ruby"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"code-block-yaml":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(ya?ml)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.yaml"}},patterns:[{include:"#block-param"},{include:"source.yaml"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},doctest:{begin:/(?<=^|\n(?!$))(>>>)\p{space}*([^\n]*)/dgv,beginCaptures:{"1":{name:"keyword.control"},"2":{patterns:[{include:"source.python"}]}},end:/(?<=^|\n(?!$))\p{space}*(?=$|\n)/dgv},"doctest-block":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+doctest::)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"}},patterns:[{include:"#block-param"},{include:"source.python"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"domain-auto":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+auto(?:class|module|exception|function|decorator|data|method|attribute|property)::)\p{space}*([^\n]*)/dgv,beginCaptures:{"2":{name:"keyword.control.py"},"3":{patterns:[{include:"source.python"}]}},patterns:[{include:"#block-param"},{include:"#body"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"domain-cpp":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+(?:cpp|c):(?:class|struct|function|member|var|type|enum|enum-struct|enum-class|enumerator|union|concept)::)\p{space}*(?:(@[\p{L}\p{M}\p{N}\p{Pc}]+)|([^\n]*))/dgv,beginCaptures:{"2":{name:"keyword.control"},"3":{name:"entity.name.tag"},"4":{patterns:[{include:"source.cpp"}]}},patterns:[{include:"#block-param"},{include:"#body"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},"domain-js":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+js:[\p{L}\p{M}\p{N}\p{Pc}]+::)\p{space}*([^\n]*)/dgv,beginCaptures:{"2":{name:"keyword.control"},"3":{patterns:[{include:"source.js"}]}},end:/(?<=^|\n(?!$))(?!\1[ \t]|(?=$|\n))()/dgv,patterns:[{include:"#block-param"},{include:"#body"}]},"domain-py":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+py:(?:module|function|data|exception|class|attribute|property|method|staticmethod|classmethod|decorator|decoratormethod)::)\p{space}*([^\n]*)/dgv,beginCaptures:{"2":{name:"keyword.control"},"3":{patterns:[{include:"source.python"}]}},patterns:[{include:"#block-param"},{include:"#body"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},domains:{patterns:[{include:"#domain-cpp"},{include:"#domain-py"},{include:"#domain-auto"},{include:"#domain-js"}]},escaped:{match:/\\[^\n]/dgv,name:"constant.character.escape"},footnote:{match:/(?<=^|\n(?!$))\p{space}*\.{2}\p{space}+\[(?:[\p{L}\p{M}\p{N}\p{Pc}\.\-]+|[\#\*]|#[\p{L}\p{M}\p{N}\p{Pc}]+)\]\p{space}+/dgv,name:"entity.name.tag"},"footnote-ref":{match:/\[(?:[\p{L}\p{M}\p{N}\p{Pc}\.\-]+|[\#\*])\]_/dgv,name:"entity.name.tag"},ignore:{patterns:[{match:/'[\`\*]+'/dgv},{match:/<[\`\*]+>/dgv},{match:/\{[\`\*]+\}/dgv},{match:/\([\`\*]+\)/dgv},{match:/\[[\`\*]+\]/dgv},{match:/"[\`\*]+"/dgv}]},"inline-markup":{patterns:[{include:"#escaped"},{include:"#ignore"},{include:"#ref"},{include:"#literal"},{include:"#monospaced"},{include:"#citation"},{include:"#bold"},{include:"#italic"},{include:"#list"},{include:"#macro"},{include:"#reference"},{include:"#footnote-ref"}]},italic:{begin:/(?<=[\p{space}"'\(\[\{\<]|(?<=^|\n(?!$)))\*[^\p{space}\*]/dgv,end:/\*|(?<=^|\n(?!$))\p{space}*(?=$|\n)/dgv,name:"markup.italic"},"line-block":{match:/(?<=^|\n(?!$))\|\p{space}+/dgv,name:"keyword.control"},list:{match:/(?<=^|\n(?!$))\p{space}*(\p{Nd}+\.|\* -|[a-zA-Z\#]\.|[iIvVxXmMcC]+\.|\(\p{Nd}+\)|\p{Nd}+\)|[\*\+\-])\p{space}+/dgv,name:"keyword.control"},literal:{captures:{"1":{name:"keyword.control"},"2":{name:"entity.name.tag"}},match:/(:\P{space}+:)(`[^\n]*?`\\?)/dgv},"literal-block":{begin:/(?<=^|\n(?!$))(\p{space}*)([^\n]*)(::)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{patterns:[{include:"#inline-markup"}]},"3":{name:"keyword.control"}},while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},macro:{match:/\|[^\|]+\|/dgv,name:"entity.name.tag"},monospaced:{begin:/(?<=[\p{space}"'\(\[\{\<]|(?<=^|\n(?!$)))``[^\p{space}\`]/dgv,end:/``|(?<=^|\n(?!$))\p{space}*(?=$|\n)/dgv,name:"string.interpolated"},"options-list":{match:/(?:(?:(?<=^|\n(?!$))|,\p{space}+)(?:[\-\+][\p{L}\p{M}\p{N}\p{Pc}]|--?[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\-]+|\/[\p{L}\p{M}\p{N}\p{Pc}]+)(?:[ \=](?:[\p{L}\p{M}\p{N}\p{Pc}]+|<[^\<\>]+?>))?)+(?= |\t|(?=$|\n))/dgv,name:"variable.parameter"},"raw-html":{begin:/(?<=^|\n(?!$))(\p{space}*)(\.{2}\p{space}+raw\p{space}*::)\p{space}+(html)\p{space}*(?=$|\n)/dgv,beginCaptures:{"2":{name:"keyword.control"},"3":{name:"variable.parameter.html"}},patterns:[{include:"#block-param"},{include:"text.html.derivative"}],while:/(?<=^|\n(?!$))\1(?=\p{space})|(?<=^|\n(?!$))\p{space}*(?=$|\n)()/dgv},ref:{begin:/(:ref:)`/dgv,beginCaptures:{"1":{name:"keyword.control"}},end:/`|(?<=^|\n(?!$))\p{space}*(?=$|\n)/dgv,name:"entity.name.tag",patterns:[{match:/<[^\n]*?>/dgv,name:"markup.underline.link"}]},reference:{match:/[\p{L}\p{M}\p{N}\p{Pc}\-]*[a-zA-Z\p{Nd}\-]__?\b/dgv,name:"entity.name.tag"},"replace-include":{captures:{"1":{name:"keyword.control"},"2":{name:"entity.name.tag"},"3":{name:"keyword.control"}},match:/(?<=^|\n(?!$))\p{space}*(\.{2})\p{space}+(\|[^\|]+\|)\p{space}+(replace::)/dgv},"simple-table":{match:/(?<=^|\n(?!$))[\=\p{space}]+(?=$|\n)/dgv,name:"keyword.control.table"},substitution:{match:/(?<=^|\n(?!$))\.{2}\p{space}*\|([^\|]+)\|/dgv,name:"entity.name.tag"},table:{begin:/(?<=^|\n(?!$))\p{space}*\+[\=\+\-]+\+\p{space}*(?=$|\n)/dgv,beginCaptures:{"0":{name:"keyword.control.table"}},end:/(?<=^|\n(?!$))(?![\+\|])/dgv,patterns:[{match:/[\=\+\|\-]/dgv,name:"keyword.control.table"}]},title:{match:/(?<=^|\n(?!$))(\*{3,}|#{3,}|={3,}|~{3,}|\+{3,}|-{3,}|`{3,}|\^{3,}|:{3,}|"{3,}|_{3,}|'{3,})(?=$|\n)/dgv,name:"markup.heading"}},scopeName:"source.rst",embeddedLangs:["html-derivative","cpp","python","javascript","shellscript","yaml","cmake","ruby"],aliases:undefined})
|
|
10
|
+
const lang = Object.freeze({displayName:"reStructuredText",name:"rst",patterns:[{include:"#body"}],repository:{anchor:{match:/^\.{2}\p{space}+(_[^\:]+:)\p{space}*/dgv,name:"entity.name.tag.anchor"},block:{begin:/^(\p{space}*)(\.{2}\p{space}+\P{space}+::)([^\n]*)/dgv,beginCaptures:{"2":{name:"keyword.control"},"3":{name:"variable"}},end:/^(?!\1\p{space}|\p{space}*(?=\n?$))()/dgv,patterns:[{include:"#block-param"},{include:"#body"}]},"block-comment":{begin:/^(\p{space}*)\.{2}(\p{space}+|(?=\n?$))/dgv,end:/^(?=\P{space})|^\p{space}*(?=\n?$)/dgv,name:"comment.block",patterns:[{begin:/^\p{space}{3,}(?=\P{space})/dgv,name:"comment.block",while:/^\p{space}{3}[^\n]*|^\p{space}*(?=\n?$)/dgv}]},"block-param":{patterns:[{captures:{"1":{name:"keyword.control"},"2":{name:"variable.parameter"}},match:/(:param\p{space}+([^\n]+?):)(?:\p{space}|(?=\n?$))/dgv},{captures:{"1":{name:"keyword.control"},"2":{patterns:[{match:/\b(0x[a-fA-F\p{Nd}]+|\p{Nd}+)\b/dgv,name:"constant.numeric"},{include:"#inline-markup"}]}},match:/(:[^\n]+?:)(?:(?=\n?$)|\p{space}+([^\n]*))/dgv}]},blocks:{patterns:[{include:"#domains"},{include:"#doctest"},{include:"#code-block-cpp"},{include:"#code-block-py"},{include:"#code-block-console"},{include:"#code-block-javascript"},{include:"#code-block-yaml"},{include:"#code-block-cmake"},{include:"#code-block-kconfig"},{include:"#code-block-ruby"},{include:"#code-block-dts"},{include:"#code-block"},{include:"#doctest-block"},{include:"#raw-html"},{include:"#block"},{include:"#literal-block"},{include:"#block-comment"}]},body:{patterns:[{include:"#title"},{include:"#inline-markup"},{include:"#anchor"},{include:"#line-block"},{include:"#replace-include"},{include:"#footnote"},{include:"#substitution"},{include:"#blocks"},{include:"#table"},{include:"#simple-table"},{include:"#options-list"}]},bold:{begin:/(?<=[\p{space}"'\(\[\{\<]|^)\*{2}[^\p{space}\*]/dgv,end:/\*{2}|^\p{space}*(?=\n?$)/dgv,name:"markup.bold"},citation:{applyEndPatternLast:0,begin:/(?<=[\p{space}"'\(\[\{\<]|^)`[^\p{space}\`]/dgv,end:/`_{0,2}|^\p{space}*(?=\n?$)/dgv,name:"entity.name.tag"},"code-block":{begin:/^(\p{space}*)(\.{2}\p{space}+(code|code-block)::)/dgv,beginCaptures:{"2":{name:"keyword.control"}},patterns:[{include:"#block-param"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"code-block-cmake":{begin:/^(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(cmake)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.cmake"}},patterns:[{include:"#block-param"},{include:"source.cmake"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"code-block-console":{begin:/^(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(console|shell|bash)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.console"}},patterns:[{include:"#block-param"},{include:"source.shell"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"code-block-cpp":{begin:/^(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(c|c\+\+|cpp|C|C\+\+|CPP|Cpp)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.cpp"}},patterns:[{include:"#block-param"},{include:"source.cpp"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"code-block-dts":{begin:/^(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(dts|DTS|devicetree)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.dts"}},patterns:[{include:"#block-param"},{include:"source.dts"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"code-block-javascript":{begin:/^(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(javascript)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.js"}},patterns:[{include:"#block-param"},{include:"source.js"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"code-block-kconfig":{begin:/^(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*([kK]config)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.kconfig"}},patterns:[{include:"#block-param"},{include:"source.kconfig"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"code-block-py":{begin:/^(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(python)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.py"}},patterns:[{include:"#block-param"},{include:"source.python"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"code-block-ruby":{begin:/^(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(ruby)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.ruby"}},patterns:[{include:"#block-param"},{include:"source.ruby"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"code-block-yaml":{begin:/^(\p{space}*)(\.{2}\p{space}+(code|code-block)::)\p{space}*(ya?ml)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"},"4":{name:"variable.parameter.codeblock.yaml"}},patterns:[{include:"#block-param"},{include:"source.yaml"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},doctest:{begin:/^(>>>)\p{space}*([^\n]*)/dgv,beginCaptures:{"1":{name:"keyword.control"},"2":{patterns:[{include:"source.python"}]}},end:/^\p{space}*(?=\n?$)/dgv},"doctest-block":{begin:/^(\p{space}*)(\.{2}\p{space}+doctest::)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"}},patterns:[{include:"#block-param"},{include:"source.python"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"domain-auto":{begin:/^(\p{space}*)(\.{2}\p{space}+auto(?:class|module|exception|function|decorator|data|method|attribute|property)::)\p{space}*([^\n]*)/dgv,beginCaptures:{"2":{name:"keyword.control.py"},"3":{patterns:[{include:"source.python"}]}},patterns:[{include:"#block-param"},{include:"#body"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"domain-cpp":{begin:/^(\p{space}*)(\.{2}\p{space}+(?:cpp|c):(?:class|struct|function|member|var|type|enum|enum-struct|enum-class|enumerator|union|concept)::)\p{space}*(?:(@[\p{L}\p{M}\p{N}\p{Pc}]+)|([^\n]*))/dgv,beginCaptures:{"2":{name:"keyword.control"},"3":{name:"entity.name.tag"},"4":{patterns:[{include:"source.cpp"}]}},patterns:[{include:"#block-param"},{include:"#body"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},"domain-js":{begin:/^(\p{space}*)(\.{2}\p{space}+js:[\p{L}\p{M}\p{N}\p{Pc}]+::)\p{space}*([^\n]*)/dgv,beginCaptures:{"2":{name:"keyword.control"},"3":{patterns:[{include:"source.js"}]}},end:/^(?!\1[ \t]|(?=\n?$))()/dgv,patterns:[{include:"#block-param"},{include:"#body"}]},"domain-py":{begin:/^(\p{space}*)(\.{2}\p{space}+py:(?:module|function|data|exception|class|attribute|property|method|staticmethod|classmethod|decorator|decoratormethod)::)\p{space}*([^\n]*)/dgv,beginCaptures:{"2":{name:"keyword.control"},"3":{patterns:[{include:"source.python"}]}},patterns:[{include:"#block-param"},{include:"#body"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},domains:{patterns:[{include:"#domain-cpp"},{include:"#domain-py"},{include:"#domain-auto"},{include:"#domain-js"}]},escaped:{match:/\\[^\n]/dgv,name:"constant.character.escape"},footnote:{match:/^\p{space}*\.{2}\p{space}+\[(?:[\p{L}\p{M}\p{N}\p{Pc}\.\-]+|[\#\*]|#[\p{L}\p{M}\p{N}\p{Pc}]+)\]\p{space}+/dgv,name:"entity.name.tag"},"footnote-ref":{match:/\[(?:[\p{L}\p{M}\p{N}\p{Pc}\.\-]+|[\#\*])\]_/dgv,name:"entity.name.tag"},ignore:{patterns:[{match:/'[\`\*]+'/dgv},{match:/<[\`\*]+>/dgv},{match:/\{[\`\*]+\}/dgv},{match:/\([\`\*]+\)/dgv},{match:/\[[\`\*]+\]/dgv},{match:/"[\`\*]+"/dgv}]},"inline-markup":{patterns:[{include:"#escaped"},{include:"#ignore"},{include:"#ref"},{include:"#literal"},{include:"#monospaced"},{include:"#citation"},{include:"#bold"},{include:"#italic"},{include:"#list"},{include:"#macro"},{include:"#reference"},{include:"#footnote-ref"}]},italic:{begin:/(?<=[\p{space}"'\(\[\{\<]|^)\*[^\p{space}\*]/dgv,end:/\*|^\p{space}*(?=\n?$)/dgv,name:"markup.italic"},"line-block":{match:/^\|\p{space}+/dgv,name:"keyword.control"},list:{match:/^\p{space}*(\p{Nd}+\.|\* -|[a-zA-Z\#]\.|[iIvVxXmMcC]+\.|\(\p{Nd}+\)|\p{Nd}+\)|[\*\+\-])\p{space}+/dgv,name:"keyword.control"},literal:{captures:{"1":{name:"keyword.control"},"2":{name:"entity.name.tag"}},match:/(:\P{space}+:)(`[^\n]*?`\\?)/dgv},"literal-block":{begin:/^(\p{space}*)([^\n]*)(::)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{patterns:[{include:"#inline-markup"}]},"3":{name:"keyword.control"}},while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},macro:{match:/\|[^\|]+\|/dgv,name:"entity.name.tag"},monospaced:{begin:/(?<=[\p{space}"'\(\[\{\<]|^)``[^\p{space}\`]/dgv,end:/``|^\p{space}*(?=\n?$)/dgv,name:"string.interpolated"},"options-list":{match:/(?:(?:^|,\p{space}+)(?:[\-\+][\p{L}\p{M}\p{N}\p{Pc}]|--?[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\-]+|\/[\p{L}\p{M}\p{N}\p{Pc}]+)(?:[ \=](?:[\p{L}\p{M}\p{N}\p{Pc}]+|<[^\<\>]+?>))?)+(?= |\t|(?=\n?$))/dgv,name:"variable.parameter"},"raw-html":{begin:/^(\p{space}*)(\.{2}\p{space}+raw\p{space}*::)\p{space}+(html)\p{space}*(?=\n?$)/dgv,beginCaptures:{"2":{name:"keyword.control"},"3":{name:"variable.parameter.html"}},patterns:[{include:"#block-param"},{include:"text.html.derivative"}],while:/^\1(?=\p{space})|^\p{space}*(?=\n?$)()/dgv},ref:{begin:/(:ref:)`/dgv,beginCaptures:{"1":{name:"keyword.control"}},end:/`|^\p{space}*(?=\n?$)/dgv,name:"entity.name.tag",patterns:[{match:/<[^\n]*?>/dgv,name:"markup.underline.link"}]},reference:{match:/[\p{L}\p{M}\p{N}\p{Pc}\-]*[a-zA-Z\p{Nd}\-]__?\b/dgv,name:"entity.name.tag"},"replace-include":{captures:{"1":{name:"keyword.control"},"2":{name:"entity.name.tag"},"3":{name:"keyword.control"}},match:/^\p{space}*(\.{2})\p{space}+(\|[^\|]+\|)\p{space}+(replace::)/dgv},"simple-table":{match:/^[\=\p{space}]+(?=\n?$)/dgv,name:"keyword.control.table"},substitution:{match:/^\.{2}\p{space}*\|([^\|]+)\|/dgv,name:"entity.name.tag"},table:{begin:/^\p{space}*\+[\=\+\-]+\+\p{space}*(?=\n?$)/dgv,beginCaptures:{"0":{name:"keyword.control.table"}},end:/^(?![\+\|])/dgv,patterns:[{match:/[\=\+\|\-]/dgv,name:"keyword.control.table"}]},title:{match:/^(\*{3,}|#{3,}|={3,}|~{3,}|\+{3,}|-{3,}|`{3,}|\^{3,}|:{3,}|"{3,}|_{3,}|'{3,})(?=\n?$)/dgv,name:"markup.heading"}},scopeName:"source.rst",embeddedLangs:["html-derivative","cpp","python","javascript","shellscript","yaml","cmake","ruby"],aliases:undefined})
|
|
11
11
|
|
|
12
12
|
export default [
|
|
13
13
|
...html_derivative,
|