@shikijs/langs-precompiled 2.1.0 → 2.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 +3 -1
- package/dist/angular-ts.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 +3 -1
- package/dist/blade.mjs +1 -1
- package/dist/bsl.mjs +2 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/cobol.mjs +2 -1
- package/dist/codeql.mjs +6 -2
- package/dist/coffee.mjs +2 -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/dax.mjs +3 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/gdscript.mjs +1 -1
- package/dist/gherkin.mjs +3 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/html.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/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/less.mjs +3 -1
- package/dist/logo.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown-vue.mjs +1 -1
- package/dist/markdown.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/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/pascal.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/po.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/prolog.mjs +3 -1
- package/dist/pug.mjs +1 -1
- package/dist/python.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/racket.mjs +3 -1
- package/dist/raku.mjs +1 -1
- package/dist/razor.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/sas.mjs +2 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/ssh-config.mjs +1 -1
- package/dist/stata.mjs +2 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/systemd.mjs +1 -1
- package/dist/templ.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/viml.mjs +3 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/package.json +4 -4
package/dist/v.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"V",fileTypes:[".v",".vh",".vsh",".vv","v.mod"],name:"v",patterns:[{include:"#comments"},{include:"#function-decl"},{include:"#as-is"},{include:"#attributes"},{include:"#assignment"},{include:"#module-decl"},{include:"#import-decl"},{include:"#hash-decl"},{include:"#brackets"},{include:"#builtin-fix"},{include:"#escaped-fix"},{include:"#operators"},{include:"#function-limited-overload-decl"},{include:"#function-extend-decl"},{include:"#function-exist"},{include:"#generic"},{include:"#constants"},{include:"#type"},{include:"#enum"},{include:"#interface"},{include:"#struct"},{include:"#keywords"},{include:"#storage"},{include:"#numbers"},{include:"#strings"},{include:"#types"},{include:"#punctuations"},{include:"#variable-assign"},{include:"#function-decl"}],repository:{"as-is":{begin:/\p{space}+(as|is)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.$1.v"}},end:/([\p{L}\p{M}\p{N}\p{Pc}\.]*)/dgv,endCaptures:{"1":{name:"entity.name.alias.v"}}},assignment:{captures:{"1":{patterns:[{include:"#operators"}]}},match:/\p{space}+((?::|\+|-|\*|\/|%|&|\||\^)?=)\p{space}+/dgv,name:"meta.definition.variable.v"},attributes:{captures:{"1":{name:"meta.function.attribute.v"},"2":{name:"punctuation.definition.begin.bracket.square.v"},"3":{name:"storage.modifier.attribute.v"},"4":{name:"punctuation.definition.end.bracket.square.v"}},match:/^\p{space}*((\[)(deprecated|unsafe|console|heap|manualfree|typedef|live|inline|flag|ref_only|direct_array_access|callconv)(\]))/dgv,name:"meta.definition.attribute.v"},brackets:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.bracket.curly.begin.v"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.bracket.curly.end.v"}},patterns:[{include:"$self"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.bracket.round.begin.v"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.bracket.round.end.v"}},patterns:[{include:"$self"}]},{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.bracket.square.begin.v"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.bracket.square.end.v"}},patterns:[{include:"$self"}]}]},"builtin-fix":{patterns:[{patterns:[{match:/(const)(?=\p{space}*\()/dgv,name:"storage.modifier.v"},{match:/\b(fn|type|enum|struct|union|interface|map|assert|sizeof|typeof|__offsetof)\b(?=\p{space}*\()/dgv,name:"keyword.$1.v"}]},{patterns:[{match:/(\$if|\$else)(?=\p{space}*\()/dgv,name:"keyword.control.v"},{match:/\b(as|in|is|or|break|continue|default|unsafe|match|if|else|for|go|spawn|goto|defer|return|shared|select|rlock|lock|atomic|asm)\b(?=\p{space}*\()/dgv,name:"keyword.control.v"}]},{patterns:[{captures:{"1":{name:"storage.type.numeric.v"}},match:/(?<![^\n])(i?(?:8|16|nt|64|128)|u?(?:16|32|64|128)|f?(?:32|64))(?=\p{space}*\()/dgv,name:"meta.expr.numeric.cast.v"},{captures:{"1":{name:"storage.type.$1.v"}},match:/(bool|byte|byteptr|charptr|voidptr|string|rune|size_t|[ui]size)(?=\p{space}*\()/dgv,name:"meta.expr.bool.cast.v"}]}]},comments:{patterns:[{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.v"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.v"}},name:"comment.block.documentation.v",patterns:[{include:"#comments"}]},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.v"}},end:/(?=\n?$)/dgv,name:"comment.line.double-slash.v"}]},constants:{match:/\b(true|false|none)\b/dgv,name:"constant.language.v"},enum:{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.enum.v"},"3":{name:"entity.name.enum.v"}},match:/^\p{space}*(?:(pub)?\p{space}+)?(enum)\p{space}+(?:[\p{L}\p{M}\p{N}\p{Pc}]+\.)?([\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.definition.enum.v"},"function-decl":{captures:{"1":{name:"storage.modifier.v"},"2":{name:"keyword.fn.v"},"3":{name:"entity.name.function.v"},"4":{patterns:[{include:"#generic"}]}},match:/^(\bpub\b\p{space}+)?(\bfn\b)\p{space}+(?:\([^\)]+\)\p{space}+)?(?:C\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*((?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>))?/dgv,name:"meta.definition.function.v"},"function-exist":{captures:{"0":{name:"meta.function.call.v"},"1":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.v"}]},"2":{patterns:[{include:"#generic"}]}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+)((?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>))?(?=\p{space}*\()/dgv,name:"meta.support.function.v"},"function-extend-decl":{captures:{"1":{name:"storage.modifier.v"},"2":{name:"keyword.fn.v"},"3":{name:"punctuation.definition.bracket.round.begin.v"},"4":{patterns:[{include:"#brackets"},{include:"#storage"},{include:"#generic"},{include:"#types"},{include:"#punctuation"}]},"5":{name:"punctuation.definition.bracket.round.end.v"},"6":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.v"}]},"7":{patterns:[{include:"#generic"}]}},match:/^\p{space}*(pub)?\p{space}*(fn)\p{space}*(\()([^\)]*)(\))\p{space}*(?:C\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*((?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>))?/dgv,name:"meta.definition.function.v"},"function-limited-overload-decl":{captures:{"1":{name:"storage.modifier.v"},"2":{name:"keyword.fn.v"},"3":{name:"punctuation.definition.bracket.round.begin.v"},"4":{patterns:[{include:"#brackets"},{include:"#storage"},{include:"#generic"},{include:"#types"},{include:"#punctuation"}]},"5":{name:"punctuation.definition.bracket.round.end.v"},"6":{patterns:[{include:"#operators"}]},"7":{name:"punctuation.definition.bracket.round.begin.v"},"8":{patterns:[{include:"#brackets"},{include:"#storage"},{include:"#generic"},{include:"#types"},{include:"#punctuation"}]},"9":{name:"punctuation.definition.bracket.round.end.v"},"10":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.v"}]}},match:/^\p{space}*(pub)?\p{space}*(fn)\p{space}*(\()([^\)]*)(\))\p{space}*([\+\-\*\/])?\p{space}*(\()([^\)]*)(\))\p{space}*(?:C\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"meta.definition.function.v"},generic:{patterns:[{captures:{"1":{name:"punctuation.definition.bracket.angle.begin.v"},"2":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.generic.v"}]},"3":{name:"punctuation.definition.bracket.angle.end.v"}},match:/(?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>)/dgv,name:"meta.definition.generic.v"}]},"hash-decl":{begin:/^\p{space}*(#)/dgv,end:/(?=\n?$)/dgv,name:"markup.bold.v"},"illegal-name":{match:/\p{Nd}[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"invalid.illegal.v"},"import-decl":{begin:/^\p{space}*(import)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.import.v"}},end:/([\p{L}\p{M}\p{N}\p{Pc}\.]+)/dgv,endCaptures:{"1":{name:"entity.name.import.v"}},name:"meta.import.v"},interface:{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"keyword.interface.v"},"3":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.interface.v"}]}},match:/^\p{space}*(?:(pub)?\p{space}+)?(interface)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.definition.interface.v"},keywords:{patterns:[{match:/(\$if|\$else)/dgv,name:"keyword.control.v"},{match:/(?<!@)\b(as|it|is|in|or|break|continue|default|unsafe|match|if|else|for|go|spawn|goto|defer|return|shared|select|rlock|lock|atomic|asm)\b/dgv,name:"keyword.control.v"},{match:/(?<!@)\b(fn|type|typeof|enum|struct|interface|map|assert|sizeof|__offsetof)\b/dgv,name:"keyword.$1.v"}]},"module-decl":{begin:/^\p{space}*(module)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.module.v"}},end:/([\p{L}\p{M}\p{N}\p{Pc}\.]+)/dgv,endCaptures:{"1":{name:"entity.name.module.v"}},name:"meta.module.v"},numbers:{patterns:[{match:/([0-9]+(_?))+(\.)([0-9]+[eE][\-\+]?[0-9]+)/dgv,name:"constant.numeric.exponential.v"},{match:/([0-9]+(_?))+(\.)([0-9]+)/dgv,name:"constant.numeric.float.v"},{match:/0b(?:[0-1]+_?)+/dgv,name:"constant.numeric.binary.v"},{match:/0o(?:[0-7]+_?)+/dgv,name:"constant.numeric.octal.v"},{match:/0x(?:[0-9a-fA-F]+_?)+/dgv,name:"constant.numeric.hex.v"},{match:/(?:[0-9]+[_]?)+/dgv,name:"constant.numeric.integer.v"}]},operators:{patterns:[{match:/(\+|-|\*|\/|%|\+\+|--|>>|<<)/dgv,name:"keyword.operator.arithmetic.v"},{match:/(==|!=|>|<|>=|<=)/dgv,name:"keyword.operator.relation.v"},{match:/(:=|=|\+=|-=|\*=|\/=|%=|&=|\|=|\^=|~=|&&=|\|\|=|>>=|<<=)/dgv,name:"keyword.operator.assignment.v"},{match:/(&|\||\^|~|<(?!<)|>(?!>))/dgv,name:"keyword.operator.bitwise.v"},{match:/(&&|\|\||!)/dgv,name:"keyword.operator.logical.v"},{match:/\?/dgv,name:"keyword.operator.optional.v"}]},punctuation:{patterns:[{match:/\./dgv,name:"punctuation.delimiter.period.dot.v"},{match:/,/dgv,name:"punctuation.delimiter.comma.v"},{match:/:/dgv,name:"punctuation.separator.key-value.colon.v"},{match:/;/dgv,name:"punctuation.definition.other.semicolon.v"},{match:/\?/dgv,name:"punctuation.definition.other.questionmark.v"},{match:/#/dgv,name:"punctuation.hash.v"}]},punctuations:{patterns:[{match:/\./dgv,name:"punctuation.accessor.v"},{match:/,/dgv,name:"punctuation.separator.comma.v"}]},storage:{match:/\b(const|mut|pub)\b/dgv,name:"storage.modifier.v"},"string-escaped-char":{patterns:[{match:/\\([0-7]{3}|[\$abfnrtv\\'"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/dgv,name:"constant.character.escape.v"},{match:/\\[^0-7\$xuUabfnrtv'"]/dgv,name:"invalid.illegal.unknown-escape.v"}]},"string-interpolation":{captures:{"1":{patterns:[{match:/\$\p{Nd}[\.\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"invalid.illegal.v"},{match:/\$([\.\p{L}\p{M}\p{N}\p{Pc}]+|\{[^\n]*?\})/dgv,name:"variable.other.interpolated.v"}]}},match:/(\$([\p{L}\p{M}\p{N}\p{Pc}\.]+|\{[^\n]*?\}))/dgv,name:"meta.string.interpolation.v"},"string-placeholder":{match:/%(\[\p{Nd}+\])?([\+\#\-0 ]{0,2}((\p{Nd}+|\*)?(\.?(\p{Nd}+|\*|(\[\p{Nd}+\])\*?)?(\[\p{Nd}+\])?)?))?[vT\%tbcdoqxXUbeEfFgGsp]/dgv,name:"constant.other.placeholder.v"},strings:{patterns:[{begin:/`/dgv,end:/`/dgv,name:"string.quoted.rune.v",patterns:[{include:"#string-escaped-char"},{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(r)'/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/'/dgv,name:"string.quoted.raw.v",patterns:[{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(r)"/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/"/dgv,name:"string.quoted.raw.v",patterns:[{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(c?)'/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/'/dgv,name:"string.quoted.v",patterns:[{include:"#string-escaped-char"},{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(c?)"/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/"/dgv,name:"string.quoted.v",patterns:[{include:"#string-escaped-char"},{include:"#string-interpolation"},{include:"#string-placeholder"}]}]},struct:{patterns:[{begin:/^\p{space}*(?:(mut|pub(?:\p{space}+mut)?|__global)\p{space}+)?(struct|union)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\.]+)\p{space}*|(\{)/dgv,beginCaptures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.struct.v"},"3":{name:"entity.name.type.v"},"4":{name:"punctuation.definition.bracket.curly.begin.v"}},end:/\p{space}*|(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.bracket.curly.end.v"}},name:"meta.definition.struct.v",patterns:[{include:"#struct-access-modifier"},{captures:{"1":{name:"variable.other.property.v"},"2":{patterns:[{include:"#numbers"},{include:"#brackets"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"storage.type.other.v"}]},"3":{name:"keyword.operator.assignment.v"},"4":{patterns:[{include:"$self"}]}},match:/*@__PURE__*/ new EmulatedRegExp("\\b([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\p{space}+([\\p{L}\\p{M}\\p{N}\\p{Pc}\\[\\]\\*\\&\\.]+)(?:\\p{space}*(=)\\p{space}*((?:(?=($E$(?:[^\\n](?=(?=\\n?$)|//|/\\*))*))\\5)))?","dgv",{"useEmulationGroups":true})},{include:"#types"},{include:"$self"}]},{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.struct.v"},"3":{name:"entity.name.struct.v"}},match:/^\p{space}*(mut|pub(?:\p{space}+mut)?|__global)\p{space}+?(struct)\p{space}+(?:\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\.]+))?/dgv,name:"meta.definition.struct.v"}]},"struct-access-modifier":{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"punctuation.separator.struct.key-value.v"}},match:/(?<=\p{space}|^)(mut|pub(?:\p{space}+mut)?|__global)(:|\b)/dgv},type:{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.type.v"},"3":{patterns:[{include:"#illegal-name"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.v"}]},"4":{patterns:[{include:"#illegal-name"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.v"}]}},match:/^\p{space}*(?:(pub)?\p{space}+)?(type)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}+(?:[\p{L}\p{M}\p{N}\p{Pc}]+\.+)?([\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.definition.type.v"},types:{patterns:[{match:/(?<!\.)\b(i(8|16|nt|64|128)|u(8|16|32|64|128)|f(32|64))\b/dgv,name:"storage.type.numeric.v"},{match:/(?<!\.)\b(bool|byte|byteptr|charptr|voidptr|string|ustring|rune)\b/dgv,name:"storage.type.$1.v"}]},"variable-assign":{captures:{"0":{patterns:[{match:/[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.assignment.v"},{include:"#punctuation"}]}},match:/[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*(?:,\p{space}*[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)*(?=\p{space}*(?:=|:=))/dgv}},scopeName:"source.v",embeddedLangs:undefined,aliases:undefined})
|
|
3
|
+
const lang = Object.freeze({displayName:"V",fileTypes:[".v",".vh",".vsh",".vv","v.mod"],name:"v",patterns:[{include:"#comments"},{include:"#function-decl"},{include:"#as-is"},{include:"#attributes"},{include:"#assignment"},{include:"#module-decl"},{include:"#import-decl"},{include:"#hash-decl"},{include:"#brackets"},{include:"#builtin-fix"},{include:"#escaped-fix"},{include:"#operators"},{include:"#function-limited-overload-decl"},{include:"#function-extend-decl"},{include:"#function-exist"},{include:"#generic"},{include:"#constants"},{include:"#type"},{include:"#enum"},{include:"#interface"},{include:"#struct"},{include:"#keywords"},{include:"#storage"},{include:"#numbers"},{include:"#strings"},{include:"#types"},{include:"#punctuations"},{include:"#variable-assign"},{include:"#function-decl"}],repository:{"as-is":{begin:/\p{space}+(as|is)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.$1.v"}},end:/([\p{L}\p{M}\p{N}\p{Pc}\.]*)/dgv,endCaptures:{"1":{name:"entity.name.alias.v"}}},assignment:{captures:{"1":{patterns:[{include:"#operators"}]}},match:/\p{space}+((?::|\+|-|\*|\/|%|&|\||\^)?=)\p{space}+/dgv,name:"meta.definition.variable.v"},attributes:{captures:{"1":{name:"meta.function.attribute.v"},"2":{name:"punctuation.definition.begin.bracket.square.v"},"3":{name:"storage.modifier.attribute.v"},"4":{name:"punctuation.definition.end.bracket.square.v"}},match:/^\p{space}*((\[)(deprecated|unsafe|console|heap|manualfree|typedef|live|inline|flag|ref_only|direct_array_access|callconv)(\]))/dgv,name:"meta.definition.attribute.v"},brackets:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.bracket.curly.begin.v"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.bracket.curly.end.v"}},patterns:[{include:"$self"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.bracket.round.begin.v"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.bracket.round.end.v"}},patterns:[{include:"$self"}]},{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.bracket.square.begin.v"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.bracket.square.end.v"}},patterns:[{include:"$self"}]}]},"builtin-fix":{patterns:[{patterns:[{match:/(const)(?=\p{space}*\()/dgv,name:"storage.modifier.v"},{match:/\b(fn|type|enum|struct|union|interface|map|assert|sizeof|typeof|__offsetof)\b(?=\p{space}*\()/dgv,name:"keyword.$1.v"}]},{patterns:[{match:/(\$if|\$else)(?=\p{space}*\()/dgv,name:"keyword.control.v"},{match:/\b(as|in|is|or|break|continue|default|unsafe|match|if|else|for|go|spawn|goto|defer|return|shared|select|rlock|lock|atomic|asm)\b(?=\p{space}*\()/dgv,name:"keyword.control.v"}]},{patterns:[{captures:{"1":{name:"storage.type.numeric.v"}},match:/(?<![^\n])(i?(?:8|16|nt|64|128)|u?(?:16|32|64|128)|f?(?:32|64))(?=\p{space}*\()/dgv,name:"meta.expr.numeric.cast.v"},{captures:{"1":{name:"storage.type.$1.v"}},match:/(bool|byte|byteptr|charptr|voidptr|string|rune|size_t|[ui]size)(?=\p{space}*\()/dgv,name:"meta.expr.bool.cast.v"}]}]},comments:{patterns:[{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.v"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.v"}},name:"comment.block.documentation.v",patterns:[{include:"#comments"}]},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.v"}},end:/(?=\n?$)/dgv,name:"comment.line.double-slash.v"}]},constants:{match:/\b(true|false|none)\b/dgv,name:"constant.language.v"},enum:{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.enum.v"},"3":{name:"entity.name.enum.v"}},match:/^\p{space}*(?:(pub)?\p{space}+)?(enum)\p{space}+(?:[\p{L}\p{M}\p{N}\p{Pc}]+\.)?([\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.definition.enum.v"},"function-decl":{captures:{"1":{name:"storage.modifier.v"},"2":{name:"keyword.fn.v"},"3":{name:"entity.name.function.v"},"4":{patterns:[{include:"#generic"}]}},match:/^(\bpub\b\p{space}+)?(\bfn\b)\p{space}+(?:\([^\)]+\)\p{space}+)?(?:C\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*((?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>))?/dgv,name:"meta.definition.function.v"},"function-exist":{captures:{"0":{name:"meta.function.call.v"},"1":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.v"}]},"2":{patterns:[{include:"#generic"}]}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+)((?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>))?(?=\p{space}*\()/dgv,name:"meta.support.function.v"},"function-extend-decl":{captures:{"1":{name:"storage.modifier.v"},"2":{name:"keyword.fn.v"},"3":{name:"punctuation.definition.bracket.round.begin.v"},"4":{patterns:[{include:"#brackets"},{include:"#storage"},{include:"#generic"},{include:"#types"},{include:"#punctuation"}]},"5":{name:"punctuation.definition.bracket.round.end.v"},"6":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.v"}]},"7":{patterns:[{include:"#generic"}]}},match:/^\p{space}*(pub)?\p{space}*(fn)\p{space}*(\()([^\)]*)(\))\p{space}*(?:C\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*((?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>))?/dgv,name:"meta.definition.function.v"},"function-limited-overload-decl":{captures:{"1":{name:"storage.modifier.v"},"2":{name:"keyword.fn.v"},"3":{name:"punctuation.definition.bracket.round.begin.v"},"4":{patterns:[{include:"#brackets"},{include:"#storage"},{include:"#generic"},{include:"#types"},{include:"#punctuation"}]},"5":{name:"punctuation.definition.bracket.round.end.v"},"6":{patterns:[{include:"#operators"}]},"7":{name:"punctuation.definition.bracket.round.begin.v"},"8":{patterns:[{include:"#brackets"},{include:"#storage"},{include:"#generic"},{include:"#types"},{include:"#punctuation"}]},"9":{name:"punctuation.definition.bracket.round.end.v"},"10":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.v"}]}},match:/^\p{space}*(pub)?\p{space}*(fn)\p{space}*(\()([^\)]*)(\))\p{space}*([\+\-\*\/])?\p{space}*(\()([^\)]*)(\))\p{space}*(?:C\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"meta.definition.function.v"},generic:{patterns:[{captures:{"1":{name:"punctuation.definition.bracket.angle.begin.v"},"2":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.generic.v"}]},"3":{name:"punctuation.definition.bracket.angle.end.v"}},match:/(?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>)/dgv,name:"meta.definition.generic.v"}]},"hash-decl":{begin:/^\p{space}*(#)/dgv,end:/(?=\n?$)/dgv,name:"markup.bold.v"},"illegal-name":{match:/\p{Nd}[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"invalid.illegal.v"},"import-decl":{begin:/^\p{space}*(import)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.import.v"}},end:/([\p{L}\p{M}\p{N}\p{Pc}\.]+)/dgv,endCaptures:{"1":{name:"entity.name.import.v"}},name:"meta.import.v"},interface:{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"keyword.interface.v"},"3":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.interface.v"}]}},match:/^\p{space}*(?:(pub)?\p{space}+)?(interface)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.definition.interface.v"},keywords:{patterns:[{match:/(\$if|\$else)/dgv,name:"keyword.control.v"},{match:/(?<!@)\b(as|it|is|in|or|break|continue|default|unsafe|match|if|else|for|go|spawn|goto|defer|return|shared|select|rlock|lock|atomic|asm)\b/dgv,name:"keyword.control.v"},{match:/(?<!@)\b(fn|type|typeof|enum|struct|interface|map|assert|sizeof|__offsetof)\b/dgv,name:"keyword.$1.v"}]},"module-decl":{begin:/^\p{space}*(module)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.module.v"}},end:/([\p{L}\p{M}\p{N}\p{Pc}\.]+)/dgv,endCaptures:{"1":{name:"entity.name.module.v"}},name:"meta.module.v"},numbers:{patterns:[{match:/([0-9]+(_?))+(\.)([0-9]+[eE][\-\+]?[0-9]+)/dgv,name:"constant.numeric.exponential.v"},{match:/([0-9]+(_?))+(\.)([0-9]+)/dgv,name:"constant.numeric.float.v"},{match:/0b(?:[0-1]+_?)+/dgv,name:"constant.numeric.binary.v"},{match:/0o(?:[0-7]+_?)+/dgv,name:"constant.numeric.octal.v"},{match:/0x(?:[0-9a-fA-F]+_?)+/dgv,name:"constant.numeric.hex.v"},{match:/(?:[0-9]+[_]?)+/dgv,name:"constant.numeric.integer.v"}]},operators:{patterns:[{match:/(\+|-|\*|\/|%|\+\+|--|>>|<<)/dgv,name:"keyword.operator.arithmetic.v"},{match:/(==|!=|>|<|>=|<=)/dgv,name:"keyword.operator.relation.v"},{match:/(:=|=|\+=|-=|\*=|\/=|%=|&=|\|=|\^=|~=|&&=|\|\|=|>>=|<<=)/dgv,name:"keyword.operator.assignment.v"},{match:/(&|\||\^|~|<(?!<)|>(?!>))/dgv,name:"keyword.operator.bitwise.v"},{match:/(&&|\|\||!)/dgv,name:"keyword.operator.logical.v"},{match:/\?/dgv,name:"keyword.operator.optional.v"}]},punctuation:{patterns:[{match:/\./dgv,name:"punctuation.delimiter.period.dot.v"},{match:/,/dgv,name:"punctuation.delimiter.comma.v"},{match:/:/dgv,name:"punctuation.separator.key-value.colon.v"},{match:/;/dgv,name:"punctuation.definition.other.semicolon.v"},{match:/\?/dgv,name:"punctuation.definition.other.questionmark.v"},{match:/#/dgv,name:"punctuation.hash.v"}]},punctuations:{patterns:[{match:/\./dgv,name:"punctuation.accessor.v"},{match:/,/dgv,name:"punctuation.separator.comma.v"}]},storage:{match:/\b(const|mut|pub)\b/dgv,name:"storage.modifier.v"},"string-escaped-char":{patterns:[{match:/\\([0-7]{3}|[\$abfnrtv\\'"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/dgv,name:"constant.character.escape.v"},{match:/\\[^0-7\$xuUabfnrtv'"]/dgv,name:"invalid.illegal.unknown-escape.v"}]},"string-interpolation":{captures:{"1":{patterns:[{match:/\$\p{Nd}[\.\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"invalid.illegal.v"},{match:/\$([\.\p{L}\p{M}\p{N}\p{Pc}]+|\{[^\n]*?\})/dgv,name:"variable.other.interpolated.v"}]}},match:/(\$([\p{L}\p{M}\p{N}\p{Pc}\.]+|\{[^\n]*?\}))/dgv,name:"meta.string.interpolation.v"},"string-placeholder":{match:/%(\[\p{Nd}+\])?([\+\#\-0 ]{0,2}((\p{Nd}+|\*)?(\.?(\p{Nd}+|\*|(\[\p{Nd}+\])\*?)?(\[\p{Nd}+\])?)?))?[vT\%tbcdoqxXUbeEfFgGsp]/dgv,name:"constant.other.placeholder.v"},strings:{patterns:[{begin:/`/dgv,end:/`/dgv,name:"string.quoted.rune.v",patterns:[{include:"#string-escaped-char"},{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(r)'/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/'/dgv,name:"string.quoted.raw.v",patterns:[{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(r)"/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/"/dgv,name:"string.quoted.raw.v",patterns:[{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(c?)'/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/'/dgv,name:"string.quoted.v",patterns:[{include:"#string-escaped-char"},{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(c?)"/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/"/dgv,name:"string.quoted.v",patterns:[{include:"#string-escaped-char"},{include:"#string-interpolation"},{include:"#string-placeholder"}]}]},struct:{patterns:[{begin:/^\p{space}*(?:(mut|pub(?:\p{space}+mut)?|__global)\p{space}+)?(struct|union)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\.]+)\p{space}*|(\{)/dgv,beginCaptures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.struct.v"},"3":{name:"entity.name.type.v"},"4":{name:"punctuation.definition.bracket.curly.begin.v"}},end:/\p{space}*|(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.bracket.curly.end.v"}},name:"meta.definition.struct.v",patterns:[{include:"#struct-access-modifier"},{captures:{"1":{name:"variable.other.property.v"},"2":{patterns:[{include:"#numbers"},{include:"#brackets"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"storage.type.other.v"}]},"3":{name:"keyword.operator.assignment.v"},"4":{patterns:[{include:"$self"}]}},match:/*@__PURE__*/ new EmulatedRegExp("\\b([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\p{space}+([\\p{L}\\p{M}\\p{N}\\p{Pc}\\[\\]\\*\\&\\.]+)(?:\\p{space}*(=)\\p{space}*((?:(?=((?:[^\\n](?=(?=\\n?$)|//|/\\*))*))\\5)))?","dgv",{"hiddenCaptures":[5]})},{include:"#types"},{include:"$self"}]},{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.struct.v"},"3":{name:"entity.name.struct.v"}},match:/^\p{space}*(mut|pub(?:\p{space}+mut)?|__global)\p{space}+?(struct)\p{space}+(?:\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\.]+))?/dgv,name:"meta.definition.struct.v"}]},"struct-access-modifier":{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"punctuation.separator.struct.key-value.v"}},match:/(?<=\p{space}|^)(mut|pub(?:\p{space}+mut)?|__global)(:|\b)/dgv},type:{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.type.v"},"3":{patterns:[{include:"#illegal-name"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.v"}]},"4":{patterns:[{include:"#illegal-name"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.v"}]}},match:/^\p{space}*(?:(pub)?\p{space}+)?(type)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}+(?:[\p{L}\p{M}\p{N}\p{Pc}]+\.+)?([\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.definition.type.v"},types:{patterns:[{match:/(?<!\.)\b(i(8|16|nt|64|128)|u(8|16|32|64|128)|f(32|64))\b/dgv,name:"storage.type.numeric.v"},{match:/(?<!\.)\b(bool|byte|byteptr|charptr|voidptr|string|ustring|rune)\b/dgv,name:"storage.type.$1.v"}]},"variable-assign":{captures:{"0":{patterns:[{match:/[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.assignment.v"},{include:"#punctuation"}]}},match:/[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*(?:,\p{space}*[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)*(?=\p{space}*(?:=|:=))/dgv}},scopeName:"source.v",embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/vb.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Visual Basic",name:"vb",patterns:[{match:/\n/dgv,name:"meta.ending-space"},{include:"#round-brackets"},{begin:/^(?=\t)/dgv,end:/(?=[^\t])/dgv,name:"meta.leading-space",patterns:[{captures:{"1":{name:"meta.odd-tab.tabs"},"2":{name:"meta.even-tab.tabs"}},match:/(\t)(\t)?/dgv}]},{begin:/^(?= )/dgv,end:/(?=[^ ])/dgv,name:"meta.leading-space",patterns:[{captures:{"1":{name:"meta.odd-tab.spaces"},"2":{name:"meta.even-tab.spaces"}},match:/( )( )?/dgv}]},{captures:{"1":{name:"storage.type.function.asp"},"2":{name:"entity.name.function.asp"},"3":{name:"punctuation.definition.parameters.asp"},"4":{name:"variable.parameter.function.asp"},"5":{name:"punctuation.definition.parameters.asp"}},match:/^\p{space}*((?:[Ff][Uu][Nn][Cc][Tt][Ii][Oo][Nn]|[Ssſ][Uu][Bb]))\p{space}*([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(\()([^\)]*)(\))[^\n]*\n?/dgv,name:"meta.function.asp"},{begin:/(^[ \t]+)?(?=')/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.asp"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"
|
|
3
|
+
const lang = Object.freeze({displayName:"Visual Basic",name:"vb",patterns:[{match:/\n/dgv,name:"meta.ending-space"},{include:"#round-brackets"},{begin:/^(?=\t)/dgv,end:/(?=[^\t])/dgv,name:"meta.leading-space",patterns:[{captures:{"1":{name:"meta.odd-tab.tabs"},"2":{name:"meta.even-tab.tabs"}},match:/(\t)(\t)?/dgv}]},{begin:/^(?= )/dgv,end:/(?=[^ ])/dgv,name:"meta.leading-space",patterns:[{captures:{"1":{name:"meta.odd-tab.spaces"},"2":{name:"meta.even-tab.spaces"}},match:/( )( )?/dgv}]},{captures:{"1":{name:"storage.type.function.asp"},"2":{name:"entity.name.function.asp"},"3":{name:"punctuation.definition.parameters.asp"},"4":{name:"variable.parameter.function.asp"},"5":{name:"punctuation.definition.parameters.asp"}},match:/^\p{space}*((?:[Ff][Uu][Nn][Cc][Tt][Ii][Oo][Nn]|[Ssſ][Uu][Bb]))\p{space}*([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(\()([^\)]*)(\))[^\n]*\n?/dgv,name:"meta.function.asp"},{begin:/(^[ \t]+)?(?=')/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.asp"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.asp"}},end:/\n/dgv,name:"comment.line.apostrophe.asp"}]},{match:/\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\b/dgiv,name:"keyword.control.asp"},{match:/\b(Mod|And|Not|Or|Xor|as)\b/dgiv,name:"keyword.operator.asp"},{captures:{"1":{name:"storage.type.asp"},"2":{name:"variable.other.bfeac.asp"},"3":{name:"meta.separator.comma.asp"}},match:/(dim)\p{space}*(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)\p{space}*(,?)/dgiv,name:"variable.other.dim.asp"},{match:/\p{space}*\b(Call|Class|Const|Dim|Redim|Function|Sub|Private Sub|Public Sub|End Sub|End Function|End Class|End Property|Public Property|Private Property|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\b\p{space}*/dgiv,name:"storage.type.asp"},{match:/\b(Private|Public|Default)\b/dgiv,name:"storage.modifier.asp"},{match:/\p{space}*\b(Empty|False|Nothing|Null|True)\b/dgiv,name:"constant.language.asp"},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.asp"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.asp"}},name:"string.quoted.double.asp",patterns:[{match:/""/dgv,name:"constant.character.escape.apostrophe.asp"}]},{captures:{"1":{name:"punctuation.definition.variable.asp"}},match:/(\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b\p{space}*/dgv,name:"variable.other.asp"},{match:/\b(Application|ObjectContext|Request|Response|Server|Session)\b/dgiv,name:"support.class.asp"},{match:/\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\b/dgiv,name:"support.class.collection.asp"},{match:/\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\b/dgiv,name:"support.constant.asp"},{match:/\b(Lock|Unlock|SetAbort|SetComplete|BinaryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex)\b/dgiv,name:"support.function.asp"},{match:/\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart)\b/dgiv,name:"support.function.event.asp"},{match:/(?<=as )(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)/dgiv,name:"support.type.vb.asp"},{match:/\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)\b/dgiv,name:"support.function.vb.asp"},{match:/-?\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\b/dgv,name:"constant.numeric.asp"},{match:/\b(vbtrue|vbfalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray)\b/dgiv,name:"support.type.vb.asp"},{captures:{"1":{name:"entity.name.function.asp"}},match:/(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)(?=\(\)?)/dgiv,name:"support.function.asp"},{match:/((?<=(\+|=|-|&|\\|\/|<|>|\(|,))\p{space}*\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\b(?!(\(|\.))|\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\b(?=\p{space}*(\+|=|-|&|\\|\/|<|>|\(|\))))/dgiv,name:"variable.other.asp"},{match:/!|\$|%|&|\*|--|-|\+\+|\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?:|\*=|\/=|%=|\+=|-=|&=|\^=|\b(in|instanceof|new|delete|typeof|void)\b/dgv,name:"keyword.operator.js"}],repository:{"round-brackets":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.round-brackets.begin.asp"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.round-brackets.end.asp"}},name:"meta.round-brackets",patterns:[{include:"source.asp.vb.net"}]}},scopeName:"source.asp.vb.net",embeddedLangs:undefined,aliases:["cmd"]})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/verilog.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Verilog",fileTypes:["v","vh"],name:"verilog",patterns:[{include:"#comments"},{include:"#module_pattern"},{include:"#keywords"},{include:"#constants"},{include:"#strings"},{include:"#operators"}],repository:{comments:{patterns:[{begin:/(^[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.verilog"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"
|
|
3
|
+
const lang = Object.freeze({displayName:"Verilog",fileTypes:["v","vh"],name:"verilog",patterns:[{include:"#comments"},{include:"#module_pattern"},{include:"#keywords"},{include:"#constants"},{include:"#strings"},{include:"#operators"}],repository:{comments:{patterns:[{begin:/(^[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.verilog"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.verilog"}},end:/\n/dgv,name:"comment.line.double-slash.verilog"}]},{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block.c-style.verilog"}]},constants:{patterns:[{match:/`(?!(celldefine|endcelldefine|default_nettype|define|undef|ifdef|ifndef|else|endif|include|resetall|timescale|unconnected_drive|nounconnected_drive))[a-z_A-Z][a-zA-Z0-9_\$]*/dgv,name:"variable.other.constant.verilog"},{match:/[0-9]*'[bBoOdDhH][a-fA-F0-9_xXzZ]+\b/dgv,name:"constant.numeric.sized_integer.verilog"},{captures:{"1":{name:"constant.numeric.integer.verilog"},"2":{name:"punctuation.separator.range.verilog"},"3":{name:"constant.numeric.integer.verilog"}},match:/\b(\p{Nd}+)(:)(\p{Nd}+)\b/dgv,name:"meta.block.numeric.range.verilog"},{match:/\b\p{Nd}[\p{Nd}_]*(?:e\p{Nd}+)?\b/dgiv,name:"constant.numeric.integer.verilog"},{match:/\b\p{Nd}+\.\p{Nd}+(?:e\p{Nd}+)?\b/dgiv,name:"constant.numeric.real.verilog"},{match:/#\p{Nd}+/dgv,name:"constant.numeric.delay.verilog"},{match:/\b[01xXzZ]+\b/dgv,name:"constant.numeric.logic.verilog"}]},instantiation_patterns:{patterns:[{include:"#keywords"},{begin:/^\p{space}*(?!always|and|assign|output|input|inout|wire|module)([a-zA-Z][a-zA-Z0-9_]*)\p{space}+([a-zA-Z][a-zA-Z0-9_]*)(?<!begin|if)\p{space}*(?=\(|(?=\n?$))/dgv,beginCaptures:{"1":{name:"entity.name.tag.module.reference.verilog"},"2":{name:"entity.name.tag.module.identifier.verilog"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.expression.verilog"}},name:"meta.block.instantiation.parameterless.verilog",patterns:[{include:"#comments"},{include:"#constants"},{include:"#strings"}]},{begin:/^\p{space}*([a-zA-Z][a-zA-Z0-9_]*)\p{space}*(#)(?=\p{space}*\()/dgv,beginCaptures:{"1":{name:"entity.name.tag.module.reference.verilog"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.expression.verilog"}},name:"meta.block.instantiation.with.parameters.verilog",patterns:[{include:"#parenthetical_list"},{match:/[a-zA-Z][a-zA-Z0-9_]*/dgv,name:"entity.name.tag.module.identifier.verilog"}]}]},keywords:{patterns:[{match:/\b(always|and|assign|attribute|begin|buf|bufif0|bufif1|case[xz]?|cmos|deassign|default|defparam|disable|edge|else|end(attribute|case|function|generate|module|primitive|specify|table|task)?|event|for|force|forever|fork|function|generate|genvar|highz(01)|if(none)?|initial|inout|input|integer|join|localparam|medium|module|large|macromodule|nand|negedge|nmos|nor|not|notif(01)|or|output|parameter|pmos|posedge|primitive|pull0|pull1|pulldown|pullup|rcmos|real|realtime|reg|release|repeat|rnmos|rpmos|rtran|rtranif(01)|scalared|signed|small|specify|specparam|strength|strong0|strong1|supply0|supply1|table|task|time|tran|tranif(01)|tri(01)?|tri(and|or|reg)|unsigned|vectored|wait|wand|weak(01)|while|wire|wor|xnor|xor)\b/dgv,name:"keyword.other.verilog"},{match:/^\p{space}*`((cell)?define|default_(decay_time|nettype|trireg_strength)|delay_mode_(path|unit|zero)|ifdef|ifndef|include|end(if|celldefine)|else|(no)?unconnected_drive|resetall|timescale|undef)\b/dgv,name:"keyword.other.compiler.directive.verilog"},{match:/\$(f(open|close)|readmem(b|h)|timeformat|printtimescale|stop|finish|(s|real)?time|realtobits|bitstoreal|rtoi|itor|(f)?(display|write(h|b)))\b/dgv,name:"support.function.system.console.tasks.verilog"},{match:/\$(random|dist_(chi_square|erlang|exponential|normal|poisson|t|uniform))\b/dgv,name:"support.function.system.random_number.tasks.verilog"},{match:/\$((a)?sync\$((n)?and|(n)or)\$(array|plane))\b/dgv,name:"support.function.system.pld_modeling.tasks.verilog"},{match:/\$(q_(initialize|add|remove|full|exam))\b/dgv,name:"support.function.system.stochastic.tasks.verilog"},{match:/\$(hold|nochange|period|recovery|setup(hold)?|skew|width)\b/dgv,name:"support.function.system.timing.tasks.verilog"},{match:/\$(dump(file|vars|off|on|all|limit|flush))\b/dgv,name:"support.function.system.vcd.tasks.verilog"},{match:/\$(countdrivers|list|input|scope|showscopes|(no)?(key|log)|reset(_count|_value)?|(inc)?save|restart|showvars|getpattern|sreadmem(b|h)|scale)/dgv,name:"support.function.non-standard.tasks.verilog"}]},module_pattern:{patterns:[{begin:/\b(module)\p{space}+([a-zA-Z][a-zA-Z0-9_]*)/dgv,beginCaptures:{"1":{name:"storage.type.module.verilog"},"2":{name:"entity.name.type.module.verilog"}},end:/\bendmodule\b/dgv,endCaptures:{"0":{name:"storage.type.module.verilog"}},name:"meta.block.module.verilog",patterns:[{include:"#comments"},{include:"#keywords"},{include:"#constants"},{include:"#strings"},{include:"#instantiation_patterns"},{include:"#operators"}]}]},operators:{patterns:[{match:/\+|-|\*|\/|%|(<|>)=?|(!|=)?==?|!|&&?|\|\|?|\^?~|~\^?/dgv,name:"keyword.operator.verilog"}]},parenthetical_list:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.list.verilog"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.list.verilog"}},name:"meta.block.parenthetical_list.verilog",patterns:[{include:"#parenthetical_list"},{include:"#comments"},{include:"#keywords"},{include:"#constants"},{include:"#strings"}]}]},strings:{patterns:[{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.verilog",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.verilog"}]}]}},scopeName:"source.verilog",embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/viml.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Vim Script",name:"viml",patterns:[{include:"#comment"},{include:"#constant"},{include:"#entity"},{include:"#keyword"},{include:"#punctuation"},{include:"#storage"},{include:"#strings"},{include:"#support"},{include:"#variable"},{include:"#syntax"},{include:"#commands"},{include:"#option"},{include:"#map"}],repository:{commands:{patterns:[{match:/\bcom(\p{space}|!)/dgv,name:"storage.other.command.viml"},{match:/\bau(\p{space}|!)/dgv,name:"storage.other.command.viml"},{match:/-bang/dgv,name:"storage.other.command.bang.viml"},{match:/-nargs=[\*\+0-9]+/dgv,name:"storage.other.command.args.viml"},{match:/-complete=\P{space}+/dgv,name:"storage.other.command.completion.viml"},{begin:/(aug(roup)?)/dgv,end:/(augroup\p{space}END|(?=\n?$))/dgv,name:"support.function.augroup.viml"}]},comment:{patterns:[{begin:/((\p{space}+)?""")/dgv,end:/^(?!")/dgv,name:"comment.block.documentation.viml"},{match:/^"\p{space}vim:[^\n]*/dgv,name:"comment.block.modeline.viml"},{begin:/(\p{space}+"\p{space}+)(?!")/dgv,end:/(?=\n?$)/dgv,name:"comment.line.viml",patterns:[{match:/\{\{\{\p{Nd}?(?=\n?$)/dgv,name:"comment.line.foldmarker.viml"},{match:/\}\}\}\p{Nd}?/dgv,name:"comment.line.foldmarker.viml"}]},{begin:/^(\p{space}+)?"/dgv,end:/(?=\n?$)/dgv,name:"comment.line.viml",patterns:[{match:/\{\{\{\p{Nd}?(?=\n?$)/dgv,name:"comment.line.foldmarker.viml"},{match:/\}\}\}\p{Nd}?/dgv,name:"comment.line.foldmarker.viml"}]}]},constant:{patterns:[{match:/\b(true|false)\b/dgv,name:"constant.language.boolean.viml"},{match:/\b([0-9]+)\b/dgv,name:"constant.numeric.viml"}]},entity:{patterns:[{match:/(([absg]:)?[a-zA-Z0-9_\#\.]{2,})\b(?=\()/dgv,name:"entity.name.function.viml"}]},keyword:{patterns:[{match:/\b(if|while|for|return|au(g|group)|else(if|)?|do|in)\b/dgv,name:"keyword.control.viml"},{match:/\b(end|endif|endfor|endwhile)\p{space}|(?=\n?$)/dgv,name:"keyword.control.viml"},{match:/\b(break|continue|try|catch|endtry|finally|finish|throw|range)\b/dgv,name:"keyword.control.viml"},{match:/\b(fun|func|function|endfunction|endfunc)\b/dgv,name:"keyword.function.viml"},{match:/\b(normal|silent)\b/dgv,name:"keyword.other.viml"},{include:"#operators"}]},map:{patterns:[{begin:/(<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.map.viml"}},end:/(>|\p{space})/dgv,endCaptures:{"1":{name:"punctuation.definition.map.viml"}},patterns:[{match:/(?<=:\p{space})([^\n]+)/dgv,name:"constant.character.map.rhs.viml"},{match:/(bang|buffer|expr|nop|plug|sid|silent)/dgiv,name:"constant.character.map.special.viml"},{match:/([adcms]-[\p{L}\p{M}\p{N}\p{Pc}])/dgiv,name:"constant.character.map.key.viml"},{match:/(F[0-9]+)/dgiv,name:"constant.character.map.key.fn.viml"},{match:/(bs|bar|cr|del|down|esc|left|right|space|tab|up|leader)/dgiv,name:"constant.character.map.viml"}]},{match:/(\b([cinostvx]?(nore)?map)\b)/dgv,name:"storage.type.map.viml"}]},operators:{patterns:[{match:/([\#\+\?\!\=\~\\])/dgv,name:"keyword.operator.viml"},{match:/ ([\:\-\.]|[\&\|]{2})( |(?=\n?$))/dgv,name:"keyword.operator.viml"},{match:/([\.]{3})/dgv,name:"keyword.operator.viml"},{match:/( [\<\>] )/dgv,name:"keyword.operator.viml"},{match:/(>=)/dgv,name:"keyword.operator.viml"}]},option:{patterns:[{match:/&?\b(al|aleph|anti|antialias|arab|arabic|arshape|arabicshape|ari|allowrevins|akm|altkeymap|ambw|ambiwidth|acd|autochdir|ai|autoindent|ar|autoread|aw|autowrite|awa|autowriteall|bg|background|bs|backspace|bk|backup|bkc|backupcopy|bdir|backupdir|bex|backupext|bsk|backupskip|bdlay|balloondelay|beval|ballooneval|bevalterm|balloonevalterm|bexpr|balloonexpr|bo|belloff|bin|binary|bomb|brk|breakat|bri|breakindent|briopt|breakindentopt|bsdir|browsedir|bh|bufhidden|bl|buflisted|bt|buftype|cmp|casemap|cd|cdpath|cedit|ccv|charconvert|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|cb|clipboard|ch|cmdheight|cwh|cmdwinheight|cc|colorcolumn|co|columns|com|comments|cms|commentstring|cp|compatible|cpt|complete|cocu|concealcursor|cole|conceallevel|cfu|completefunc|cot|completeopt|cf|confirm|ci|copyindent|cpo|cpoptions|cm|cryptmethod|cspc|cscopepathcomp|csprg|cscopeprg|csqf|cscopequickfix|csre|cscoperelative|cst|cscopetag|csto|cscopetagorder|csverb|cscopeverbose|crb|cursorbind|cuc|cursorcolumn|cul|cursorline|debug|def|define|deco|delcombine|dict|dictionary|diff|dex|diffexpr|dip|diffopt|dg|digraph|dir|directory|dy|display|ead|eadirection|ed|edcompatible|emo|emoji|enc|encoding|eol|endofline|ea|equalalways|ep|equalprg|eb|errorbells|ef|errorfile|efm|errorformat|ek|esckeys|ei|eventignore|et|expandtab|ex|exrc|fenc|fileencoding|fencs|fileencodings|ff|fileformat|ffs|fileformats|fic|fileignorecase|ft|filetype|fcs|fillchars|fixeol|fixendofline|fk|fkmap|fcl|foldclose|fdc|foldcolumn|fen|foldenable|fde|foldexpr|fdi|foldignore|fdl|foldlevel|fdls|foldlevelstart|fmr|foldmarker|fdm|foldmethod|fml|foldminlines|fdn|foldnestmax|fdo|foldopen|fdt|foldtext|fex|formatexpr|fo|formatoptions|flp|formatlistpat|fp|formatprg|fs|fsync|gd|gdefault|gfm|grepformat|gp|grepprg|gcr|guicursor|gfn|guifont|gfs|guifontset|gfw|guifontwide|ghr|guiheadroom|go|guioptions|guipty|gtl|guitablabel|gtt|guitabtooltip|hf|helpfile|hh|helpheight|hlg|helplang|hid|hidden|hl|highlight|hi|history|hk|hkmap|hkp|hkmapp|hls|hlsearch|icon|iconstring|ic|ignorecase|imaf|imactivatefunc|imak|imactivatekey|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|imsf|imstatusfunc|imst|imstyle|inc|include|inex|includeexpr|is|incsearch|inde|indentexpr|indk|indentkeys|inf|infercase|im|insertmode|isf|isfname|isi|isident|isk|iskeyword|isp|isprint|js|joinspaces|key|kmp|keymap|km|keymodel|kp|keywordprg|lmap|langmap|lm|langmenu|lnr|langnoremap|lrm|langremap|ls|laststatus|lz|lazyredraw|lbr|linebreak|lines|lsp|linespace|lisp|lw|lispwords|list|lcs|listchars|lpl|loadplugins|luadll|macatsui|magic|mef|makeef|menc|makeencoding|mp|makeprg|mps|matchpairs|mat|matchtime|mco|maxcombine|mfd|maxfuncdepth|mmd|maxmapdepth|mm|maxmem|mmp|maxmempattern|mmt|maxmemtot|mis|menuitems|msm|mkspellmem|ml|modeline|mls|modelines|ma|modifiable|mod|modified|more|mouse|mousef|mousefocus|mh|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mzschemedll|mzschemegcdll|mzq|mzquantum|nf|nrformats|nu|number|nuw|numberwidth|ofu|omnifunc|odev|opendevice|opfunc|operatorfunc|pp|packpath|para|paragraphs|paste|pt|pastetoggle|pex|patchexpr|pm|patchmode|pa|path|perldll|pi|preserveindent|pvh|previewheight|pvw|previewwindow|pdev|printdevice|penc|printencoding|pexpr|printexpr|pfn|printfont|pheader|printheader|pmbcs|printmbcharset|pmbfn|printmbfont|popt|printoptions|prompt|ph|pumheight|pythonthreedll|pythondll|pyx|pyxversion|qe|quoteescape|ro|readonly|rdt|redrawtime|re|regexpengine|rnu|relativenumber|remap|rop|renderoptions|report|rs|restorescreen|ri|revins|rl|rightleft|rlc|rightleftcmd|rubydll|ru|ruler|ruf|rulerformat|rtp|runtimepath|scr|scroll|scb|scrollbind|sj|scrolljump|so|scrolloff|sbo|scrollopt|sect|sections|secure|sel|selection|slm|selectmode|ssop|sessionoptions|sh|shell|shcf|shellcmdflag|sp|shellpipe|shq|shellquote|srr|shellredir|ssl|shellslash|stmp|shelltemp|st|shelltype|sxq|shellxquote|sxe|shellxescape|sr|shiftround|sw|shiftwidth|shm|shortmess|sn|shortname|sbr|showbreak|sc|showcmd|sft|showfulltag|sm|showmatch|smd|showmode|stal|showtabline|ss|sidescroll|siso|sidescrolloff|scl|signcolumn|scs|smartcase|si|smartindent|sta|smarttab|sts|softtabstop|spell|spc|spellcapcheck|spf|spellfile|spl|spelllang|sps|spellsuggest|sb|splitbelow|spr|splitright|sol|startofline|stl|statusline|su|suffixes|sua|suffixesadd|swf|swapfile|sws|swapsync|swb|switchbuf|smc|synmaxcol|syn|syntax|tal|tabline|tpm|tabpagemax|ts|tabstop|tbs|tagbsearch|tc|tagcase|tl|taglength|tr|tagrelative|tag|tags|tgst|tagstack|tcldll|term|tbidi|termbidi|tenc|termencoding|tgc|termguicolors|tk|termkey|tms|termsize|terse|ta|textauto|tx|textmode|tw|textwidth|tsr|thesaurus|top|tildeop|to|timeout|tm|timeoutlen|title|titlelen|titleold|titlestring|tb|toolbar|tbis|toolbariconsize|ttimeout|ttm|ttimeoutlen|tbi|ttybuiltin|tf|ttyfast|ttym|ttymouse|tsl|ttyscroll|tty|ttytype|udir|undodir|udf|undofile|ul|undolevels|ur|undoreload|uc|updatecount|ut|updatetime|vbs|verbose|vfile|verbosefile|vdir|viewdir|vop|viewoptions|vi|viminfo|vif|viminfofile|ve|virtualedit|vb|visualbell|warn|wiv|weirdinvert|ww|whichwrap|wc|wildchar|wcm|wildcharm|wig|wildignore|wic|wildignorecase|wmnu|wildmenu|wim|wildmode|wop|wildoptions|wak|winaltkeys|wi|window|wh|winheight|wfh|winfixheight|wfw|winfixwidth|wmh|winminheight|wmw|winminwidth|winptydll|wiw|winwidth|wrap|wm|wrapmargin|ws|wrapscan|write|wa|writeany|wb|writebackup|wd|writedelay)\b/dgv,name:"support.type.option.viml"},{match:/&?\b(aleph|allowrevins|altkeymap|ambiwidth|autochdir|arabic|arabicshape|autoindent|autoread|autowrite|autowriteall|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|belloff|binary|bomb|breakat|breakindent|breakindentopt|browsedir|bufhidden|buflisted|buftype|casemap|cdpath|cedit|charconvert|cindent|cinkeys|cinoptions|cinwords|clipboard|cmdheight|cmdwinheight|colorcolumn|columns|comments|commentstring|complete|completefunc|completeopt|concealcursor|conceallevel|confirm|copyindent|cpoptions|cscopepathcomp|cscopeprg|cscopequickfix|cscoperelative|cscopetag|cscopetagorder|cscopeverbose|cursorbind|cursorcolumn|cursorline|debug|define|delcombine|dictionary|diff|diffexpr|diffopt|digraph|directory|display|eadirection|encoding|endofline|equalalways|equalprg|errorbells|errorfile|errorformat|eventignore|expandtab|exrc|fileencoding|fileencodings|fileformat|fileformats|fileignorecase|filetype|fillchars|fixendofline|fkmap|foldclose|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldopen|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fsync|gdefault|grepformat|grepprg|guicursor|guifont|guifontset|guifontwide|guioptions|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hidden|hlsearch|history|hkmap|hkmapp|icon|iconstring|ignorecase|imcmdline|imdisable|iminsert|imsearch|include|includeexpr|incsearch|indentexpr|indentkeys|infercase|insertmode|isfname|isident|iskeyword|isprint|joinspaces|keymap|keymodel|keywordprg|langmap|langmenu|langremap|laststatus|lazyredraw|linebreak|lines|linespace|lisp|lispwords|list|listchars|loadplugins|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|menuitems|mkspellmem|modeline|modelines|modifiable|modified|more|mouse|mousefocus|mousehide|mousemodel|mouseshape|mousetime|nrformats|number|numberwidth|omnifunc|opendevice|operatorfunc|packpath|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|perldll|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pumheight|pythondll|pythonthreedll|quoteescape|readonly|redrawtime|regexpengine|relativenumber|remap|report|revins|rightleft|rightleftcmd|rubydll|ruler|rulerformat|runtimepath|scroll|scrollbind|scrolljump|scrolloff|scrollopt|sections|secure|selection|selectmode|sessionoptions|shada|shell|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shellxescape|shellxquote|shiftround|shiftwidth|shortmess|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|sidescroll|sidescrolloff|signcolumn|smartcase|smartindent|smarttab|softtabstop|spell|spellcapcheck|spellfile|spelllang|spellsuggest|splitbelow|splitright|startofline|statusline|suffixes|suffixesadd|swapfile|switchbuf|synmaxcol|syntax|tabline|tabpagemax|tabstop|tagbsearch|tagcase|taglength|tagrelative|tags|tagstack|term|termbidi|terse|textwidth|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|ttimeout|ttimeoutlen|ttytype|undodir|undofile|undolevels|undoreload|updatecount|updatetime|verbose|verbosefile|viewdir|viewoptions|virtualedit|visualbell|warn|whichwrap|wildchar|wildcharm|wildignore|wildignorecase|wildmenu|wildmode|wildoptions|winaltkeys|window|winheight|winfixheight|winfixwidth|winminheight|winminwidth|winwidth|wrap|wrapmargin|wrapscan|write|writeany|writebackup|writedelay)\b/dgv,name:"support.type.option.viml"},{match:/&?\b(al|ari|akm|ambw|acd|arab|arshape|ai|ar|aw|awa|bg|bs|bk|bkc|bdir|bex|bsk|bdlay|beval|bexpr|bo|bin|bomb|brk|bri|briopt|bsdir|bh|bl|bt|cmp|cd|cedit|ccv|cin|cink|cino|cinw|cb|ch|cwh|cc|co|com|cms|cpt|cfu|cot|cocu|cole|cf|ci|cpo|cspc|csprg|csqf|csre|cst|csto|cpo|crb|cuc|cul|debug|def|deco|dict|diff|dex|dip|dg|dir|dy|ead|enc|eol|ea|ep|eb|ef|efm|ei|et|ex|fenc|fencs|ff|ffs|fic|ft|fcs|fixeol|fk|fcl|fdc|fen|fde|fdi|fdl|fdls|fmr|fdm|fml|fdn|fdo|fdt|fex|flp|fo|fp|fs|gd|gfm|gp|gcr|gfn|gfs|gfw|go|gtl|gtt|hf|hh|hlg|hid|hls|hi|hk|hkp|icon|iconstring|ic|imc|imd|imi|ims|inc|inex|is|inde|indk|inf|im|isf|isi|isk|isp|js|kmp|km|kp|lmap|lm|lrm|ls|lz|lbr|lines|lsp|lisp|lw|list|lcs|lpl|magic|mef|mp|mps|mat|mco|mfd|mmd|mm|mmp|mmt|mis|msm|ml|mls|ma|mod|more|mouse|mousef|mh|mousem|mouses|mouset|nf|nu|nuw|ofu|odev|opfunc|pp|para|paste|pt|pex|pm|pa|perldll|pi|pvh|pvw|pdev|penc|pexpr|pfn|pheader|pmbcs|pmbfn|popt|prompt|ph|pythondll|pythonthreedlll|qe|ro|rdt|re|rnu|remap|report|ri|rl|rlc|rubydll|ru|ruf|rtp|scr|scb|sj|so|sbo|sect|secure|sel|slm|ssop|sd|sh|shcf|sp|shq|srr|ssl|stmp|sxe|sxq|sr|sw|shm|sbr|sc|sft|sm|smd|stal|ss|siso|scl|scs|si|sta|sts|spell|spc|spf|spl|sps|sb|spr|sol|stl|su|sua|swf|swb|smc|syn|tal|tpm|ts|tbs|tc|tl|tr|tag|tgst|term|tbidi|terse|tw|tsr|top|to|tm|title|titlelen|titleold|titlestring|ttimeout|ttm|tty|udir|udf|ul|ur|uc|ut|vbs|vfile|vdir|vop|ve|vb|warn|ww|wc|wcm|wig|wic|wmnu|wim|wop|wak|wi|wh|wfh|wfw|wmh|wmw|wiw|wrap|wm|ws|write|wa|wb|wd)\b/dgv,name:"support.type.option.shortname.viml"},{match:/\b(noanti|noantialias|noarab|noarabic|noarshape|noarabicshape|noari|noallowrevins|noakm|noaltkeymap|noacd|noautochdir|noai|noautoindent|noar|noautoread|noaw|noautowrite|noawa|noautowriteall|nobk|nobackup|nobeval|noballooneval|nobevalterm|noballoonevalterm|nobin|nobinary|nobomb|nobri|nobreakindent|nobl|nobuflisted|nocin|nocindent|nocp|nocompatible|nocf|noconfirm|noci|nocopyindent|nocsre|nocscoperelative|nocst|nocscopetag|nocsverb|nocscopeverbose|nocrb|nocursorbind|nocuc|nocursorcolumn|nocul|nocursorline|nodeco|nodelcombine|nodiff|nodg|nodigraph|noed|noedcompatible|noemo|noemoji|noeol|noendofline|noea|noequalalways|noeb|noerrorbells|noek|noesckeys|noet|noexpandtab|noex|noexrc|nofic|nofileignorecase|nofixeol|nofixendofline|nofk|nofkmap|nofen|nofoldenable|nofs|nofsync|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkp|nohkmapp|nohls|nohlsearch|noicon|noic|noignorecase|noimc|noimcmdline|noimd|noimdisable|nois|noincsearch|noinf|noinfercase|noim|noinsertmode|nojs|nojoinspaces|nolnr|nolangnoremap|nolrm|nolangremap|nolz|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|nolpl|noloadplugins|nomacatsui|nomagic|noml|nomodeline|noma|nomodifiable|nomod|nomodified|nomore|nomousef|nomousefocus|nomh|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopvw|nopreviewwindow|noprompt|noro|noreadonly|nornu|norelativenumber|nors|norestorescreen|nori|norevins|norl|norightleft|noru|noruler|noscb|noscrollbind|nosecure|nossl|noshellslash|nostmp|noshelltemp|nosr|noshiftround|nosn|noshortname|nosc|noshowcmd|nosft|noshowfulltag|nosm|noshowmatch|nosmd|noshowmode|noscs|nosmartcase|nosi|nosmartindent|nosta|nosmarttab|nospell|nosb|nosplitbelow|nospr|nosplitright|nosol|nostartofline|noswf|noswapfile|notbs|notagbsearch|notr|notagrelative|notgst|notagstack|notbidi|notermbidi|notgc|notermguicolors|noterse|nota|notextauto|notx|notextmode|notop|notildeop|noto|notimeout|notitle|nottimeout|notbi|nottybuiltin|notf|nottyfast|noudf|noundofile|novb|novisualbell|nowarn|nowiv|noweirdinvert|nowic|nowildignorecase|nowmnu|nowildmenu|nowfh|nowinfixheight|nowfw|nowinfixwidth|nowrapscan|nowrap|nows|nowrite|nowa|nowriteany|nowb|nowritebackup)\b/dgv,name:"support.type.option.off.viml"}]},punctuation:{patterns:[{match:/([\(\)])/dgv,name:"punctuation.parens.viml"},{match:/([\,])/dgv,name:"punctuation.comma.viml"}]},storage:{patterns:[{match:/\b(call|let|unlet)\b/dgv,name:"storage.viml"},{match:/\b(abort|autocmd)\b/dgv,name:"storage.viml"},{match:/\b(set(l|local)?)\b/dgv,name:"storage.viml"},{match:/\b(com(mand)?)\b/dgv,name:"storage.viml"},{match:/\b(color(scheme)?)\b/dgv,name:"storage.viml"},{match:/\b(Plug|Plugin)\b/dgv,name:"storage.plugin.viml"}]},strings:{patterns:[{begin:/"/dgv,end:/("|(?=\n?$))/dgv,name:"string.quoted.double.viml",patterns:[]},{begin:/'/dgv,end:/('|(?=\n?$))/dgv,name:"string.quoted.single.viml",patterns:[]},{match:/\/(\\\\|\\\/|[^\n\/])*\//dgv,name:"string.regexp.viml"}]},support:{patterns:[{match:/(add|call|delete|empty|extend|get|has|isdirectory|join|printf)(?=\()/dgv,name:"support.function.viml"},{match:/\b(echo(m|hl)?|exe(cute)?|redir|redraw|sleep|so(urce)?|wincmd|setf)\b/dgv,name:"support.function.viml"},{match:/(v:(beval_col|beval_bufnr|beval_lnum|beval_text|beval_winnr|char|charconvert_from|charconvert_to|cmdarg|cmdbang|count|count1|ctype|dying|errmsg|exception|fcs_reason|fcs_choice|fname_in|fname_out|fname_new|fname_diff|folddashes|foldlevel|foldend|foldstart|insertmode|key|lang|lc_time|lnum|mouse_win|mouse_lnum|mouse_col|oldfiles|operator|prevcount|profiling|progname|register|scrollstart|servername|searchforward|shell_error|statusmsg|swapname|swapchoice|swapcommand|termresponse|this_session|throwpoint|val|version|warningmsg|windowid))/dgv,name:"support.type.builtin.vim-variable.viml"},{match:/(&(cpo|isk|omnifunc|paste|previewwindow|rtp|tags|term|wrap))/dgv,name:"support.type.builtin.viml"},{match:/(&(shell(cmdflag|redir)?))/dgv,name:"support.type.builtin.viml"},{match:/<args>/dgv,name:"support.variable.args.viml"},{match:/\b(None|ErrorMsg|WarningMsg)\b/dgv,name:"support.type.syntax.viml"},{match:/\b(BufNewFile|BufReadPre|BufRead|BufReadPost|BufReadCmd|FileReadPre|FileReadPost|FileReadCmd|FilterReadPre|FilterReadPost|StdinReadPre|StdinReadPost|BufWrite|BufWritePre|BufWritePost|BufWriteCmd|FileWritePre|FileWritePost|FileWriteCmd|FileAppendPre|FileAppendPost|FileAppendCmd|FilterWritePre|FilterWritePost|BufAdd|BufCreate|BufDelete|BufWipeout|BufFilePre|BufFilePost|BufEnter|BufLeave|BufWinEnter|BufWinLeave|BufUnload|BufHidden|BufNew|SwapExists|TermOpen|TermClose|FileType|Syntax|OptionSet|VimEnter|GUIEnter|GUIFailed|TermResponse|QuitPre|VimLeavePre|VimLeave|DirChanged|FileChangedShell|FileChangedShellPost|FileChangedRO|ShellCmdPost|ShellFilterPost|CmdUndefined|FuncUndefined|SpellFileMissing|SourcePre|SourceCmd|VimResized|FocusGained|FocusLost|CursorHold|CursorHoldI|CursorMoved|CursorMovedI|WinNew|WinEnter|WinLeave|TabEnter|TabLeave|TabNew|TabNewEntered|TabClosed|CmdlineEnter|CmdlineLeave|CmdwinEnter|CmdwinLeave|InsertEnter|InsertChange|InsertLeave|InsertCharPre|TextYankPost|TextChanged|TextChangedI|ColorScheme|RemoteReply|QuickFixCmdPre|QuickFixCmdPost|SessionLoadPost|MenuPopup|CompleteDone|User)\b/dgv,name:"support.type.event.viml"},{match:/\b(Comment|Constant|String|Character|Number|Boolean|Float|Identifier|Function|Statement|Conditional|Repeat|Label|Operator|Keyword|Exception|PreProc|Include|Define|Macro|PreCondit|Type|StorageClass|Structure|Typedef|Special|SpecialChar|Tag|Delimiter|SpecialComment|Debug|Underlined|Ignore|Error|Todo)\b/dgv,name:"support.type.syntax-group.viml"}]},syntax:{patterns:[{match:/syn(tax)? case (ignore|match)/dgv,name:"keyword.control.syntax.viml"},{match:/syn(tax)? (clear|enable|include|off|on|manual|sync)/dgv,name:"keyword.control.syntax.viml"},{match:/\b(contained|display|excludenl|fold|keepend|oneline|skipnl|skipwhite|transparent)\b/dgv,name:"keyword.other.syntax.viml"},{match:/\b(add|containedin|contains|matchgroup|nextgroup)=/dgv,name:"keyword.other.syntax.viml"},{captures:{"1":{name:"keyword.other.syntax-range.viml"},"3":{name:"string.regexp.viml"}},match:/((start|skip|end)=)(\+\P{space}+\+\p{space})?/dgv},{captures:{"0":{name:"support.type.syntax.viml"},"1":{name:"storage.syntax.viml"},"3":{name:"variable.other.syntax-scope.viml"},"4":{name:"storage.modifier.syntax.viml"}},match:/(syn|syntax)\p{space}+(cluster|keyword|match|region)(\p{space}+[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}+)(contained)?/dgv,patterns:[]},{captures:{"1":{name:"storage.highlight.viml"},"2":{name:"storage.modifier.syntax.viml"},"3":{name:"support.function.highlight.viml"},"4":{name:"variable.other.viml"},"5":{name:"variable.other.viml"}},match:/(hi|highlight)\p{space}+(def|default)\p{space}+(link)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,patterns:[]}]},variable:{patterns:[{match:/https?:\/\/\P{space}+/dgv,name:"variable.other.link.viml"},{match:/(?<=\()([a-zA-Z]+)(?=\))/dgv,name:"variable.parameter.viml"},{match:/\b([absgl]:[a-zA-Z0-9_\.\#]+)\b(?!\()/dgv,name:"variable.other.viml"}]}},scopeName:"source.viml",embeddedLangs:undefined,aliases:["vim","vimscript"]})
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"Vim Script",name:"viml",patterns:[{include:"#comment"},{include:"#constant"},{include:"#entity"},{include:"#keyword"},{include:"#punctuation"},{include:"#storage"},{include:"#strings"},{include:"#support"},{include:"#variable"},{include:"#syntax"},{include:"#commands"},{include:"#option"},{include:"#map"}],repository:{commands:{patterns:[{match:/\bcom(\p{space}|!)/dgv,name:"storage.other.command.viml"},{match:/\bau(\p{space}|!)/dgv,name:"storage.other.command.viml"},{match:/-bang/dgv,name:"storage.other.command.bang.viml"},{match:/-nargs=[\*\+0-9]+/dgv,name:"storage.other.command.args.viml"},{match:/-complete=\P{space}+/dgv,name:"storage.other.command.completion.viml"},{begin:/(aug(roup)?)/dgv,end:/(augroup\p{space}END|(?=\n?$))/dgv,name:"support.function.augroup.viml"}]},comment:{patterns:[{begin:/((\p{space}+)?""")/dgv,end:/^(?!")/dgv,name:"comment.block.documentation.viml"},{match:/^"\p{space}vim:[^\n]*/dgv,name:"comment.block.modeline.viml"},{begin:/(\p{space}+"\p{space}+)(?!")/dgv,end:/(?=\n?$)/dgv,name:"comment.line.viml",patterns:[{match:/\{\{\{\p{Nd}?(?=\n?$)/dgv,name:"comment.line.foldmarker.viml"},{match:/\}\}\}\p{Nd}?/dgv,name:"comment.line.foldmarker.viml"}]},{begin:/^(\p{space}+)?"/dgv,end:/(?=\n?$)/dgv,name:"comment.line.viml",patterns:[{match:/\{\{\{\p{Nd}?(?=\n?$)/dgv,name:"comment.line.foldmarker.viml"},{match:/\}\}\}\p{Nd}?/dgv,name:"comment.line.foldmarker.viml"}]}]},constant:{patterns:[{match:/\b(true|false)\b/dgv,name:"constant.language.boolean.viml"},{match:/\b([0-9]+)\b/dgv,name:"constant.numeric.viml"}]},entity:{patterns:[{match:/(([absg]:)?[a-zA-Z0-9_\#\.]{2,})\b(?=\()/dgv,name:"entity.name.function.viml"}]},keyword:{patterns:[{match:/\b(if|while|for|return|au(g|group)|else(if|)?|do|in)\b/dgv,name:"keyword.control.viml"},{match:/\b(end|endif|endfor|endwhile)\p{space}|(?=\n?$)/dgv,name:"keyword.control.viml"},{match:/\b(break|continue|try|catch|endtry|finally|finish|throw|range)\b/dgv,name:"keyword.control.viml"},{match:/\b(fun|func|function|endfunction|endfunc)\b/dgv,name:"keyword.function.viml"},{match:/\b(normal|silent)\b/dgv,name:"keyword.other.viml"},{include:"#operators"}]},map:{patterns:[{begin:/(<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.map.viml"}},end:/(>|\p{space})/dgv,endCaptures:{"1":{name:"punctuation.definition.map.viml"}},patterns:[{match:/(?<=:\p{space})([^\n]+)/dgv,name:"constant.character.map.rhs.viml"},{match:/(bang|buffer|expr|nop|plug|sid|silent)/dgiv,name:"constant.character.map.special.viml"},{match:/([adcms]-[\p{L}\p{M}\p{N}\p{Pc}])/dgiv,name:"constant.character.map.key.viml"},{match:/(F[0-9]+)/dgiv,name:"constant.character.map.key.fn.viml"},{match:/(bs|bar|cr|del|down|esc|left|right|space|tab|up|leader)/dgiv,name:"constant.character.map.viml"}]},{match:/(\b([cinostvx]?(nore)?map)\b)/dgv,name:"storage.type.map.viml"}]},operators:{patterns:[{match:/([\#\+\?\!\=\~\\])/dgv,name:"keyword.operator.viml"},{match:/ ([\:\-\.]|[\&\|]{2})( |(?=\n?$))/dgv,name:"keyword.operator.viml"},{match:/([\.]{3})/dgv,name:"keyword.operator.viml"},{match:/( [\<\>] )/dgv,name:"keyword.operator.viml"},{match:/(>=)/dgv,name:"keyword.operator.viml"}]},option:{patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("&?\\b(al|aleph|anti|antialias|arab|arabic|arshape|arabicshape|ari|allowrevins|akm|altkeymap|ambw|ambiwidth|acd|autochdir|ai|autoindent|ar|autoread|aw|autowrite|awa|autowriteall|bg|background|bs|backspace|bk|backup|bkc|backupcopy|bdir|backupdir|bex|backupext|bsk|backupskip|bdlay|balloondelay|beval|ballooneval|bevalterm|balloonevalterm|bexpr|balloonexpr|bo|belloff|bin|binary|bomb|brk|breakat|bri|breakindent|briopt|breakindentopt|bsdir|browsedir|bh|bufhidden|bl|buflisted|bt|buftype|cmp|casemap|cd|cdpath|cedit|ccv|charconvert|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|cb|clipboard|ch|cmdheight|cwh|cmdwinheight|cc|colorcolumn|co|columns|com|comments|cms|commentstring|cp|compatible|cpt|complete|cocu|concealcursor|cole|conceallevel|cfu|completefunc|cot|completeopt|cf|confirm|ci|copyindent|cpo|cpoptions|cm|cryptmethod|cspc|cscopepathcomp|csprg|cscopeprg|csqf|cscopequickfix|csre|cscoperelative|cst|cscopetag|csto|cscopetagorder|csverb|cscopeverbose|crb|cursorbind|cuc|cursorcolumn|cul|cursorline|debug|def|define|deco|delcombine|dict|dictionary|diff|dex|diffexpr|dip|diffopt|dg|digraph|dir|directory|dy|display|ead|eadirection|ed|edcompatible|emo|emoji|enc|encoding|eol|endofline|ea|equalalways|ep|equalprg|eb|errorbells|ef|errorfile|efm|errorformat|ek|esckeys|ei|eventignore|et|expandtab|ex|exrc|fenc|fileencoding|fencs|fileencodings|ff|fileformat|ffs|fileformats|fic|fileignorecase|ft|filetype|fcs|fillchars|fixeol|fixendofline|fk|fkmap|fcl|foldclose|fdc|foldcolumn|fen|foldenable|fde|foldexpr|fdi|foldignore|fdl|foldlevel|fdls|foldlevelstart|fmr|foldmarker|fdm|foldmethod|fml|foldminlines|fdn|foldnestmax|fdo|foldopen|fdt|foldtext|fex|formatexpr|fo|formatoptions|flp|formatlistpat|fp|formatprg|fs|fsync|gd|gdefault|gfm|grepformat|gp|grepprg|gcr|guicursor|gfn|guifont|gfs|guifontset|gfw|guifontwide|ghr|guiheadroom|go|guioptions|guipty|gtl|guitablabel|gtt|guitabtooltip|hf|helpfile|hh|helpheight|hlg|helplang|hid|hidden|hl|highlight|hi|history|hk|hkmap|hkp|hkmapp|hls|hlsearch|icon|iconstring|ic|ignorecase|imaf|imactivatefunc|imak|imactivatekey|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|imsf|imstatusfunc|imst|imstyle|inc|include|inex|includeexpr|is|incsearch|inde|indentexpr|indk|indentkeys|inf|infercase|im|insertmode|isf|isfname|isi|isident|isk|iskeyword|isp|isprint|js|joinspaces|key|kmp|keymap|km|keymodel|kp|keywordprg|lmap|langmap|lm|langmenu|lnr|langnoremap|lrm|langremap|ls|laststatus|lz|lazyredraw|lbr|linebreak|lines|lsp|linespace|lisp|lw|lispwords|list|lcs|listchars|lpl|loadplugins|luadll|macatsui|magic|mef|makeef|menc|makeencoding|mp|makeprg|mps|matchpairs|mat|matchtime|mco|maxcombine|mfd|maxfuncdepth|mmd|maxmapdepth|mm|maxmem|mmp|maxmempattern|mmt|maxmemtot|mis|menuitems|msm|mkspellmem|ml|modeline|mls|modelines|ma|modifiable|mod|modified|more|mouse|mousef|mousefocus|mh|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mzschemedll|mzschemegcdll|mzq|mzquantum|nf|nrformats|nu|number|nuw|numberwidth|ofu|omnifunc|odev|opendevice|opfunc|operatorfunc|pp|packpath|para|paragraphs|paste|pt|pastetoggle|pex|patchexpr|pm|patchmode|pa|path|perldll|pi|preserveindent|pvh|previewheight|pvw|previewwindow|pdev|printdevice|penc|printencoding|pexpr|printexpr|pfn|printfont|pheader|printheader|pmbcs|printmbcharset|pmbfn|printmbfont|popt|printoptions|prompt|ph|pumheight|pythonthreedll|pythondll|pyx|pyxversion|qe|quoteescape|ro|readonly|rdt|redrawtime|re|regexpengine|rnu|relativenumber|remap|rop|renderoptions|report|rs|restorescreen|ri|revins|rl|rightleft|rlc|rightleftcmd|rubydll|ru|ruler|ruf|rulerformat|rtp|runtimepath|scr|scroll|scb|scrollbind|sj|scrolljump|so|scrolloff|sbo|scrollopt|sect|sections|secure|sel|selection|slm|selectmode|ssop|sessionoptions|sh|shell|shcf|shellcmdflag|sp|shellpipe|shq|shellquote|srr|shellredir|ssl|shellslash|stmp|shelltemp|st|shelltype|sxq|shellxquote|sxe|shellxescape|sr|shiftround|sw|shiftwidth|shm|shortmess|sn|shortname|sbr|showbreak|sc|showcmd|sft|showfulltag|sm|showmatch|smd|showmode|stal|showtabline|ss|sidescroll|siso|sidescrolloff|scl|signcolumn|scs|smartcase|si|smartindent|sta|smarttab|sts|softtabstop|spell|spc|spellcapcheck|spf|spellfile|spl|spelllang|sps|spellsuggest|sb|splitbelow|spr|splitright|sol|startofline|stl|statusline|su|suffixes|sua|suffixesadd|swf|swapfile|sws|swapsync|swb|switchbuf|smc|synmaxcol|syn|syntax|tal|tabline|tpm|tabpagemax|ts|tabstop|tbs|tagbsearch|tc|tagcase|tl|taglength|tr|tagrelative|tag|tags|tgst|tagstack|tcldll|term|tbidi|termbidi|tenc|termencoding|tgc|termguicolors|tk|termkey|tms|termsize|terse|ta|textauto|tx|textmode|tw|textwidth|tsr|thesaurus|top|tildeop|to|timeout|tm|timeoutlen|title|titlelen|titleold|titlestring|tb|toolbar|tbis|toolbariconsize|ttimeout|ttm|ttimeoutlen|tbi|ttybuiltin|tf|ttyfast|ttym|ttymouse|tsl|ttyscroll|tty|ttytype|udir|undodir|udf|undofile|ul|undolevels|ur|undoreload|uc|updatecount|ut|updatetime|vbs|verbose|vfile|verbosefile|vdir|viewdir|vop|viewoptions|vi|viminfo|vif|viminfofile|ve|virtualedit|vb|visualbell|warn|wiv|weirdinvert|ww|whichwrap|wc|wildchar|wcm|wildcharm|wig|wildignore|wic|wildignorecase|wmnu|wildmenu|wim|wildmode|wop|wildoptions|wak|winaltkeys|wi|window|wh|winheight|wfh|winfixheight|wfw|winfixwidth|wmh|winminheight|wmw|winminwidth|winptydll|wiw|winwidth|wrap|wm|wrapmargin|ws|wrapscan|write|wa|writeany|wb|writebackup|wd|writedelay)\\b","dgv",{"lazyCompile":true}),name:"support.type.option.viml"},{match:/*@__PURE__*/ new EmulatedRegExp("&?\\b(aleph|allowrevins|altkeymap|ambiwidth|autochdir|arabic|arabicshape|autoindent|autoread|autowrite|autowriteall|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|belloff|binary|bomb|breakat|breakindent|breakindentopt|browsedir|bufhidden|buflisted|buftype|casemap|cdpath|cedit|charconvert|cindent|cinkeys|cinoptions|cinwords|clipboard|cmdheight|cmdwinheight|colorcolumn|columns|comments|commentstring|complete|completefunc|completeopt|concealcursor|conceallevel|confirm|copyindent|cpoptions|cscopepathcomp|cscopeprg|cscopequickfix|cscoperelative|cscopetag|cscopetagorder|cscopeverbose|cursorbind|cursorcolumn|cursorline|debug|define|delcombine|dictionary|diff|diffexpr|diffopt|digraph|directory|display|eadirection|encoding|endofline|equalalways|equalprg|errorbells|errorfile|errorformat|eventignore|expandtab|exrc|fileencoding|fileencodings|fileformat|fileformats|fileignorecase|filetype|fillchars|fixendofline|fkmap|foldclose|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldopen|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fsync|gdefault|grepformat|grepprg|guicursor|guifont|guifontset|guifontwide|guioptions|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hidden|hlsearch|history|hkmap|hkmapp|icon|iconstring|ignorecase|imcmdline|imdisable|iminsert|imsearch|include|includeexpr|incsearch|indentexpr|indentkeys|infercase|insertmode|isfname|isident|iskeyword|isprint|joinspaces|keymap|keymodel|keywordprg|langmap|langmenu|langremap|laststatus|lazyredraw|linebreak|lines|linespace|lisp|lispwords|list|listchars|loadplugins|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|menuitems|mkspellmem|modeline|modelines|modifiable|modified|more|mouse|mousefocus|mousehide|mousemodel|mouseshape|mousetime|nrformats|number|numberwidth|omnifunc|opendevice|operatorfunc|packpath|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|perldll|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pumheight|pythondll|pythonthreedll|quoteescape|readonly|redrawtime|regexpengine|relativenumber|remap|report|revins|rightleft|rightleftcmd|rubydll|ruler|rulerformat|runtimepath|scroll|scrollbind|scrolljump|scrolloff|scrollopt|sections|secure|selection|selectmode|sessionoptions|shada|shell|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shellxescape|shellxquote|shiftround|shiftwidth|shortmess|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|sidescroll|sidescrolloff|signcolumn|smartcase|smartindent|smarttab|softtabstop|spell|spellcapcheck|spellfile|spelllang|spellsuggest|splitbelow|splitright|startofline|statusline|suffixes|suffixesadd|swapfile|switchbuf|synmaxcol|syntax|tabline|tabpagemax|tabstop|tagbsearch|tagcase|taglength|tagrelative|tags|tagstack|term|termbidi|terse|textwidth|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|ttimeout|ttimeoutlen|ttytype|undodir|undofile|undolevels|undoreload|updatecount|updatetime|verbose|verbosefile|viewdir|viewoptions|virtualedit|visualbell|warn|whichwrap|wildchar|wildcharm|wildignore|wildignorecase|wildmenu|wildmode|wildoptions|winaltkeys|window|winheight|winfixheight|winfixwidth|winminheight|winminwidth|winwidth|wrap|wrapmargin|wrapscan|write|writeany|writebackup|writedelay)\\b","dgv",{"lazyCompile":true}),name:"support.type.option.viml"},{match:/&?\b(al|ari|akm|ambw|acd|arab|arshape|ai|ar|aw|awa|bg|bs|bk|bkc|bdir|bex|bsk|bdlay|beval|bexpr|bo|bin|bomb|brk|bri|briopt|bsdir|bh|bl|bt|cmp|cd|cedit|ccv|cin|cink|cino|cinw|cb|ch|cwh|cc|co|com|cms|cpt|cfu|cot|cocu|cole|cf|ci|cpo|cspc|csprg|csqf|csre|cst|csto|cpo|crb|cuc|cul|debug|def|deco|dict|diff|dex|dip|dg|dir|dy|ead|enc|eol|ea|ep|eb|ef|efm|ei|et|ex|fenc|fencs|ff|ffs|fic|ft|fcs|fixeol|fk|fcl|fdc|fen|fde|fdi|fdl|fdls|fmr|fdm|fml|fdn|fdo|fdt|fex|flp|fo|fp|fs|gd|gfm|gp|gcr|gfn|gfs|gfw|go|gtl|gtt|hf|hh|hlg|hid|hls|hi|hk|hkp|icon|iconstring|ic|imc|imd|imi|ims|inc|inex|is|inde|indk|inf|im|isf|isi|isk|isp|js|kmp|km|kp|lmap|lm|lrm|ls|lz|lbr|lines|lsp|lisp|lw|list|lcs|lpl|magic|mef|mp|mps|mat|mco|mfd|mmd|mm|mmp|mmt|mis|msm|ml|mls|ma|mod|more|mouse|mousef|mh|mousem|mouses|mouset|nf|nu|nuw|ofu|odev|opfunc|pp|para|paste|pt|pex|pm|pa|perldll|pi|pvh|pvw|pdev|penc|pexpr|pfn|pheader|pmbcs|pmbfn|popt|prompt|ph|pythondll|pythonthreedlll|qe|ro|rdt|re|rnu|remap|report|ri|rl|rlc|rubydll|ru|ruf|rtp|scr|scb|sj|so|sbo|sect|secure|sel|slm|ssop|sd|sh|shcf|sp|shq|srr|ssl|stmp|sxe|sxq|sr|sw|shm|sbr|sc|sft|sm|smd|stal|ss|siso|scl|scs|si|sta|sts|spell|spc|spf|spl|sps|sb|spr|sol|stl|su|sua|swf|swb|smc|syn|tal|tpm|ts|tbs|tc|tl|tr|tag|tgst|term|tbidi|terse|tw|tsr|top|to|tm|title|titlelen|titleold|titlestring|ttimeout|ttm|tty|udir|udf|ul|ur|uc|ut|vbs|vfile|vdir|vop|ve|vb|warn|ww|wc|wcm|wig|wic|wmnu|wim|wop|wak|wi|wh|wfh|wfw|wmh|wmw|wiw|wrap|wm|ws|write|wa|wb|wd)\b/dgv,name:"support.type.option.shortname.viml"},{match:/\b(noanti|noantialias|noarab|noarabic|noarshape|noarabicshape|noari|noallowrevins|noakm|noaltkeymap|noacd|noautochdir|noai|noautoindent|noar|noautoread|noaw|noautowrite|noawa|noautowriteall|nobk|nobackup|nobeval|noballooneval|nobevalterm|noballoonevalterm|nobin|nobinary|nobomb|nobri|nobreakindent|nobl|nobuflisted|nocin|nocindent|nocp|nocompatible|nocf|noconfirm|noci|nocopyindent|nocsre|nocscoperelative|nocst|nocscopetag|nocsverb|nocscopeverbose|nocrb|nocursorbind|nocuc|nocursorcolumn|nocul|nocursorline|nodeco|nodelcombine|nodiff|nodg|nodigraph|noed|noedcompatible|noemo|noemoji|noeol|noendofline|noea|noequalalways|noeb|noerrorbells|noek|noesckeys|noet|noexpandtab|noex|noexrc|nofic|nofileignorecase|nofixeol|nofixendofline|nofk|nofkmap|nofen|nofoldenable|nofs|nofsync|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkp|nohkmapp|nohls|nohlsearch|noicon|noic|noignorecase|noimc|noimcmdline|noimd|noimdisable|nois|noincsearch|noinf|noinfercase|noim|noinsertmode|nojs|nojoinspaces|nolnr|nolangnoremap|nolrm|nolangremap|nolz|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|nolpl|noloadplugins|nomacatsui|nomagic|noml|nomodeline|noma|nomodifiable|nomod|nomodified|nomore|nomousef|nomousefocus|nomh|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopvw|nopreviewwindow|noprompt|noro|noreadonly|nornu|norelativenumber|nors|norestorescreen|nori|norevins|norl|norightleft|noru|noruler|noscb|noscrollbind|nosecure|nossl|noshellslash|nostmp|noshelltemp|nosr|noshiftround|nosn|noshortname|nosc|noshowcmd|nosft|noshowfulltag|nosm|noshowmatch|nosmd|noshowmode|noscs|nosmartcase|nosi|nosmartindent|nosta|nosmarttab|nospell|nosb|nosplitbelow|nospr|nosplitright|nosol|nostartofline|noswf|noswapfile|notbs|notagbsearch|notr|notagrelative|notgst|notagstack|notbidi|notermbidi|notgc|notermguicolors|noterse|nota|notextauto|notx|notextmode|notop|notildeop|noto|notimeout|notitle|nottimeout|notbi|nottybuiltin|notf|nottyfast|noudf|noundofile|novb|novisualbell|nowarn|nowiv|noweirdinvert|nowic|nowildignorecase|nowmnu|nowildmenu|nowfh|nowinfixheight|nowfw|nowinfixwidth|nowrapscan|nowrap|nows|nowrite|nowa|nowriteany|nowb|nowritebackup)\b/dgv,name:"support.type.option.off.viml"}]},punctuation:{patterns:[{match:/([\(\)])/dgv,name:"punctuation.parens.viml"},{match:/([\,])/dgv,name:"punctuation.comma.viml"}]},storage:{patterns:[{match:/\b(call|let|unlet)\b/dgv,name:"storage.viml"},{match:/\b(abort|autocmd)\b/dgv,name:"storage.viml"},{match:/\b(set(l|local)?)\b/dgv,name:"storage.viml"},{match:/\b(com(mand)?)\b/dgv,name:"storage.viml"},{match:/\b(color(scheme)?)\b/dgv,name:"storage.viml"},{match:/\b(Plug|Plugin)\b/dgv,name:"storage.plugin.viml"}]},strings:{patterns:[{begin:/"/dgv,end:/("|(?=\n?$))/dgv,name:"string.quoted.double.viml",patterns:[]},{begin:/'/dgv,end:/('|(?=\n?$))/dgv,name:"string.quoted.single.viml",patterns:[]},{match:/\/(\\\\|\\\/|[^\n\/])*\//dgv,name:"string.regexp.viml"}]},support:{patterns:[{match:/(add|call|delete|empty|extend|get|has|isdirectory|join|printf)(?=\()/dgv,name:"support.function.viml"},{match:/\b(echo(m|hl)?|exe(cute)?|redir|redraw|sleep|so(urce)?|wincmd|setf)\b/dgv,name:"support.function.viml"},{match:/(v:(beval_col|beval_bufnr|beval_lnum|beval_text|beval_winnr|char|charconvert_from|charconvert_to|cmdarg|cmdbang|count|count1|ctype|dying|errmsg|exception|fcs_reason|fcs_choice|fname_in|fname_out|fname_new|fname_diff|folddashes|foldlevel|foldend|foldstart|insertmode|key|lang|lc_time|lnum|mouse_win|mouse_lnum|mouse_col|oldfiles|operator|prevcount|profiling|progname|register|scrollstart|servername|searchforward|shell_error|statusmsg|swapname|swapchoice|swapcommand|termresponse|this_session|throwpoint|val|version|warningmsg|windowid))/dgv,name:"support.type.builtin.vim-variable.viml"},{match:/(&(cpo|isk|omnifunc|paste|previewwindow|rtp|tags|term|wrap))/dgv,name:"support.type.builtin.viml"},{match:/(&(shell(cmdflag|redir)?))/dgv,name:"support.type.builtin.viml"},{match:/<args>/dgv,name:"support.variable.args.viml"},{match:/\b(None|ErrorMsg|WarningMsg)\b/dgv,name:"support.type.syntax.viml"},{match:/\b(BufNewFile|BufReadPre|BufRead|BufReadPost|BufReadCmd|FileReadPre|FileReadPost|FileReadCmd|FilterReadPre|FilterReadPost|StdinReadPre|StdinReadPost|BufWrite|BufWritePre|BufWritePost|BufWriteCmd|FileWritePre|FileWritePost|FileWriteCmd|FileAppendPre|FileAppendPost|FileAppendCmd|FilterWritePre|FilterWritePost|BufAdd|BufCreate|BufDelete|BufWipeout|BufFilePre|BufFilePost|BufEnter|BufLeave|BufWinEnter|BufWinLeave|BufUnload|BufHidden|BufNew|SwapExists|TermOpen|TermClose|FileType|Syntax|OptionSet|VimEnter|GUIEnter|GUIFailed|TermResponse|QuitPre|VimLeavePre|VimLeave|DirChanged|FileChangedShell|FileChangedShellPost|FileChangedRO|ShellCmdPost|ShellFilterPost|CmdUndefined|FuncUndefined|SpellFileMissing|SourcePre|SourceCmd|VimResized|FocusGained|FocusLost|CursorHold|CursorHoldI|CursorMoved|CursorMovedI|WinNew|WinEnter|WinLeave|TabEnter|TabLeave|TabNew|TabNewEntered|TabClosed|CmdlineEnter|CmdlineLeave|CmdwinEnter|CmdwinLeave|InsertEnter|InsertChange|InsertLeave|InsertCharPre|TextYankPost|TextChanged|TextChangedI|ColorScheme|RemoteReply|QuickFixCmdPre|QuickFixCmdPost|SessionLoadPost|MenuPopup|CompleteDone|User)\b/dgv,name:"support.type.event.viml"},{match:/\b(Comment|Constant|String|Character|Number|Boolean|Float|Identifier|Function|Statement|Conditional|Repeat|Label|Operator|Keyword|Exception|PreProc|Include|Define|Macro|PreCondit|Type|StorageClass|Structure|Typedef|Special|SpecialChar|Tag|Delimiter|SpecialComment|Debug|Underlined|Ignore|Error|Todo)\b/dgv,name:"support.type.syntax-group.viml"}]},syntax:{patterns:[{match:/syn(tax)? case (ignore|match)/dgv,name:"keyword.control.syntax.viml"},{match:/syn(tax)? (clear|enable|include|off|on|manual|sync)/dgv,name:"keyword.control.syntax.viml"},{match:/\b(contained|display|excludenl|fold|keepend|oneline|skipnl|skipwhite|transparent)\b/dgv,name:"keyword.other.syntax.viml"},{match:/\b(add|containedin|contains|matchgroup|nextgroup)=/dgv,name:"keyword.other.syntax.viml"},{captures:{"1":{name:"keyword.other.syntax-range.viml"},"3":{name:"string.regexp.viml"}},match:/((start|skip|end)=)(\+\P{space}+\+\p{space})?/dgv},{captures:{"0":{name:"support.type.syntax.viml"},"1":{name:"storage.syntax.viml"},"3":{name:"variable.other.syntax-scope.viml"},"4":{name:"storage.modifier.syntax.viml"}},match:/(syn|syntax)\p{space}+(cluster|keyword|match|region)(\p{space}+[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}+)(contained)?/dgv,patterns:[]},{captures:{"1":{name:"storage.highlight.viml"},"2":{name:"storage.modifier.syntax.viml"},"3":{name:"support.function.highlight.viml"},"4":{name:"variable.other.viml"},"5":{name:"variable.other.viml"}},match:/(hi|highlight)\p{space}+(def|default)\p{space}+(link)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,patterns:[]}]},variable:{patterns:[{match:/https?:\/\/\P{space}+/dgv,name:"variable.other.link.viml"},{match:/(?<=\()([a-zA-Z]+)(?=\))/dgv,name:"variable.parameter.viml"},{match:/\b([absgl]:[a-zA-Z0-9_\.\#]+)\b(?!\()/dgv,name:"variable.other.viml"}]}},scopeName:"source.viml",embeddedLangs:undefined,aliases:["vim","vimscript"]})
|
|
2
4
|
|
|
3
5
|
export default [
|
|
4
6
|
lang
|
package/dist/vue-html.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
|
2
2
|
import vue from './vue.mjs'
|
|
3
3
|
import javascript from './javascript.mjs'
|
|
4
4
|
|
|
5
|
-
const lang = Object.freeze({displayName:"Vue HTML",fileTypes:[],name:"vue-html",patterns:[{include:"source.vue#vue-interpolations"},{begin:/(<)([A-Z][a-zA-Z0-9\:\-]*)(?=[^\>]*><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"support.class.component.html"}},end:/(>)(<)(\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"},"2":{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},"3":{name:"punctuation.definition.tag.begin.html"},"4":{name:"support.class.component.html"},"5":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<)([a-z][a-zA-Z0-9\:\-]*)(?=[^\>]*><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.html"}},end:/(>)(<)(\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"},"2":{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},"3":{name:"punctuation.definition.tag.begin.html"},"4":{name:"entity.name.tag.html"},"5":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\?)(xml)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.xml.html"}},end:/(\?>)/dgv,name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/-->/dgv,name:"comment.block.html"},{begin:/<!/dgv,captures:{"0":{name:"punctuation.definition.tag.html"}},end:/>/dgv,name:"meta.tag.sgml.html",patterns:[{begin:/DOCTYPE/dgiv,captures:{"1":{name:"entity.name.tag.doctype.html"}},end:/(?=>)/dgv,name:"meta.tag.sgml.doctype.html",patterns:[{match:/"[^"\>]*"/dgv,name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:/\[CDATA\[/dgv,end:/\]\](?=>)/dgv,name:"constant.other.inline-data.html"},{match:/(\p{space}*)(?!--|>)\P{space}(\p{space}*)/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:/(<\/?)([A-Z][a-zA-Z0-9\:\-]*\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"support.class.component.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([a-z][a-zA-Z0-9\:\-]*\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:body|head|html)\b)/dgiv,captures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.structure.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)(?!-)\b)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?!-)\b)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([a-zA-Z0-9\:\-]+)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.other.html"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:/<>/dgv,name:"invalid.illegal.incomplete.html"},{match:/</dgv,name:"invalid.illegal.bad-angle-bracket.html"}],repository:{entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},"string-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"string-single-quoted":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"tag-generic-attribute":{match:/(?<=[^\=])\b([a-zA-Z0-9\:\-_]+)/dgv,name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:/\b(id)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.id.html"},"2":{name:"punctuation.separator.key-value.html"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(?<='|\"|[^\\p{space}\\<\\>\\/])","dgv",{"strategy":"
|
|
5
|
+
const lang = Object.freeze({displayName:"Vue HTML",fileTypes:[],name:"vue-html",patterns:[{include:"source.vue#vue-interpolations"},{begin:/(<)([A-Z][a-zA-Z0-9\:\-]*)(?=[^\>]*><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"support.class.component.html"}},end:/(>)(<)(\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"},"2":{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},"3":{name:"punctuation.definition.tag.begin.html"},"4":{name:"support.class.component.html"},"5":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<)([a-z][a-zA-Z0-9\:\-]*)(?=[^\>]*><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.html"}},end:/(>)(<)(\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"},"2":{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},"3":{name:"punctuation.definition.tag.begin.html"},"4":{name:"entity.name.tag.html"},"5":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\?)(xml)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.xml.html"}},end:/(\?>)/dgv,name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/-->/dgv,name:"comment.block.html"},{begin:/<!/dgv,captures:{"0":{name:"punctuation.definition.tag.html"}},end:/>/dgv,name:"meta.tag.sgml.html",patterns:[{begin:/DOCTYPE/dgiv,captures:{"1":{name:"entity.name.tag.doctype.html"}},end:/(?=>)/dgv,name:"meta.tag.sgml.doctype.html",patterns:[{match:/"[^"\>]*"/dgv,name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:/\[CDATA\[/dgv,end:/\]\](?=>)/dgv,name:"constant.other.inline-data.html"},{match:/(\p{space}*)(?!--|>)\P{space}(\p{space}*)/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:/(<\/?)([A-Z][a-zA-Z0-9\:\-]*\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"support.class.component.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([a-z][a-zA-Z0-9\:\-]*\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:body|head|html)\b)/dgiv,captures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.structure.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)(?!-)\b)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?!-)\b)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([a-zA-Z0-9\:\-]+)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.other.html"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:/<>/dgv,name:"invalid.illegal.incomplete.html"},{match:/</dgv,name:"invalid.illegal.bad-angle-bracket.html"}],repository:{entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},"string-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"string-single-quoted":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"tag-generic-attribute":{match:/(?<=[^\=])\b([a-zA-Z0-9\:\-_]+)/dgv,name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:/\b(id)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.id.html"},"2":{name:"punctuation.separator.key-value.html"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(?<='|\"|[^\\p{space}\\<\\>\\/])","dgv",{"strategy":"clip_search"}),name:"meta.attribute-with-value.id.html",patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{captures:{"0":{name:"meta.toc-list.id.html"}},match:/(?<==)(?:[^\p{space}\<\>\/'"]|\/(?!>))+/dgv,name:"string.unquoted.html"}]},"tag-stuff":{patterns:[{include:"#vue-directives"},{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"},{include:"#unquoted-attribute"}]},"unquoted-attribute":{match:/(?<==)(?:[^\p{space}\<\>\/'"]|\/(?!>))+/dgv,name:"string.unquoted.html"},"vue-directives":{begin:/(?:\b(v-)|(:|@|#))([a-zA-Z0-9\-_]+)(?::([a-zA-Z\-_]+))?(?:\.([a-zA-Z\-_]+))*\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.html"},"2":{name:"punctuation.separator.key-value.html"},"3":{name:"entity.other.attribute-name.html"},"4":{name:"entity.other.attribute-name.html"},"5":{name:"entity.other.attribute-name.html"},"6":{name:"punctuation.separator.key-value.html"}},end:/(?<='|")|(?=[\p{space}\<\>\`])/dgv,name:"meta.directive.vue",patterns:[{begin:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]}]}},scopeName:"text.html.vue-html",embeddedLangs:["vue","javascript"],aliases:undefined,embeddedLangsLazy:[]})
|
|
6
6
|
|
|
7
7
|
export default [
|
|
8
8
|
...vue,
|
package/dist/vue.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import vue_directives from './vue-directives.mjs'
|
|
|
10
10
|
import vue_interpolations from './vue-interpolations.mjs'
|
|
11
11
|
import vue_sfc_style_variable_injection from './vue-sfc-style-variable-injection.mjs'
|
|
12
12
|
|
|
13
|
-
const lang = Object.freeze({displayName:"Vue",name:"vue",patterns:[{include:"#vue-comments"},{include:"text.html.basic#comment"},{include:"#self-closing-tag"},{begin:/(<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},patterns:[{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)md\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text.html.markdown",patterns:[{include:"text.html.markdown"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)html\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text.html.derivative",patterns:[{include:"#html-stuff"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)pug\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text.pug",patterns:[{include:"text.pug"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)stylus\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.stylus",patterns:[{include:"source.stylus"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)postcss\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.postcss",patterns:[{include:"source.postcss"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)sass\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.sass",patterns:[{include:"source.sass"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)css\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.css",patterns:[{include:"source.css"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)scss\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.css.scss",patterns:[{include:"source.css.scss"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)less\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.css.less",patterns:[{include:"source.css.less"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)js\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.js",patterns:[{include:"source.js"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)ts\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.ts",patterns:[{include:"source.ts"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)jsx\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.js.jsx",patterns:[{include:"source.js.jsx"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)tsx\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.tsx",patterns:[{include:"source.tsx"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)coffee\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.coffee",patterns:[{include:"source.coffee"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)json\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.json",patterns:[{include:"source.json"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)jsonc\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.json.comments",patterns:[{include:"source.json.comments"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)json5\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.json5",patterns:[{include:"source.json5"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)yaml\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.yaml",patterns:[{include:"source.yaml"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)toml\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.toml",patterns:[{include:"source.toml"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)(gql|graphql)\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.graphql",patterns:[{include:"source.graphql"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)vue\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.vue",patterns:[{include:"source.vue"}]}]},{begin:/(template)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/template\b)/dgv,name:"text.html.derivative",patterns:[{include:"#html-stuff"}]}]},{begin:/(script)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/script\b)/dgv,name:"source.js",patterns:[{include:"source.js"}]}]},{begin:/(style)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/style\b)/dgv,name:"source.css",patterns:[{include:"source.css"}]}]},{begin:/([a-zA-Z0-9\:\-]+)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text"}]}]}],repository:{"html-stuff":{patterns:[{include:"#template-tag"},{include:"text.html.derivative"},{include:"text.html.basic"}]},"self-closing-tag":{begin:/(<)([a-zA-Z0-9\:\-]+)(?=([^\>]+\/>))/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},end:/(\/>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"self-closing-tag",patterns:[{include:"#tag-stuff"}]},"tag-stuff":{begin:/(?:)/dgv,end:/(?=\/>)|(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.tag-stuff",patterns:[{include:"#vue-directives"},{include:"text.html.basic#attribute"}]},"template-tag":{patterns:[{include:"#template-tag-1"},{include:"#template-tag-2"}]},"template-tag-1":{begin:/(<)(template)\b(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"},"3":{name:"punctuation.definition.tag.end.html.vue"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.template-tag.start",patterns:[{begin:/(?:)/dgv,end:/(?=\/>)|((<\/)(template)\b)/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.begin.html.vue"},"3":{name:"entity.name.tag.$3.html.vue"}},name:"meta.template-tag.end",patterns:[{include:"#html-stuff"}]}]},"template-tag-2":{begin:/(<)(template)\b/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.template-tag.start",patterns:[{begin:/(?:)/dgv,end:/(?=\/>)|((<\/)(template)\b)/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.begin.html.vue"},"3":{name:"entity.name.tag.$3.html.vue"}},name:"meta.template-tag.end",patterns:[{include:"#tag-stuff"},{include:"#html-stuff"}]}]},"vue-comments":{patterns:[{include:"#vue-comments-key-value"}]},"vue-comments-key-value":{begin:/(<!--)\p{space}*(@)([\p{L}\p{M}\p{N}\p{Pc}\$]+)(?=\p{space})/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.vue"},"2":{name:"punctuation.definition.block.tag.comment.vue"},"3":{name:"storage.type.class.comment.vue"}},end:/(-->)/dgv,endCaptures:{"1":{name:"punctuation.definition.comment.vue"}},name:"comment.block.vue",patterns:[{include:"source.json#value"}]},"vue-directives":{patterns:[{include:"#vue-directives-control"},{include:"#vue-directives-style-attr"},{include:"#vue-directives-original"},{include:"#vue-directives-generic-attr"}]},"vue-directives-control":{begin:/(v-for)|(v-if|v-else-if|v-else)/dgv,captures:{"1":{name:"keyword.control.loop.vue"},"2":{name:"keyword.control.conditional.vue"}},end:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=($E$\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"useEmulationGroups":true}),name:"meta.attribute.directive.control.vue",patterns:[{include:"#vue-directives-expression"}]},"vue-directives-expression":{patterns:[{begin:/(=)\p{space}*('|"|`)/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.html.vue"},"2":{name:"punctuation.definition.string.begin.html.vue"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},patterns:[{begin:/(?<=('|"|`))/dgv,end:/(?=\1)()/dgv,name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]}]},{begin:/(=)\p{space}*(?=[^'"\`])/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.html.vue"}},end:/(?=(\p{space}|>|\/>))/dgv,patterns:[{begin:/(?=[^'"\`])/dgv,end:/(?=(\p{space}|>|\/>))/dgv,name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]}]}]},"vue-directives-generic-attr":{begin:/\b(generic)\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.html.vue"},"2":{name:"punctuation.separator.key-value.html.vue"}},end:/(?<='|")/dgv,name:"meta.attribute.generic.vue",patterns:[{begin:/('|")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.html.vue"}},comment:"https://github.com/microsoft/vscode/blob/fd4346210f59135fad81a8b8c4cea7bf5a9ca6b4/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json#L4002-L4020",end:/((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},name:"meta.type.parameters.vue",patterns:[{include:"source.ts#comment"},{match:/(?<![_\$\p{Alpha}\p{Nd}])(?:(?<=\.\.\.)|(?<!\.))(extends|in|out)(?![_\$\p{Alpha}\p{Nd}])(?:(?=\.\.\.)|(?!\.))/dgv,name:"storage.modifier.ts"},{include:"source.ts#type"},{include:"source.ts#punctuation-comma"},{match:/(=)(?!>)/dgv,name:"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{begin:/(?:(v-[\p{L}\p{M}\p{N}\p{Pc}\-]+)(:)?|([\:\.])|(@)|(#))(?:(\[)([^\]]*)(\])|([\p{L}\p{M}\p{N}\p{Pc}\-]+))?/dgv,beginCaptures:{"1":{name:"entity.other.attribute-name.html.vue"},"2":{name:"punctuation.separator.key-value.html.vue"},"3":{name:"punctuation.attribute-shorthand.bind.html.vue"},"4":{name:"punctuation.attribute-shorthand.event.html.vue"},"5":{name:"punctuation.attribute-shorthand.slot.html.vue"},"6":{name:"punctuation.separator.key-value.html.vue"},"7":{name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]},"8":{name:"punctuation.separator.key-value.html.vue"},"9":{name:"entity.other.attribute-name.html.vue"}},end:/(?=\p{space}*[^\=\p{space}])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},name:"meta.attribute.directive.vue",patterns:[{"1":{name:"punctuation.separator.key-value.html.vue"},"2":{name:"entity.other.attribute-name.html.vue"},match:/(\.)([\p{L}\p{M}\p{N}\p{Pc}\-]*)/dgv},{include:"#vue-directives-expression"}]},"vue-directives-style-attr":{begin:/\b(style)\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.html.vue"},"2":{name:"punctuation.separator.key-value.html.vue"}},end:/(?<='|")/dgv,name:"meta.attribute.style.vue",patterns:[{begin:/('|")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.html.vue"}},comment:"Copy from source.css#rule-list-innards",end:/((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},name:"source.css.embedded.html.vue",patterns:[{include:"source.css#comment-block"},{include:"source.css#escapes"},{include:"source.css#font-features"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])--(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.css"},{begin:/(?<![\-a-zA-Z])(?=[\-a-zA-Z])/dgv,end:/(?=\n?$)|(?![\-a-zA-Z])/dgv,name:"meta.property-name.css",patterns:[{include:"source.css#property-names"}]},{begin:/(:)\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.css"}},comment:"Modify end to fix #199. TODO: handle ' character.",contentName:"meta.property-value.css",end:/\p{space}*(;)|\p{space}*(?='|")/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},patterns:[{include:"source.css#comment-block"},{include:"source.css#property-values"}]},{match:/;/dgv,name:"punctuation.terminator.rule.css"}]}]},"vue-interpolations":{patterns:[{begin:/(\{\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.interpolation.begin.html.vue"}},end:/(\}\})/dgv,endCaptures:{"1":{name:"punctuation.definition.interpolation.end.html.vue"}},name:"expression.embedded.vue",patterns:[{begin:/(?:)/dgv,end:/(?=\}\})/dgv,name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]}]}]}},scopeName:"source.vue",embeddedLangs:["html","css","javascript","typescript","json","html-derivative","markdown-vue","vue-directives","vue-interpolations","vue-sfc-style-variable-injection"],aliases:undefined,embeddedLangsLazy:["markdown","pug","stylus","sass","scss","less","jsx","tsx","coffee","jsonc","json5","yaml","toml","graphql"]})
|
|
13
|
+
const lang = Object.freeze({displayName:"Vue",name:"vue",patterns:[{include:"#vue-comments"},{include:"text.html.basic#comment"},{include:"#self-closing-tag"},{begin:/(<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},patterns:[{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)md\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text.html.markdown",patterns:[{include:"text.html.markdown"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)html\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text.html.derivative",patterns:[{include:"#html-stuff"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)pug\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text.pug",patterns:[{include:"text.pug"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)stylus\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.stylus",patterns:[{include:"source.stylus"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)postcss\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.postcss",patterns:[{include:"source.postcss"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)sass\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.sass",patterns:[{include:"source.sass"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)css\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.css",patterns:[{include:"source.css"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)scss\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.css.scss",patterns:[{include:"source.css.scss"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)less\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.css.less",patterns:[{include:"source.css.less"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)js\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.js",patterns:[{include:"source.js"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)ts\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.ts",patterns:[{include:"source.ts"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)jsx\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.js.jsx",patterns:[{include:"source.js.jsx"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)tsx\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.tsx",patterns:[{include:"source.tsx"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)coffee\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.coffee",patterns:[{include:"source.coffee"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)json\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.json",patterns:[{include:"source.json"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)jsonc\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.json.comments",patterns:[{include:"source.json.comments"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)json5\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.json5",patterns:[{include:"source.json5"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)yaml\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.yaml",patterns:[{include:"source.yaml"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)toml\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.toml",patterns:[{include:"source.toml"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)(gql|graphql)\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.graphql",patterns:[{include:"source.graphql"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)vue\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.vue",patterns:[{include:"source.vue"}]}]},{begin:/(template)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/template\b)/dgv,name:"text.html.derivative",patterns:[{include:"#html-stuff"}]}]},{begin:/(script)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/script\b)/dgv,name:"source.js",patterns:[{include:"source.js"}]}]},{begin:/(style)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/style\b)/dgv,name:"source.css",patterns:[{include:"source.css"}]}]},{begin:/([a-zA-Z0-9\:\-]+)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text"}]}]}],repository:{"html-stuff":{patterns:[{include:"#template-tag"},{include:"text.html.derivative"},{include:"text.html.basic"}]},"self-closing-tag":{begin:/(<)([a-zA-Z0-9\:\-]+)(?=([^\>]+\/>))/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},end:/(\/>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"self-closing-tag",patterns:[{include:"#tag-stuff"}]},"tag-stuff":{begin:/(?:)/dgv,end:/(?=\/>)|(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.tag-stuff",patterns:[{include:"#vue-directives"},{include:"text.html.basic#attribute"}]},"template-tag":{patterns:[{include:"#template-tag-1"},{include:"#template-tag-2"}]},"template-tag-1":{begin:/(<)(template)\b(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"},"3":{name:"punctuation.definition.tag.end.html.vue"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.template-tag.start",patterns:[{begin:/(?:)/dgv,end:/(?=\/>)|((<\/)(template)\b)/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.begin.html.vue"},"3":{name:"entity.name.tag.$3.html.vue"}},name:"meta.template-tag.end",patterns:[{include:"#html-stuff"}]}]},"template-tag-2":{begin:/(<)(template)\b/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.template-tag.start",patterns:[{begin:/(?:)/dgv,end:/(?=\/>)|((<\/)(template)\b)/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.begin.html.vue"},"3":{name:"entity.name.tag.$3.html.vue"}},name:"meta.template-tag.end",patterns:[{include:"#tag-stuff"},{include:"#html-stuff"}]}]},"vue-comments":{patterns:[{include:"#vue-comments-key-value"}]},"vue-comments-key-value":{begin:/(<!--)\p{space}*(@)([\p{L}\p{M}\p{N}\p{Pc}\$]+)(?=\p{space})/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.vue"},"2":{name:"punctuation.definition.block.tag.comment.vue"},"3":{name:"storage.type.class.comment.vue"}},end:/(-->)/dgv,endCaptures:{"1":{name:"punctuation.definition.comment.vue"}},name:"comment.block.vue",patterns:[{include:"source.json#value"}]},"vue-directives":{patterns:[{include:"#vue-directives-control"},{include:"#vue-directives-style-attr"},{include:"#vue-directives-original"},{include:"#vue-directives-generic-attr"}]},"vue-directives-control":{begin:/(v-for)|(v-if|v-else-if|v-else)/dgv,captures:{"1":{name:"keyword.control.loop.vue"},"2":{name:"keyword.control.conditional.vue"}},end:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"hiddenCaptures":[1]}),name:"meta.attribute.directive.control.vue",patterns:[{include:"#vue-directives-expression"}]},"vue-directives-expression":{patterns:[{begin:/(=)\p{space}*('|"|`)/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.html.vue"},"2":{name:"punctuation.definition.string.begin.html.vue"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},patterns:[{begin:/(?<=('|"|`))/dgv,end:/(?=\1)()/dgv,name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]}]},{begin:/(=)\p{space}*(?=[^'"\`])/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.html.vue"}},end:/(?=(\p{space}|>|\/>))/dgv,patterns:[{begin:/(?=[^'"\`])/dgv,end:/(?=(\p{space}|>|\/>))/dgv,name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]}]}]},"vue-directives-generic-attr":{begin:/\b(generic)\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.html.vue"},"2":{name:"punctuation.separator.key-value.html.vue"}},end:/(?<='|")/dgv,name:"meta.attribute.generic.vue",patterns:[{begin:/('|")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.html.vue"}},comment:"https://github.com/microsoft/vscode/blob/fd4346210f59135fad81a8b8c4cea7bf5a9ca6b4/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json#L4002-L4020",end:/((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},name:"meta.type.parameters.vue",patterns:[{include:"source.ts#comment"},{match:/(?<![_\$\p{Alpha}\p{Nd}])(?:(?<=\.\.\.)|(?<!\.))(extends|in|out)(?![_\$\p{Alpha}\p{Nd}])(?:(?=\.\.\.)|(?!\.))/dgv,name:"storage.modifier.ts"},{include:"source.ts#type"},{include:"source.ts#punctuation-comma"},{match:/(=)(?!>)/dgv,name:"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{begin:/(?:(v-[\p{L}\p{M}\p{N}\p{Pc}\-]+)(:)?|([\:\.])|(@)|(#))(?:(\[)([^\]]*)(\])|([\p{L}\p{M}\p{N}\p{Pc}\-]+))?/dgv,beginCaptures:{"1":{name:"entity.other.attribute-name.html.vue"},"2":{name:"punctuation.separator.key-value.html.vue"},"3":{name:"punctuation.attribute-shorthand.bind.html.vue"},"4":{name:"punctuation.attribute-shorthand.event.html.vue"},"5":{name:"punctuation.attribute-shorthand.slot.html.vue"},"6":{name:"punctuation.separator.key-value.html.vue"},"7":{name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]},"8":{name:"punctuation.separator.key-value.html.vue"},"9":{name:"entity.other.attribute-name.html.vue"}},end:/(?=\p{space}*[^\=\p{space}])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},name:"meta.attribute.directive.vue",patterns:[{"1":{name:"punctuation.separator.key-value.html.vue"},"2":{name:"entity.other.attribute-name.html.vue"},match:/(\.)([\p{L}\p{M}\p{N}\p{Pc}\-]*)/dgv},{include:"#vue-directives-expression"}]},"vue-directives-style-attr":{begin:/\b(style)\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.html.vue"},"2":{name:"punctuation.separator.key-value.html.vue"}},end:/(?<='|")/dgv,name:"meta.attribute.style.vue",patterns:[{begin:/('|")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.html.vue"}},comment:"Copy from source.css#rule-list-innards",end:/((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},name:"source.css.embedded.html.vue",patterns:[{include:"source.css#comment-block"},{include:"source.css#escapes"},{include:"source.css#font-features"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])--(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.css"},{begin:/(?<![\-a-zA-Z])(?=[\-a-zA-Z])/dgv,end:/(?=\n?$)|(?![\-a-zA-Z])/dgv,name:"meta.property-name.css",patterns:[{include:"source.css#property-names"}]},{begin:/(:)\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.css"}},comment:"Modify end to fix #199. TODO: handle ' character.",contentName:"meta.property-value.css",end:/\p{space}*(;)|\p{space}*(?='|")/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},patterns:[{include:"source.css#comment-block"},{include:"source.css#property-values"}]},{match:/;/dgv,name:"punctuation.terminator.rule.css"}]}]},"vue-interpolations":{patterns:[{begin:/(\{\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.interpolation.begin.html.vue"}},end:/(\}\})/dgv,endCaptures:{"1":{name:"punctuation.definition.interpolation.end.html.vue"}},name:"expression.embedded.vue",patterns:[{begin:/(?:)/dgv,end:/(?=\}\})/dgv,name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]}]}]}},scopeName:"source.vue",embeddedLangs:["html","css","javascript","typescript","json","html-derivative","markdown-vue","vue-directives","vue-interpolations","vue-sfc-style-variable-injection"],aliases:undefined,embeddedLangsLazy:["markdown","pug","stylus","sass","scss","less","jsx","tsx","coffee","jsonc","json5","yaml","toml","graphql"]})
|
|
14
14
|
|
|
15
15
|
export default [
|
|
16
16
|
...html,
|