@shikijs/langs-precompiled 1.27.2 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abap.mjs +1 -1
- package/dist/actionscript-3.mjs +1 -1
- package/dist/ada.mjs +1 -1
- package/dist/angular-expression.mjs +1 -1
- package/dist/angular-ts.mjs +1 -1
- package/dist/apache.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/ballerina.mjs +1 -1
- package/dist/bat.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/bicep.mjs +1 -1
- package/dist/blade.mjs +1 -1
- package/dist/bsl.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/cairo.mjs +1 -1
- package/dist/clarity.mjs +1 -1
- package/dist/clojure.mjs +1 -1
- package/dist/cmake.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/codeowners.mjs +1 -1
- package/dist/coffee.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/csv.mjs +1 -1
- package/dist/cue.mjs +1 -1
- package/dist/cypher.mjs +1 -1
- package/dist/d.mjs +1 -1
- package/dist/dart.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/desktop.mjs +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/docker.mjs +1 -1
- package/dist/dotenv.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/edge.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/es-tag-css.mjs +1 -1
- package/dist/es-tag-glsl.mjs +1 -1
- package/dist/es-tag-html.mjs +1 -1
- package/dist/es-tag-sql.mjs +1 -1
- package/dist/es-tag-xml.mjs +1 -1
- package/dist/fennel.mjs +1 -1
- package/dist/fish.mjs +1 -1
- package/dist/fluent.mjs +1 -1
- package/dist/fortran-fixed-form.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/fsharp.mjs +1 -1
- package/dist/gdresource.mjs +1 -1
- package/dist/gdscript.mjs +1 -1
- package/dist/gdshader.mjs +1 -1
- package/dist/genie.mjs +1 -1
- package/dist/gherkin.mjs +1 -1
- package/dist/git-commit.mjs +1 -1
- package/dist/git-rebase.mjs +1 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/glsl.mjs +1 -1
- package/dist/gnuplot.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/groovy.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/handlebars.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/haxe.mjs +1 -1
- package/dist/hcl.mjs +1 -1
- package/dist/hjson.mjs +1 -1
- package/dist/hlsl.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/http.mjs +1 -1
- package/dist/hxml.mjs +1 -1
- package/dist/hy.mjs +1 -1
- package/dist/imba.mjs +1 -1
- package/dist/ini.mjs +1 -1
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jinja-html.mjs +1 -1
- package/dist/jison.mjs +1 -1
- package/dist/json.mjs +1 -1
- package/dist/jsonc.mjs +1 -1
- package/dist/jsonl.mjs +1 -1
- package/dist/jsonnet.mjs +1 -1
- package/dist/jssm.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kotlin.mjs +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/lean.mjs +1 -1
- package/dist/less.mjs +1 -1
- package/dist/liquid.mjs +1 -1
- package/dist/log.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/luau.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown-vue.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/marko.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/move.mjs +1 -1
- package/dist/narrat.mjs +1 -1
- package/dist/nextflow.mjs +1 -1
- package/dist/nginx.mjs +1 -1
- package/dist/nim.mjs +1 -1
- package/dist/nix.mjs +1 -1
- package/dist/nushell.mjs +1 -1
- package/dist/objective-c.mjs +1 -1
- package/dist/objective-cpp.mjs +1 -1
- package/dist/ocaml.mjs +1 -1
- package/dist/pascal.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/plsql.mjs +1 -1
- package/dist/po.mjs +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/prisma.mjs +1 -1
- package/dist/prolog.mjs +1 -1
- package/dist/proto.mjs +1 -1
- package/dist/pug.mjs +1 -1
- package/dist/puppet.mjs +1 -1
- package/dist/python.mjs +1 -1
- package/dist/qml.mjs +1 -1
- package/dist/qmldir.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/racket.mjs +1 -1
- package/dist/raku.mjs +1 -1
- package/dist/razor.mjs +10 -2
- package/dist/reg.mjs +1 -1
- package/dist/rel.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/rst.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/rust.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/sdbl.mjs +1 -1
- package/dist/shaderlab.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/shellsession.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/solidity.mjs +1 -1
- package/dist/soy.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/ssh-config.mjs +1 -1
- package/dist/stata.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/system-verilog.mjs +1 -1
- package/dist/systemd.mjs +1 -1
- package/dist/talonscript.mjs +1 -1
- package/dist/tasl.mjs +1 -1
- package/dist/tcl.mjs +1 -1
- package/dist/templ.mjs +1 -1
- package/dist/terraform.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/turtle.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/typespec.mjs +1 -1
- package/dist/typst.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vala.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/vhdl.mjs +1 -1
- package/dist/viml.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wenyan.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/xml.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +4 -4
package/dist/erlang.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Erlang",fileTypes:["erl","escript","hrl","xrl","yrl"],name:"erlang",patterns:[{include:"#module-directive"},{include:"#import-export-directive"},{include:"#behaviour-directive"},{include:"#record-directive"},{include:"#define-directive"},{include:"#macro-directive"},{include:"#directive"},{include:"#function"},{include:"#everything-else"}],repository:{atom:{patterns:[{begin:/(')/dgv,beginCaptures:{"1":{name:"punctuation.definition.symbol.begin.erlang"}},end:/(')/dgv,endCaptures:{"1":{name:"punctuation.definition.symbol.end.erlang"}},name:"constant.other.symbol.quoted.single.erlang",patterns:[{captures:{"1":{name:"punctuation.definition.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"}},match:/(\\)([bdefnrstv\\'"]|(\^)[\@-_a-z]|[0-7]{1,3}|x[\p{Nd}a-fA-F]{2})/dgv,name:"constant.other.symbol.escape.erlang"},{match:/\\\^?[^\n]?/dgv,name:"invalid.illegal.atom.erlang"}]},{match:/*@__PURE__*/ new EmulatedRegExp("[a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\1)","dgv",{"useEmulationGroups":true}),name:"constant.other.symbol.unquoted.erlang"}]},"behaviour-directive":{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.behaviour.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.behaviour.definition.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(behaviour)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\9))(?:(?=($E$\\p{space}*))\\10)(\\))(?:(?=($E$\\p{space}*))\\12)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.behaviour.erlang"},binary:{begin:/(<<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.binary.begin.erlang"}},end:/(>>)/dgv,endCaptures:{"1":{name:"punctuation.definition.binary.end.erlang"}},name:"meta.structure.binary.erlang",patterns:[{captures:{"1":{name:"punctuation.separator.binary.erlang"},"2":{name:"punctuation.separator.value-size.erlang"}},match:/(,)|(:)/dgv},{include:"#internal-type-specifiers"},{include:"#everything-else"}]},character:{patterns:[{captures:{"1":{name:"punctuation.definition.character.erlang"},"2":{name:"constant.character.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"},"5":{name:"punctuation.definition.escape.erlang"}},match:/(\$)((\\)([bdefnrstv\\'"]|(\^)[\@-_a-z]|[0-7]{1,3}|x[\p{Nd}a-fA-F]{2}))/dgv,name:"constant.character.erlang"},{match:/\$\\\^?[^\n]?/dgv,name:"invalid.illegal.character.erlang"},{captures:{"1":{name:"punctuation.definition.character.erlang"}},match:/(\$)[ \P{space}]/dgv,name:"constant.character.erlang"},{match:/\$[^\n]?/dgv,name:"invalid.illegal.character.erlang"}]},comment:{begin:/((?<=^|\n(?!$))[ \t]+)?(?=%)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"search_start_clip"}),patterns:[{begin:/%/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.erlang"}},end:/\n/dgv,name:"comment.line.percentage.erlang"}]},"define-directive":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(define)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)((?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\9))(?:(?=($E$\\p{space}*))\\10)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.define.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.definition.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.define.erlang",patterns:[{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)-(?:(?=($E$\\p{space}*))\\2)define(?:(?=($E$\\p{space}*))\\3)\\((?:(?=($E$\\p{space}*))\\4)(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\5)(?:(?=($E$\\p{space}*))\\6)\\()","dgv",{"useEmulationGroups":true}),end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.define.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(define)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)((?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\9))(?:(?=($E$\\p{space}*))\\10)(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.define.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.definition.erlang"},"5":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(\))\p{space}*(,)/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.separator.parameters.erlang"}},patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{match:/\|\||\||:|;|,|\.|->/dgv,name:"punctuation.separator.define.erlang"},{include:"#everything-else"}]}]},directive:{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\5))(?:(?=($E$\\p{space}*))\\6)(\\(?)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\)?)(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.erlang",patterns:[{include:"#everything-else"}]},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.erlang"},"3":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\5))(?:(?=($E$\\p{space}*))\\6)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.erlang"}]},docstring:{begin:/(?<!")((["]{3,})\p{space}*)(\P{space}[^\n]*)?(?=$|\n)/dgv,beginCaptures:{"1":{name:"meta.string.quoted.triple.begin.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"},"3":{name:"invalid.illegal.string.erlang"}},comment:"Only whitespace characters are allowed after the beggining and before the closing sequences and those cannot be in the same line",end:/(?<=^|\n(?!$))(\p{space}*((?!)))(?!")/dgv,endCaptures:{"1":{name:"meta.string.quoted.triple.end.erlang"},"2":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.triple.erlang"},"everything-else":{patterns:[{include:"#comment"},{include:"#record-usage"},{include:"#macro-usage"},{include:"#expression"},{include:"#keyword"},{include:"#textual-operator"},{include:"#language-constant"},{include:"#function-call"},{include:"#tuple"},{include:"#list"},{include:"#binary"},{include:"#parenthesized-expression"},{include:"#character"},{include:"#number"},{include:"#atom"},{include:"#sigil-docstring"},{include:"#sigil-string"},{include:"#docstring"},{include:"#string"},{include:"#symbolic-operator"},{include:"#variable"}]},expression:{patterns:[{begin:/\b(if)\b/dgv,beginCaptures:{"1":{name:"keyword.control.if.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.if.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(case)\b/dgv,beginCaptures:{"1":{name:"keyword.control.case.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.case.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(receive)\b/dgv,beginCaptures:{"1":{name:"keyword.control.receive.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.receive.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{captures:{"1":{name:"keyword.control.fun.erlang"},"4":{name:"entity.name.type.class.module.erlang"},"5":{name:"variable.other.erlang"},"6":{name:"punctuation.separator.module-function.erlang"},"8":{name:"entity.name.function.erlang"},"9":{name:"variable.other.erlang"},"10":{name:"punctuation.separator.function-arity.erlang"}},comment:"Implicit function expression with optional module qualifier when both module and function can be atom or variable",match:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)\\p{space}+((([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\5))|(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\7)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\8)))(?:(?=($E$\\p{space}*))\\9)(:)(?:(?=($E$\\p{space}*))\\11))?(([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\14)|'(?:(?=($E$[^']*))\\15)')|(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\17)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\18)))\\p{space}*(/)","dgv",{"useEmulationGroups":true}),name:"meta.expression.fun.implicit.erlang"},{begin:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)\\p{space}+(([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\4))|(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\6)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\7)))(?:(?=($E$\\p{space}*))\\8)(:)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.fun.erlang"},"3":{name:"entity.name.type.class.module.erlang"},"4":{name:"variable.other.erlang"},"5":{name:"punctuation.separator.module-function.erlang"}},comment:"Implicit function expression with module qualifier when module can be atom or variable and function can by anything",end:/(\/)/dgv,endCaptures:{"1":{name:"punctuation.separator.function-arity.erlang"}},name:"meta.expression.fun.implicit.erlang",patterns:[{include:"#everything-else"}]},{begin:/\b(fun)\p{space}+(?!\()/dgv,beginCaptures:{"1":{name:"keyword.control.fun.erlang"}},comment:"Implicit function expression when both module and function can by anything",end:/(\/)/dgv,endCaptures:{"1":{name:"punctuation.separator.function-arity.erlang"}},name:"meta.expression.fun.implicit.erlang",patterns:[{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)(?:(?=($E$\\p{space}*))\\2)(\\()(?=((?:(?=($E$\\p{space}*))\\5)\\()|(\\)))","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"entity.name.function.erlang"},"2":{name:"punctuation.definition.parameters.begin.erlang"}},comment:"Function type in type specification",end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},patterns:[{include:"#everything-else"}]},{begin:/\b(fun)\b/dgv,beginCaptures:{"1":{name:"keyword.control.fun.erlang"}},comment:"Explicit function expression",end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.fun.erlang",patterns:[{begin:/(?=\()/dgv,end:/(;)|(?=\bend\b)/dgv,endCaptures:{"1":{name:"punctuation.separator.clauses.erlang"}},patterns:[{include:"#internal-function-parts"}]},{include:"#everything-else"}]},{begin:/\b(try)\b/dgv,beginCaptures:{"1":{name:"keyword.control.try.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.try.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(begin)\b/dgv,beginCaptures:{"1":{name:"keyword.control.begin.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.begin.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(maybe)\b/dgv,beginCaptures:{"1":{name:"keyword.control.maybe.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.maybe.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]}]},function:{begin:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\3)|'(?:(?=($E$[^']*))\\4)')(?:(?=($E$\\p{space}*))\\5)(?=\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"entity.name.function.definition.erlang"}},end:/(\.)/dgv,endCaptures:{"1":{name:"punctuation.terminator.function.erlang"}},name:"meta.function.erlang",patterns:[{captures:{"1":{name:"entity.name.function.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\3)|'(?:(?=($E$[^']*))\\4)')(?:(?=($E$\\p{space}*))\\5)(?=\\()","dgv",{"useEmulationGroups":true})},{begin:/(?=\()/dgv,end:/(;)|(?=\.)/dgv,endCaptures:{"1":{name:"punctuation.separator.clauses.erlang"}},patterns:[{include:"#parenthesized-expression"},{include:"#internal-function-parts"}]},{include:"#everything-else"}]},"function-call":{begin:/*@__PURE__*/ new EmulatedRegExp("(?=([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\2)|'(?:(?=($E$[^']*))\\3)'|_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\4)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\5))(?:(?=($E$\\p{space}*))\\6)(\\(|:(?:(?=($E$\\p{space}*))\\8)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\10)|'(?:(?=($E$[^']*))\\11)'|_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\12)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\13))(?:(?=($E$\\p{space}*))\\14)\\())","dgv",{"useEmulationGroups":true}),end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},name:"meta.function-call.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("((erlang)(?:(?=($E$\\p{space}*))\\3)(:)(?:(?=($E$\\p{space}*))\\5))?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)(?:(?=($E$\\p{space}*))\\7)(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"2":{name:"entity.name.type.class.module.erlang"},"3":{name:"punctuation.separator.module-function.erlang"},"4":{name:"entity.name.function.guard.erlang"},"5":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(?=\))/dgv,patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("((([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\4)|'(?:(?=($E$[^']*))\\5)')|(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\7)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\8)))(?:(?=($E$\\p{space}*))\\9)(:)(?:(?=($E$\\p{space}*))\\11))?(([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\14)|'(?:(?=($E$[^']*))\\15)')|(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\17)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\18)))(?:(?=($E$\\p{space}*))\\19)(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"3":{name:"entity.name.type.class.module.erlang"},"4":{name:"variable.other.erlang"},"5":{name:"punctuation.separator.module-function.erlang"},"7":{name:"entity.name.function.erlang"},"8":{name:"variable.other.erlang"},"9":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(?=\))/dgv,patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]}]},"import-export-directive":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(import)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\9)|'(?:(?=($E$[^']*))\\10)')(?:(?=($E$\\p{space}*))\\11)(,)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.import.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.module.erlang"},"5":{name:"punctuation.separator.parameters.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.import.erlang",patterns:[{include:"#internal-function-list"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(export)(?:(?=($E$\\p{space}*))\\5)(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.export.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.export.erlang",patterns:[{include:"#internal-function-list"}]}]},"internal-expression-punctuation":{captures:{"1":{name:"punctuation.separator.clause-head-body.erlang"},"2":{name:"punctuation.separator.clauses.erlang"},"3":{name:"punctuation.separator.expressions.erlang"}},match:/(->)|(;)|(,)/dgv},"internal-function-list":{begin:/(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.list.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.list.end.erlang"}},name:"meta.structure.list.function.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\2)|'(?:(?=($E$[^']*))\\3)')(?:(?=($E$\\p{space}*))\\4)(/)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"entity.name.function.erlang"},"2":{name:"punctuation.separator.function-arity.erlang"}},end:/(,)|(?=\])/dgv,endCaptures:{"1":{name:"punctuation.separator.list.erlang"}},patterns:[{include:"#everything-else"}]},{include:"#everything-else"}]},"internal-function-parts":{patterns:[{begin:/(?=\()/dgv,end:/(->)/dgv,endCaptures:{"1":{name:"punctuation.separator.clause-head-body.erlang"}},patterns:[{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{match:/,|;/dgv,name:"punctuation.separator.guards.erlang"},{include:"#everything-else"}]},{match:/,/dgv,name:"punctuation.separator.expressions.erlang"},{include:"#everything-else"}]},"internal-record-body":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.class.record.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.class.record.end.erlang"}},name:"meta.structure.record.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\3)|'(?:(?=($E$[^']*))\\4)')|(_))","dgv",{"useEmulationGroups":true}),beginCaptures:{"2":{name:"variable.other.field.erlang"},"3":{name:"variable.language.omitted.field.erlang"}},end:/(,)|(?=\})/dgv,endCaptures:{"1":{name:"punctuation.separator.class.record.erlang"}},patterns:[{include:"#everything-else"}]},{include:"#everything-else"}]},"internal-string-body":{patterns:[{captures:{"1":{name:"punctuation.definition.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"}},comment:"escape sequence",match:/(\\)([bdefnrstv\\'"]|(\^)[\@-_a-z]|[0-7]{1,3}|x[\p{Nd}a-fA-F]{2})/dgv,name:"constant.character.escape.erlang"},{match:/\\\^?[^\n]?/dgv,name:"invalid.illegal.string.erlang"},{captures:{"1":{name:"punctuation.definition.placeholder.erlang"},"6":{name:"punctuation.separator.placeholder-parts.erlang"},"10":{name:"punctuation.separator.placeholder-parts.erlang"}},comment:"io:fwrite format control sequence",match:/*@__PURE__*/ new EmulatedRegExp("(~)((-)?(?:(?=($E$\\p{Nd}+))\\4)|(\\*))?((\\.)((?:(?=($E$\\p{Nd}+))\\9)|(\\*))?((\\.)((\\*)|[^\\n]))?)?[tlkK]*[\\~cfegswpWPBX\\#bx\\+ni]","dgv",{"useEmulationGroups":true}),name:"constant.character.format.placeholder.other.erlang"},{captures:{"1":{name:"punctuation.definition.placeholder.erlang"}},comment:"io:fread format control sequence",match:/*@__PURE__*/ new EmulatedRegExp("(~)(\\*)?((?:(?=($E$\\p{Nd}+))\\4))?(t)?[\\~du\\-\\#fsacl]","dgv",{"useEmulationGroups":true}),name:"constant.character.format.placeholder.other.erlang"},{match:/~[^"]?/dgv,name:"invalid.illegal.string.erlang"}]},"internal-type-specifiers":{begin:/(\/)/dgv,beginCaptures:{"1":{name:"punctuation.separator.value-type.erlang"}},end:/(?=,|:|>>)/dgv,patterns:[{captures:{"1":{name:"storage.type.erlang"},"2":{name:"storage.modifier.signedness.erlang"},"3":{name:"storage.modifier.endianness.erlang"},"4":{name:"storage.modifier.unit.erlang"},"5":{name:"punctuation.separator.unit-specifiers.erlang"},"6":{name:"constant.numeric.integer.decimal.erlang"},"7":{name:"punctuation.separator.type-specifiers.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(integer|float|binary|bytes|bitstring|bits|utf8|utf16|utf32)|(signed|unsigned)|(big|little|native)|(unit)(:)((?:(?=($E$\\p{Nd}+))\\7))|(-)","dgv",{"useEmulationGroups":true})}]},keyword:{match:/\b(after|begin|case|catch|cond|end|fun|if|let|of|try|receive|when|maybe|else)\b/dgv,name:"keyword.control.erlang"},"language-constant":{match:/\b(false|true|undefined)\b/dgv,name:"constant.language"},list:{begin:/(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.list.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.list.end.erlang"}},name:"meta.structure.list.erlang",patterns:[{match:/\||\|\||,/dgv,name:"punctuation.separator.list.erlang"},{include:"#everything-else"}]},"macro-directive":{patterns:[{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.ifdef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(ifdef)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)((?:(?=($E$[a-zA-z\\p{Nd}\\@_]+))\\9))(?:(?=($E$\\p{space}*))\\10)(\\))(?:(?=($E$\\p{space}*))\\12)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.ifdef.erlang"},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.ifndef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(ifndef)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)((?:(?=($E$[a-zA-z\\p{Nd}\\@_]+))\\9))(?:(?=($E$\\p{space}*))\\10)(\\))(?:(?=($E$\\p{space}*))\\12)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.ifndef.erlang"},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.undef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(undef)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)((?:(?=($E$[a-zA-z\\p{Nd}\\@_]+))\\9))(?:(?=($E$\\p{space}*))\\10)(\\))(?:(?=($E$\\p{space}*))\\12)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.undef.erlang"}]},"macro-usage":{captures:{"1":{name:"keyword.operator.macro.erlang"},"2":{name:"entity.name.function.macro.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(\\?\\??)(?:(?=($E$\\p{space}*))\\2)((?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\4))","dgv",{"useEmulationGroups":true}),name:"meta.macro-usage.erlang"},"module-directive":{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.module.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.module.definition.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(module)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\9))(?:(?=($E$\\p{space}*))\\10)(\\))(?:(?=($E$\\p{space}*))\\12)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.module.erlang"},number:{begin:/(?=\p{Nd})/dgv,end:/(?!\p{Nd})/dgv,patterns:[{captures:{"1":{name:"punctuation.separator.integer-float.erlang"},"2":{name:"punctuation.separator.float-exponent.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=($E$\\p{Nd}+))\\1)(\\.)(?:(?=($E$\\p{Nd}+))\\3)([eE][\\+\\-]?(?:(?=($E$\\p{Nd}+))\\5))?","dgv",{"useEmulationGroups":true}),name:"constant.numeric.float.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("2(#)((?:(?=($E$[0-1]+))\\3)_)*(?:(?=($E$[0-1]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.binary.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("3(#)((?:(?=($E$[0-2]+))\\3)_)*(?:(?=($E$[0-2]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-3.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("4(#)((?:(?=($E$[0-3]+))\\3)_)*(?:(?=($E$[0-3]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-4.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("5(#)((?:(?=($E$[0-4]+))\\3)_)*(?:(?=($E$[0-4]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-5.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("6(#)((?:(?=($E$[0-5]+))\\3)_)*(?:(?=($E$[0-5]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-6.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("7(#)((?:(?=($E$[0-6]+))\\3)_)*(?:(?=($E$[0-6]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-7.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("8(#)((?:(?=($E$[0-7]+))\\3)_)*(?:(?=($E$[0-7]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.octal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("9(#)((?:(?=($E$[0-8]+))\\3)_)*(?:(?=($E$[0-8]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-9.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("10(#)((?:(?=($E$\\p{Nd}+))\\3)_)*(?:(?=($E$\\p{Nd}+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.decimal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("11(#)((?:(?=($E$[\\p{Nd}aA]+))\\3)_)*(?:(?=($E$[\\p{Nd}aA]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-11.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("12(#)((?:(?=($E$[\\p{Nd}a-bA-B]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-bA-B]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-12.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("13(#)((?:(?=($E$[\\p{Nd}a-cA-C]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-cA-C]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-13.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("14(#)((?:(?=($E$[\\p{Nd}a-dA-D]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-dA-D]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-14.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("15(#)((?:(?=($E$[\\p{Nd}a-eA-E]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-eA-E]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-15.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("16(#)((?:(?=($E$[\\p{Nd}a-fA-F]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-fA-F]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.hexadecimal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("17(#)((?:(?=($E$[\\p{Nd}a-gA-G]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-gA-G]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-17.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("18(#)((?:(?=($E$[\\p{Nd}a-hA-H]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-hA-H]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-18.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("19(#)((?:(?=($E$[\\p{Nd}a-iA-I]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-iA-I]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-19.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("20(#)((?:(?=($E$[\\p{Nd}a-jA-J]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-jA-J]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-20.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("21(#)((?:(?=($E$[\\p{Nd}a-kA-K]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-kA-K]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-21.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("22(#)((?:(?=($E$[\\p{Nd}a-lA-L]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-lA-L]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-22.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("23(#)((?:(?=($E$[\\p{Nd}a-mA-M]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-mA-M]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-23.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("24(#)((?:(?=($E$[\\p{Nd}a-nA-N]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-nA-N]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-24.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("25(#)((?:(?=($E$[\\p{Nd}a-oA-O]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-oA-O]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-25.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("26(#)((?:(?=($E$[\\p{Nd}a-pA-P]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-pA-P]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-26.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("27(#)((?:(?=($E$[\\p{Nd}a-qA-Q]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-qA-Q]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-27.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("28(#)((?:(?=($E$[\\p{Nd}a-rA-R]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-rA-R]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-28.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("29(#)((?:(?=($E$[\\p{Nd}a-sA-S]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-sA-S]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-29.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("30(#)((?:(?=($E$[\\p{Nd}a-tA-T]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-tA-T]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-30.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("31(#)((?:(?=($E$[\\p{Nd}a-uA-U]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-uA-U]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-31.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("32(#)((?:(?=($E$[\\p{Nd}a-vA-V]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-vA-V]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-32.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("33(#)((?:(?=($E$[\\p{Nd}a-wA-W]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-wA-W]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-33.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("34(#)((?:(?=($E$[\\p{Nd}a-xA-X]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-xA-X]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-34.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("35(#)((?:(?=($E$[\\p{Nd}a-yA-Y]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-yA-Y]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-35.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("36(#)((?:(?=($E$[\\p{Nd}a-zA-Z]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-zA-Z]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-36.erlang"},{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=($E$\\p{Nd}+))\\1)#((?:(?=($E$[\\p{Nd}a-zA-Z]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-zA-Z]+))\\4)","dgv",{"useEmulationGroups":true}),name:"invalid.illegal.integer.erlang"},{match:/*@__PURE__*/ new EmulatedRegExp("((?:(?=($E$\\p{Nd}+))\\2)_)*(?:(?=($E$\\p{Nd}+))\\3)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.decimal.erlang"}]},"parenthesized-expression":{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.section.expression.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.expression.end.erlang"}},name:"meta.expression.parenthesized",patterns:[{include:"#everything-else"}]},"record-directive":{begin:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(record)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\9)|'(?:(?=($E$[^']*))\\10)')(?:(?=($E$\\p{space}*))\\11)(,)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.import.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.record.definition.erlang"},"5":{name:"punctuation.separator.parameters.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.record.erlang",patterns:[{include:"#internal-record-body"},{include:"#comment"}]},"record-usage":{patterns:[{captures:{"1":{name:"keyword.operator.record.erlang"},"2":{name:"entity.name.type.class.record.erlang"},"3":{name:"punctuation.separator.record-field.erlang"},"4":{name:"variable.other.field.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(#)(?:(?=($E$\\p{space}*))\\2)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\4)|'(?:(?=($E$[^']*))\\5)')(?:(?=($E$\\p{space}*))\\6)(\\.)(?:(?=($E$\\p{space}*))\\8)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\10)|'(?:(?=($E$[^']*))\\11)')","dgv",{"useEmulationGroups":true}),name:"meta.record-usage.erlang"},{begin:/*@__PURE__*/ new EmulatedRegExp("(#)(?:(?=($E$\\p{space}*))\\2)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\4)|'(?:(?=($E$[^']*))\\5)')","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.operator.record.erlang"},"2":{name:"entity.name.type.class.record.erlang"}},end:/(?<=\})/dgv,name:"meta.record-usage.erlang",patterns:[{include:"#internal-record-body"}]}]},"sigil-docstring":{begin:/(~[bBsS]?)((["]{3,})\p{space}*)(\P{space}[^\n]*)?(?=$|\n)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"meta.string.quoted.triple.begin.erlang"},"3":{name:"punctuation.definition.string.begin.erlang"},"4":{name:"invalid.illegal.string.erlang"}},comment:"Only whitespace characters are allowed after the beggining and before the closing sequences and those cannot be in the same line",end:/(?<=^|\n(?!$))(\p{space}*(\3))(?!")()/dgv,endCaptures:{"1":{name:"meta.string.quoted.triple.end.erlang"},"2":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.tripple.sigil.erlang"},"sigil-string":{patterns:[{include:"#sigil-string-parenthesis"},{include:"#sigil-string-parenthesis-verbatim"},{include:"#sigil-string-curly-brackets"},{include:"#sigil-string-curly-brackets-verbatim"},{include:"#sigil-string-square-brackets"},{include:"#sigil-string-square-brackets-verbatim"},{include:"#sigil-string-less-greater"},{include:"#sigil-string-less-greater-verbatim"},{include:"#sigil-string-single-character"},{include:"#sigil-string-single-character-verbatim"},{include:"#sigil-string-single-quote"},{include:"#sigil-string-single-quote-verbatim"},{include:"#sigil-string-double-quote"},{include:"#sigil-string-double-quote-verbatim"}]},"sigil-string-curly-brackets":{begin:/(~[bs]?)([\{])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\}])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.curly-brackets.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-curly-brackets-verbatim":{begin:/(~[BS])([\{])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\}])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.curly-brackets.sigil.erlang"},"sigil-string-double-quote":{begin:/(~[bs]?)(")/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-double-quote-verbatim":{begin:/(~[BS])(")/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.sigil.erlang"},"sigil-string-less-greater":{begin:/(~[bs]?)(<)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.less-greater.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-less-greater-verbatim":{begin:/(~[BS])(<)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.less-greater.sigil.erlang"},"sigil-string-parenthesis":{begin:/(~[bs]?)([\(])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\)])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.parenthesis.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-parenthesis-verbatim":{begin:/(~[BS])([\(])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\)])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.parenthesis.sigil.erlang"},"sigil-string-single-character":{begin:/(~[bs]?)([\/\|\`\#])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.other.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-single-character-verbatim":{begin:/(~[BS])([\/\|\`\#])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.other.sigil.erlang"},"sigil-string-single-quote":{begin:/(~[bs]?)(')/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.single.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-single-quote-verbatim":{begin:/(~[BS])(')/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.single.sigil.erlang"},"sigil-string-square-brackets":{begin:/(~[bs]?)([\[])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\]])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.square-brackets.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-square-brackets-verbatim":{begin:/(~[BS])([\[])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\]])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.square-brackets.sigil.erlang"},string:{begin:/(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.erlang"}},end:/(")/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.erlang",patterns:[{include:"#internal-string-body"}]},"symbolic-operator":{match:/\+\+|\+|--|-|\*|\/=|\/|=\/=|=:=|==|=<|=|<-|<|>=|>|!|::|\?=/dgv,name:"keyword.operator.symbolic.erlang"},"textual-operator":{match:/\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\b/dgv,name:"keyword.operator.textual.erlang"},tuple:{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tuple.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.tuple.end.erlang"}},name:"meta.structure.tuple.erlang",patterns:[{match:/,/dgv,name:"punctuation.separator.tuple.erlang"},{include:"#everything-else"}]},variable:{captures:{"1":{name:"variable.other.erlang"},"2":{name:"variable.language.omitted.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\2)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\3))|(_)","dgv",{"useEmulationGroups":true})}},scopeName:"source.erlang",embeddedLangs:undefined,aliases:["erl"]})
|
|
3
|
+
const lang = Object.freeze({displayName:"Erlang",fileTypes:["erl","escript","hrl","xrl","yrl"],name:"erlang",patterns:[{include:"#module-directive"},{include:"#import-export-directive"},{include:"#behaviour-directive"},{include:"#record-directive"},{include:"#define-directive"},{include:"#macro-directive"},{include:"#directive"},{include:"#function"},{include:"#everything-else"}],repository:{atom:{patterns:[{begin:/(')/dgv,beginCaptures:{"1":{name:"punctuation.definition.symbol.begin.erlang"}},end:/(')/dgv,endCaptures:{"1":{name:"punctuation.definition.symbol.end.erlang"}},name:"constant.other.symbol.quoted.single.erlang",patterns:[{captures:{"1":{name:"punctuation.definition.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"}},match:/(\\)([bdefnrstv\\'"]|(\^)[\@-_a-z]|[0-7]{1,3}|x[\p{Nd}a-fA-F]{2})/dgv,name:"constant.other.symbol.escape.erlang"},{match:/\\\^?[^\n]?/dgv,name:"invalid.illegal.atom.erlang"}]},{match:/*@__PURE__*/ new EmulatedRegExp("[a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\1)","dgv",{"useEmulationGroups":true}),name:"constant.other.symbol.unquoted.erlang"}]},"behaviour-directive":{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.behaviour.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.behaviour.definition.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(behaviour)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\9))(?:(?=($E$\\p{space}*))\\10)(\\))(?:(?=($E$\\p{space}*))\\12)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.behaviour.erlang"},binary:{begin:/(<<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.binary.begin.erlang"}},end:/(>>)/dgv,endCaptures:{"1":{name:"punctuation.definition.binary.end.erlang"}},name:"meta.structure.binary.erlang",patterns:[{captures:{"1":{name:"punctuation.separator.binary.erlang"},"2":{name:"punctuation.separator.value-size.erlang"}},match:/(,)|(:)/dgv},{include:"#internal-type-specifiers"},{include:"#everything-else"}]},character:{patterns:[{captures:{"1":{name:"punctuation.definition.character.erlang"},"2":{name:"constant.character.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"},"5":{name:"punctuation.definition.escape.erlang"}},match:/(\$)((\\)([bdefnrstv\\'"]|(\^)[\@-_a-z]|[0-7]{1,3}|x[\p{Nd}a-fA-F]{2}))/dgv,name:"constant.character.erlang"},{match:/\$\\\^?[^\n]?/dgv,name:"invalid.illegal.character.erlang"},{captures:{"1":{name:"punctuation.definition.character.erlang"}},match:/(\$)[ \P{space}]/dgv,name:"constant.character.erlang"},{match:/\$[^\n]?/dgv,name:"invalid.illegal.character.erlang"}]},comment:{begin:/(^[ \t]+)?(?=%)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"search_start_clip"}),patterns:[{begin:/%/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.erlang"}},end:/\n/dgv,name:"comment.line.percentage.erlang"}]},"define-directive":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(define)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)((?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\9))(?:(?=($E$\\p{space}*))\\10)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.define.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.definition.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.define.erlang",patterns:[{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=^(?:(?=($E$\\p{space}*))\\1)-(?:(?=($E$\\p{space}*))\\2)define(?:(?=($E$\\p{space}*))\\3)\\((?:(?=($E$\\p{space}*))\\4)(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\5)(?:(?=($E$\\p{space}*))\\6)\\()","dgv",{"useEmulationGroups":true}),end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.define.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(define)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)((?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\9))(?:(?=($E$\\p{space}*))\\10)(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.define.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.definition.erlang"},"5":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(\))\p{space}*(,)/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.separator.parameters.erlang"}},patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{match:/\|\||\||:|;|,|\.|->/dgv,name:"punctuation.separator.define.erlang"},{include:"#everything-else"}]}]},directive:{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\5))(?:(?=($E$\\p{space}*))\\6)(\\(?)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\)?)(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.erlang",patterns:[{include:"#everything-else"}]},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.erlang"},"3":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\5))(?:(?=($E$\\p{space}*))\\6)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.erlang"}]},docstring:{begin:/(?<!")((["]{3,})\p{space}*)(\P{space}[^\n]*)?(?=\n?$)/dgv,beginCaptures:{"1":{name:"meta.string.quoted.triple.begin.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"},"3":{name:"invalid.illegal.string.erlang"}},comment:"Only whitespace characters are allowed after the beggining and before the closing sequences and those cannot be in the same line",end:/^(\p{space}*((?!)))(?!")/dgv,endCaptures:{"1":{name:"meta.string.quoted.triple.end.erlang"},"2":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.triple.erlang"},"everything-else":{patterns:[{include:"#comment"},{include:"#record-usage"},{include:"#macro-usage"},{include:"#expression"},{include:"#keyword"},{include:"#textual-operator"},{include:"#language-constant"},{include:"#function-call"},{include:"#tuple"},{include:"#list"},{include:"#binary"},{include:"#parenthesized-expression"},{include:"#character"},{include:"#number"},{include:"#atom"},{include:"#sigil-docstring"},{include:"#sigil-string"},{include:"#docstring"},{include:"#string"},{include:"#symbolic-operator"},{include:"#variable"}]},expression:{patterns:[{begin:/\b(if)\b/dgv,beginCaptures:{"1":{name:"keyword.control.if.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.if.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(case)\b/dgv,beginCaptures:{"1":{name:"keyword.control.case.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.case.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(receive)\b/dgv,beginCaptures:{"1":{name:"keyword.control.receive.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.receive.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{captures:{"1":{name:"keyword.control.fun.erlang"},"4":{name:"entity.name.type.class.module.erlang"},"5":{name:"variable.other.erlang"},"6":{name:"punctuation.separator.module-function.erlang"},"8":{name:"entity.name.function.erlang"},"9":{name:"variable.other.erlang"},"10":{name:"punctuation.separator.function-arity.erlang"}},comment:"Implicit function expression with optional module qualifier when both module and function can be atom or variable",match:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)\\p{space}+((([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\5))|(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\7)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\8)))(?:(?=($E$\\p{space}*))\\9)(:)(?:(?=($E$\\p{space}*))\\11))?(([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\14)|'(?:(?=($E$[^']*))\\15)')|(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\17)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\18)))\\p{space}*(/)","dgv",{"useEmulationGroups":true}),name:"meta.expression.fun.implicit.erlang"},{begin:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)\\p{space}+(([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\4))|(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\6)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\7)))(?:(?=($E$\\p{space}*))\\8)(:)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.fun.erlang"},"3":{name:"entity.name.type.class.module.erlang"},"4":{name:"variable.other.erlang"},"5":{name:"punctuation.separator.module-function.erlang"}},comment:"Implicit function expression with module qualifier when module can be atom or variable and function can by anything",end:/(\/)/dgv,endCaptures:{"1":{name:"punctuation.separator.function-arity.erlang"}},name:"meta.expression.fun.implicit.erlang",patterns:[{include:"#everything-else"}]},{begin:/\b(fun)\p{space}+(?!\()/dgv,beginCaptures:{"1":{name:"keyword.control.fun.erlang"}},comment:"Implicit function expression when both module and function can by anything",end:/(\/)/dgv,endCaptures:{"1":{name:"punctuation.separator.function-arity.erlang"}},name:"meta.expression.fun.implicit.erlang",patterns:[{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)(?:(?=($E$\\p{space}*))\\2)(\\()(?=((?:(?=($E$\\p{space}*))\\5)\\()|(\\)))","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"entity.name.function.erlang"},"2":{name:"punctuation.definition.parameters.begin.erlang"}},comment:"Function type in type specification",end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},patterns:[{include:"#everything-else"}]},{begin:/\b(fun)\b/dgv,beginCaptures:{"1":{name:"keyword.control.fun.erlang"}},comment:"Explicit function expression",end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.fun.erlang",patterns:[{begin:/(?=\()/dgv,end:/(;)|(?=\bend\b)/dgv,endCaptures:{"1":{name:"punctuation.separator.clauses.erlang"}},patterns:[{include:"#internal-function-parts"}]},{include:"#everything-else"}]},{begin:/\b(try)\b/dgv,beginCaptures:{"1":{name:"keyword.control.try.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.try.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(begin)\b/dgv,beginCaptures:{"1":{name:"keyword.control.begin.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.begin.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(maybe)\b/dgv,beginCaptures:{"1":{name:"keyword.control.maybe.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.maybe.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]}]},function:{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\3)|'(?:(?=($E$[^']*))\\4)')(?:(?=($E$\\p{space}*))\\5)(?=\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"entity.name.function.definition.erlang"}},end:/(\.)/dgv,endCaptures:{"1":{name:"punctuation.terminator.function.erlang"}},name:"meta.function.erlang",patterns:[{captures:{"1":{name:"entity.name.function.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\3)|'(?:(?=($E$[^']*))\\4)')(?:(?=($E$\\p{space}*))\\5)(?=\\()","dgv",{"useEmulationGroups":true})},{begin:/(?=\()/dgv,end:/(;)|(?=\.)/dgv,endCaptures:{"1":{name:"punctuation.separator.clauses.erlang"}},patterns:[{include:"#parenthesized-expression"},{include:"#internal-function-parts"}]},{include:"#everything-else"}]},"function-call":{begin:/*@__PURE__*/ new EmulatedRegExp("(?=([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\2)|'(?:(?=($E$[^']*))\\3)'|_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\4)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\5))(?:(?=($E$\\p{space}*))\\6)(\\(|:(?:(?=($E$\\p{space}*))\\8)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\10)|'(?:(?=($E$[^']*))\\11)'|_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\12)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\13))(?:(?=($E$\\p{space}*))\\14)\\())","dgv",{"useEmulationGroups":true}),end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},name:"meta.function-call.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("((erlang)(?:(?=($E$\\p{space}*))\\3)(:)(?:(?=($E$\\p{space}*))\\5))?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)(?:(?=($E$\\p{space}*))\\7)(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"2":{name:"entity.name.type.class.module.erlang"},"3":{name:"punctuation.separator.module-function.erlang"},"4":{name:"entity.name.function.guard.erlang"},"5":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(?=\))/dgv,patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("((([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\4)|'(?:(?=($E$[^']*))\\5)')|(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\7)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\8)))(?:(?=($E$\\p{space}*))\\9)(:)(?:(?=($E$\\p{space}*))\\11))?(([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\14)|'(?:(?=($E$[^']*))\\15)')|(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\17)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\18)))(?:(?=($E$\\p{space}*))\\19)(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"3":{name:"entity.name.type.class.module.erlang"},"4":{name:"variable.other.erlang"},"5":{name:"punctuation.separator.module-function.erlang"},"7":{name:"entity.name.function.erlang"},"8":{name:"variable.other.erlang"},"9":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(?=\))/dgv,patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]}]},"import-export-directive":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(import)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\9)|'(?:(?=($E$[^']*))\\10)')(?:(?=($E$\\p{space}*))\\11)(,)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.import.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.module.erlang"},"5":{name:"punctuation.separator.parameters.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.import.erlang",patterns:[{include:"#internal-function-list"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(export)(?:(?=($E$\\p{space}*))\\5)(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.export.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.export.erlang",patterns:[{include:"#internal-function-list"}]}]},"internal-expression-punctuation":{captures:{"1":{name:"punctuation.separator.clause-head-body.erlang"},"2":{name:"punctuation.separator.clauses.erlang"},"3":{name:"punctuation.separator.expressions.erlang"}},match:/(->)|(;)|(,)/dgv},"internal-function-list":{begin:/(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.list.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.list.end.erlang"}},name:"meta.structure.list.function.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\2)|'(?:(?=($E$[^']*))\\3)')(?:(?=($E$\\p{space}*))\\4)(/)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"entity.name.function.erlang"},"2":{name:"punctuation.separator.function-arity.erlang"}},end:/(,)|(?=\])/dgv,endCaptures:{"1":{name:"punctuation.separator.list.erlang"}},patterns:[{include:"#everything-else"}]},{include:"#everything-else"}]},"internal-function-parts":{patterns:[{begin:/(?=\()/dgv,end:/(->)/dgv,endCaptures:{"1":{name:"punctuation.separator.clause-head-body.erlang"}},patterns:[{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{match:/,|;/dgv,name:"punctuation.separator.guards.erlang"},{include:"#everything-else"}]},{match:/,/dgv,name:"punctuation.separator.expressions.erlang"},{include:"#everything-else"}]},"internal-record-body":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.class.record.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.class.record.end.erlang"}},name:"meta.structure.record.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\3)|'(?:(?=($E$[^']*))\\4)')|(_))","dgv",{"useEmulationGroups":true}),beginCaptures:{"2":{name:"variable.other.field.erlang"},"3":{name:"variable.language.omitted.field.erlang"}},end:/(,)|(?=\})/dgv,endCaptures:{"1":{name:"punctuation.separator.class.record.erlang"}},patterns:[{include:"#everything-else"}]},{include:"#everything-else"}]},"internal-string-body":{patterns:[{captures:{"1":{name:"punctuation.definition.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"}},comment:"escape sequence",match:/(\\)([bdefnrstv\\'"]|(\^)[\@-_a-z]|[0-7]{1,3}|x[\p{Nd}a-fA-F]{2})/dgv,name:"constant.character.escape.erlang"},{match:/\\\^?[^\n]?/dgv,name:"invalid.illegal.string.erlang"},{captures:{"1":{name:"punctuation.definition.placeholder.erlang"},"6":{name:"punctuation.separator.placeholder-parts.erlang"},"10":{name:"punctuation.separator.placeholder-parts.erlang"}},comment:"io:fwrite format control sequence",match:/*@__PURE__*/ new EmulatedRegExp("(~)((-)?(?:(?=($E$\\p{Nd}+))\\4)|(\\*))?((\\.)((?:(?=($E$\\p{Nd}+))\\9)|(\\*))?((\\.)((\\*)|[^\\n]))?)?[tlkK]*[\\~cfegswpWPBX\\#bx\\+ni]","dgv",{"useEmulationGroups":true}),name:"constant.character.format.placeholder.other.erlang"},{captures:{"1":{name:"punctuation.definition.placeholder.erlang"}},comment:"io:fread format control sequence",match:/*@__PURE__*/ new EmulatedRegExp("(~)(\\*)?((?:(?=($E$\\p{Nd}+))\\4))?(t)?[\\~du\\-\\#fsacl]","dgv",{"useEmulationGroups":true}),name:"constant.character.format.placeholder.other.erlang"},{match:/~[^"]?/dgv,name:"invalid.illegal.string.erlang"}]},"internal-type-specifiers":{begin:/(\/)/dgv,beginCaptures:{"1":{name:"punctuation.separator.value-type.erlang"}},end:/(?=,|:|>>)/dgv,patterns:[{captures:{"1":{name:"storage.type.erlang"},"2":{name:"storage.modifier.signedness.erlang"},"3":{name:"storage.modifier.endianness.erlang"},"4":{name:"storage.modifier.unit.erlang"},"5":{name:"punctuation.separator.unit-specifiers.erlang"},"6":{name:"constant.numeric.integer.decimal.erlang"},"7":{name:"punctuation.separator.type-specifiers.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(integer|float|binary|bytes|bitstring|bits|utf8|utf16|utf32)|(signed|unsigned)|(big|little|native)|(unit)(:)((?:(?=($E$\\p{Nd}+))\\7))|(-)","dgv",{"useEmulationGroups":true})}]},keyword:{match:/\b(after|begin|case|catch|cond|end|fun|if|let|of|try|receive|when|maybe|else)\b/dgv,name:"keyword.control.erlang"},"language-constant":{match:/\b(false|true|undefined)\b/dgv,name:"constant.language"},list:{begin:/(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.list.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.list.end.erlang"}},name:"meta.structure.list.erlang",patterns:[{match:/\||\|\||,/dgv,name:"punctuation.separator.list.erlang"},{include:"#everything-else"}]},"macro-directive":{patterns:[{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.ifdef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(ifdef)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)((?:(?=($E$[a-zA-z\\p{Nd}\\@_]+))\\9))(?:(?=($E$\\p{space}*))\\10)(\\))(?:(?=($E$\\p{space}*))\\12)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.ifdef.erlang"},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.ifndef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(ifndef)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)((?:(?=($E$[a-zA-z\\p{Nd}\\@_]+))\\9))(?:(?=($E$\\p{space}*))\\10)(\\))(?:(?=($E$\\p{space}*))\\12)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.ifndef.erlang"},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.undef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(undef)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)((?:(?=($E$[a-zA-z\\p{Nd}\\@_]+))\\9))(?:(?=($E$\\p{space}*))\\10)(\\))(?:(?=($E$\\p{space}*))\\12)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.undef.erlang"}]},"macro-usage":{captures:{"1":{name:"keyword.operator.macro.erlang"},"2":{name:"entity.name.function.macro.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(\\?\\??)(?:(?=($E$\\p{space}*))\\2)((?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\4))","dgv",{"useEmulationGroups":true}),name:"meta.macro-usage.erlang"},"module-directive":{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.module.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.module.definition.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(module)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\9))(?:(?=($E$\\p{space}*))\\10)(\\))(?:(?=($E$\\p{space}*))\\12)(\\.)","dgv",{"useEmulationGroups":true}),name:"meta.directive.module.erlang"},number:{begin:/(?=\p{Nd})/dgv,end:/(?!\p{Nd})/dgv,patterns:[{captures:{"1":{name:"punctuation.separator.integer-float.erlang"},"2":{name:"punctuation.separator.float-exponent.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=($E$\\p{Nd}+))\\1)(\\.)(?:(?=($E$\\p{Nd}+))\\3)([eE][\\+\\-]?(?:(?=($E$\\p{Nd}+))\\5))?","dgv",{"useEmulationGroups":true}),name:"constant.numeric.float.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("2(#)((?:(?=($E$[0-1]+))\\3)_)*(?:(?=($E$[0-1]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.binary.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("3(#)((?:(?=($E$[0-2]+))\\3)_)*(?:(?=($E$[0-2]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-3.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("4(#)((?:(?=($E$[0-3]+))\\3)_)*(?:(?=($E$[0-3]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-4.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("5(#)((?:(?=($E$[0-4]+))\\3)_)*(?:(?=($E$[0-4]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-5.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("6(#)((?:(?=($E$[0-5]+))\\3)_)*(?:(?=($E$[0-5]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-6.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("7(#)((?:(?=($E$[0-6]+))\\3)_)*(?:(?=($E$[0-6]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-7.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("8(#)((?:(?=($E$[0-7]+))\\3)_)*(?:(?=($E$[0-7]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.octal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("9(#)((?:(?=($E$[0-8]+))\\3)_)*(?:(?=($E$[0-8]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-9.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("10(#)((?:(?=($E$\\p{Nd}+))\\3)_)*(?:(?=($E$\\p{Nd}+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.decimal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("11(#)((?:(?=($E$[\\p{Nd}aA]+))\\3)_)*(?:(?=($E$[\\p{Nd}aA]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-11.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("12(#)((?:(?=($E$[\\p{Nd}a-bA-B]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-bA-B]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-12.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("13(#)((?:(?=($E$[\\p{Nd}a-cA-C]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-cA-C]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-13.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("14(#)((?:(?=($E$[\\p{Nd}a-dA-D]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-dA-D]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-14.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("15(#)((?:(?=($E$[\\p{Nd}a-eA-E]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-eA-E]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-15.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("16(#)((?:(?=($E$[\\p{Nd}a-fA-F]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-fA-F]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.hexadecimal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("17(#)((?:(?=($E$[\\p{Nd}a-gA-G]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-gA-G]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-17.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("18(#)((?:(?=($E$[\\p{Nd}a-hA-H]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-hA-H]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-18.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("19(#)((?:(?=($E$[\\p{Nd}a-iA-I]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-iA-I]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-19.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("20(#)((?:(?=($E$[\\p{Nd}a-jA-J]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-jA-J]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-20.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("21(#)((?:(?=($E$[\\p{Nd}a-kA-K]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-kA-K]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-21.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("22(#)((?:(?=($E$[\\p{Nd}a-lA-L]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-lA-L]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-22.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("23(#)((?:(?=($E$[\\p{Nd}a-mA-M]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-mA-M]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-23.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("24(#)((?:(?=($E$[\\p{Nd}a-nA-N]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-nA-N]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-24.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("25(#)((?:(?=($E$[\\p{Nd}a-oA-O]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-oA-O]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-25.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("26(#)((?:(?=($E$[\\p{Nd}a-pA-P]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-pA-P]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-26.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("27(#)((?:(?=($E$[\\p{Nd}a-qA-Q]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-qA-Q]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-27.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("28(#)((?:(?=($E$[\\p{Nd}a-rA-R]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-rA-R]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-28.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("29(#)((?:(?=($E$[\\p{Nd}a-sA-S]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-sA-S]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-29.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("30(#)((?:(?=($E$[\\p{Nd}a-tA-T]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-tA-T]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-30.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("31(#)((?:(?=($E$[\\p{Nd}a-uA-U]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-uA-U]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-31.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("32(#)((?:(?=($E$[\\p{Nd}a-vA-V]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-vA-V]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-32.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("33(#)((?:(?=($E$[\\p{Nd}a-wA-W]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-wA-W]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-33.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("34(#)((?:(?=($E$[\\p{Nd}a-xA-X]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-xA-X]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-34.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("35(#)((?:(?=($E$[\\p{Nd}a-yA-Y]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-yA-Y]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-35.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("36(#)((?:(?=($E$[\\p{Nd}a-zA-Z]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-zA-Z]+))\\4)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.base-36.erlang"},{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=($E$\\p{Nd}+))\\1)#((?:(?=($E$[\\p{Nd}a-zA-Z]+))\\3)_)*(?:(?=($E$[\\p{Nd}a-zA-Z]+))\\4)","dgv",{"useEmulationGroups":true}),name:"invalid.illegal.integer.erlang"},{match:/*@__PURE__*/ new EmulatedRegExp("((?:(?=($E$\\p{Nd}+))\\2)_)*(?:(?=($E$\\p{Nd}+))\\3)","dgv",{"useEmulationGroups":true}),name:"constant.numeric.integer.decimal.erlang"}]},"parenthesized-expression":{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.section.expression.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.expression.end.erlang"}},name:"meta.expression.parenthesized",patterns:[{include:"#everything-else"}]},"record-directive":{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=($E$\\p{space}*))\\1)(-)(?:(?=($E$\\p{space}*))\\3)(record)(?:(?=($E$\\p{space}*))\\5)(\\()(?:(?=($E$\\p{space}*))\\7)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\9)|'(?:(?=($E$[^']*))\\10)')(?:(?=($E$\\p{space}*))\\11)(,)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.import.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.record.definition.erlang"},"5":{name:"punctuation.separator.parameters.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=($E$\\p{space}*))\\2)(\\.)","dgv",{"useEmulationGroups":true}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.record.erlang",patterns:[{include:"#internal-record-body"},{include:"#comment"}]},"record-usage":{patterns:[{captures:{"1":{name:"keyword.operator.record.erlang"},"2":{name:"entity.name.type.class.record.erlang"},"3":{name:"punctuation.separator.record-field.erlang"},"4":{name:"variable.other.field.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(#)(?:(?=($E$\\p{space}*))\\2)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\4)|'(?:(?=($E$[^']*))\\5)')(?:(?=($E$\\p{space}*))\\6)(\\.)(?:(?=($E$\\p{space}*))\\8)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\10)|'(?:(?=($E$[^']*))\\11)')","dgv",{"useEmulationGroups":true}),name:"meta.record-usage.erlang"},{begin:/*@__PURE__*/ new EmulatedRegExp("(#)(?:(?=($E$\\p{space}*))\\2)([a-z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\4)|'(?:(?=($E$[^']*))\\5)')","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.operator.record.erlang"},"2":{name:"entity.name.type.class.record.erlang"}},end:/(?<=\})/dgv,name:"meta.record-usage.erlang",patterns:[{include:"#internal-record-body"}]}]},"sigil-docstring":{begin:/(~[bBsS]?)((["]{3,})\p{space}*)(\P{space}[^\n]*)?(?=\n?$)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"meta.string.quoted.triple.begin.erlang"},"3":{name:"punctuation.definition.string.begin.erlang"},"4":{name:"invalid.illegal.string.erlang"}},comment:"Only whitespace characters are allowed after the beggining and before the closing sequences and those cannot be in the same line",end:/^(\p{space}*(\3))(?!")()/dgv,endCaptures:{"1":{name:"meta.string.quoted.triple.end.erlang"},"2":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.tripple.sigil.erlang"},"sigil-string":{patterns:[{include:"#sigil-string-parenthesis"},{include:"#sigil-string-parenthesis-verbatim"},{include:"#sigil-string-curly-brackets"},{include:"#sigil-string-curly-brackets-verbatim"},{include:"#sigil-string-square-brackets"},{include:"#sigil-string-square-brackets-verbatim"},{include:"#sigil-string-less-greater"},{include:"#sigil-string-less-greater-verbatim"},{include:"#sigil-string-single-character"},{include:"#sigil-string-single-character-verbatim"},{include:"#sigil-string-single-quote"},{include:"#sigil-string-single-quote-verbatim"},{include:"#sigil-string-double-quote"},{include:"#sigil-string-double-quote-verbatim"}]},"sigil-string-curly-brackets":{begin:/(~[bs]?)([\{])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\}])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.curly-brackets.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-curly-brackets-verbatim":{begin:/(~[BS])([\{])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\}])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.curly-brackets.sigil.erlang"},"sigil-string-double-quote":{begin:/(~[bs]?)(")/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-double-quote-verbatim":{begin:/(~[BS])(")/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.sigil.erlang"},"sigil-string-less-greater":{begin:/(~[bs]?)(<)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.less-greater.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-less-greater-verbatim":{begin:/(~[BS])(<)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.less-greater.sigil.erlang"},"sigil-string-parenthesis":{begin:/(~[bs]?)([\(])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\)])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.parenthesis.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-parenthesis-verbatim":{begin:/(~[BS])([\(])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\)])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.parenthesis.sigil.erlang"},"sigil-string-single-character":{begin:/(~[bs]?)([\/\|\`\#])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.other.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-single-character-verbatim":{begin:/(~[BS])([\/\|\`\#])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.other.sigil.erlang"},"sigil-string-single-quote":{begin:/(~[bs]?)(')/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.single.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-single-quote-verbatim":{begin:/(~[BS])(')/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.single.sigil.erlang"},"sigil-string-square-brackets":{begin:/(~[bs]?)([\[])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\]])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.square-brackets.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-square-brackets-verbatim":{begin:/(~[BS])([\[])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/([\]])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.square-brackets.sigil.erlang"},string:{begin:/(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.erlang"}},end:/(")/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.erlang",patterns:[{include:"#internal-string-body"}]},"symbolic-operator":{match:/\+\+|\+|--|-|\*|\/=|\/|=\/=|=:=|==|=<|=|<-|<|>=|>|!|::|\?=/dgv,name:"keyword.operator.symbolic.erlang"},"textual-operator":{match:/\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\b/dgv,name:"keyword.operator.textual.erlang"},tuple:{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tuple.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.tuple.end.erlang"}},name:"meta.structure.tuple.erlang",patterns:[{match:/,/dgv,name:"punctuation.separator.tuple.erlang"},{include:"#everything-else"}]},variable:{captures:{"1":{name:"variable.other.erlang"},"2":{name:"variable.language.omitted.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(_(?:(?=($E$[a-zA-Z\\p{Nd}\\@_]+))\\2)|[A-Z](?:(?=($E$[a-zA-Z\\p{Nd}\\@_]*))\\3))|(_)","dgv",{"useEmulationGroups":true})}},scopeName:"source.erlang",embeddedLangs:undefined,aliases:["erl"]})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/es-tag-css.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import typescript from './typescript.mjs'
|
|
|
2
2
|
import css from './css.mjs'
|
|
3
3
|
import javascript from './javascript.mjs'
|
|
4
4
|
|
|
5
|
-
const lang = Object.freeze({fileTypes:["js","jsx","ts","tsx","html","vue","svelte","php","res"],injectTo:["source.ts","source.js"],injectionSelector:"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string, L:source.vue -comment -string, L:source.svelte -comment -string, L:source.php -comment -string, L:source.rescript -comment -string",injections:{"L:source":{patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"es-tag-css",patterns:[{begin:/(\p{space}?\/\*\p{space}?(css|inline-css)\p{space}?\*\/\p{space}?)(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.css"},{include:"inline.es6-htmlx#template"}]},{begin:/(\p{space}*(css|inline-css))(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.css"},{include:"inline.es6-htmlx#template"},{include:"string.quoted.other.template.js"}]},{begin:/(?<=\p{space}|,|=|:|\(|\$\()\p{space}*(((\/\*)|(\/\/))\p{space}?(css|inline-css)[ ]{0,1000}\*?\/?)[ ]{0,1000}(
|
|
5
|
+
const lang = Object.freeze({fileTypes:["js","jsx","ts","tsx","html","vue","svelte","php","res"],injectTo:["source.ts","source.js"],injectionSelector:"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string, L:source.vue -comment -string, L:source.svelte -comment -string, L:source.php -comment -string, L:source.rescript -comment -string",injections:{"L:source":{patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"es-tag-css",patterns:[{begin:/(\p{space}?\/\*\p{space}?(css|inline-css)\p{space}?\*\/\p{space}?)(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.css"},{include:"inline.es6-htmlx#template"}]},{begin:/(\p{space}*(css|inline-css))(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.css"},{include:"inline.es6-htmlx#template"},{include:"string.quoted.other.template.js"}]},{begin:/(?<=\p{space}|,|=|:|\(|\$\()\p{space}*(((\/\*)|(\/\/))\p{space}?(css|inline-css)[ ]{0,1000}\*?\/?)[ ]{0,1000}(?=\n?$)/dgiv,beginCaptures:{"1":{name:"comment.line"}},end:/(`)[^\n]*/dgv,patterns:[{begin:/()/dgvy,end:/(`)/dgv},{include:"source.ts#template-substitution-element"},{include:"source.css"}]},{begin:/(\$\{)/dgv,beginCaptures:{"1":{name:"entity.name.tag"}},end:/(\})/dgv,endCaptures:{"1":{name:"entity.name.tag"}},patterns:[{include:"source.ts#template-substitution-element"},{include:"source.js"}]}],scopeName:"inline.es6-css",displayName:undefined,embeddedLangs:["typescript","css","javascript"],aliases:undefined})
|
|
6
6
|
|
|
7
7
|
export default [
|
|
8
8
|
...typescript,
|
package/dist/es-tag-glsl.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import typescript from './typescript.mjs'
|
|
|
2
2
|
import glsl from './glsl.mjs'
|
|
3
3
|
import javascript from './javascript.mjs'
|
|
4
4
|
|
|
5
|
-
const lang = Object.freeze({fileTypes:["js","jsx","ts","tsx","html","vue","svelte","php","res"],injectTo:["source.ts","source.js"],injectionSelector:"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",injections:{"L:source":{patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"es-tag-glsl",patterns:[{begin:/(\p{space}?\/\*\p{space}?(glsl|inline-glsl)\p{space}?\*\/\p{space}?)(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.glsl"},{include:"inline.es6-htmlx#template"}]},{begin:/(\p{space}*(glsl|inline-glsl))(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.glsl"},{include:"inline.es6-htmlx#template"},{include:"string.quoted.other.template.js"}]},{begin:/(?<=\p{space}|,|=|:|\(|\$\()\p{space}*(((\/\*)|(\/\/))\p{space}?(glsl|inline-glsl)[ ]{0,1000}\*?\/?)[ ]{0,1000}(
|
|
5
|
+
const lang = Object.freeze({fileTypes:["js","jsx","ts","tsx","html","vue","svelte","php","res"],injectTo:["source.ts","source.js"],injectionSelector:"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",injections:{"L:source":{patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"es-tag-glsl",patterns:[{begin:/(\p{space}?\/\*\p{space}?(glsl|inline-glsl)\p{space}?\*\/\p{space}?)(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.glsl"},{include:"inline.es6-htmlx#template"}]},{begin:/(\p{space}*(glsl|inline-glsl))(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.glsl"},{include:"inline.es6-htmlx#template"},{include:"string.quoted.other.template.js"}]},{begin:/(?<=\p{space}|,|=|:|\(|\$\()\p{space}*(((\/\*)|(\/\/))\p{space}?(glsl|inline-glsl)[ ]{0,1000}\*?\/?)[ ]{0,1000}(?=\n?$)/dgiv,beginCaptures:{"1":{name:"comment.line"}},end:/(`)[^\n]*/dgv,patterns:[{begin:/()/dgvy,end:/(`)/dgv},{include:"source.ts#template-substitution-element"},{include:"source.glsl"}]},{begin:/(\$\{)/dgv,beginCaptures:{"1":{name:"entity.name.tag"}},end:/(\})/dgv,endCaptures:{"1":{name:"entity.name.tag"}},patterns:[{include:"source.ts#template-substitution-element"},{include:"source.js"}]}],scopeName:"inline.es6-glsl",displayName:undefined,embeddedLangs:["typescript","glsl","javascript"],aliases:undefined})
|
|
6
6
|
|
|
7
7
|
export default [
|
|
8
8
|
...typescript,
|
package/dist/es-tag-html.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import typescript from './typescript.mjs'
|
|
|
2
2
|
import html from './html.mjs'
|
|
3
3
|
import javascript from './javascript.mjs'
|
|
4
4
|
|
|
5
|
-
const lang = Object.freeze({fileTypes:["js","jsx","ts","tsx","html","vue","svelte","php","res"],injectTo:["source.ts","source.js"],injectionSelector:"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",injections:{"L:source":{patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"es-tag-html",patterns:[{begin:/(\p{space}?\/\*\p{space}?(html|template|inline-html|inline-template)\p{space}?\*\/\p{space}?)(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"text.html.basic"},{include:"inline.es6-htmlx#template"}]},{begin:/(\p{space}*(html|template|inline-html|inline-template))(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"text.html.basic"},{include:"inline.es6-htmlx#template"},{include:"string.quoted.other.template.js"}]},{begin:/(?<=\p{space}|,|=|:|\(|\$\()\p{space}*(((\/\*)|(\/\/))\p{space}?(html|template|inline-html|inline-template)[ ]{0,1000}\*?\/?)[ ]{0,1000}(
|
|
5
|
+
const lang = Object.freeze({fileTypes:["js","jsx","ts","tsx","html","vue","svelte","php","res"],injectTo:["source.ts","source.js"],injectionSelector:"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",injections:{"L:source":{patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"es-tag-html",patterns:[{begin:/(\p{space}?\/\*\p{space}?(html|template|inline-html|inline-template)\p{space}?\*\/\p{space}?)(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"text.html.basic"},{include:"inline.es6-htmlx#template"}]},{begin:/(\p{space}*(html|template|inline-html|inline-template))(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"text.html.basic"},{include:"inline.es6-htmlx#template"},{include:"string.quoted.other.template.js"}]},{begin:/(?<=\p{space}|,|=|:|\(|\$\()\p{space}*(((\/\*)|(\/\/))\p{space}?(html|template|inline-html|inline-template)[ ]{0,1000}\*?\/?)[ ]{0,1000}(?=\n?$)/dgiv,beginCaptures:{"1":{name:"comment.line"}},end:/(`)[^\n]*/dgv,patterns:[{begin:/()/dgvy,end:/(`)/dgv},{include:"source.ts#template-substitution-element"},{include:"text.html.basic"}]},{begin:/(\$\{)/dgv,beginCaptures:{"1":{name:"entity.name.tag"}},end:/(\})/dgv,endCaptures:{"1":{name:"entity.name.tag"}},patterns:[{include:"source.ts#template-substitution-element"},{include:"source.js"}]},{begin:/(\$\(`)/dgv,beginCaptures:{"1":{name:"entity.name.tag"}},end:/(`\))/dgv,endCaptures:{"1":{name:"entity.name.tag"}},patterns:[{include:"source.ts#template-substitution-element"},{include:"source.js"}]}],scopeName:"inline.es6-html",displayName:undefined,embeddedLangs:["typescript","html","javascript"],aliases:undefined})
|
|
6
6
|
|
|
7
7
|
export default [
|
|
8
8
|
...typescript,
|
package/dist/es-tag-sql.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import typescript from './typescript.mjs'
|
|
2
2
|
import sql from './sql.mjs'
|
|
3
3
|
|
|
4
|
-
const lang = Object.freeze({fileTypes:["js","jsx","ts","tsx","html","vue","svelte","php","res"],injectTo:["source.ts","source.js"],injectionSelector:"L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",injections:{"L:source":{patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"es-tag-sql",patterns:[{begin:/\b([\p{L}\p{M}\p{N}\p{Pc}]+\.sql)\p{space}*(`)/dgiv,beginCaptures:{"1":{name:"variable.parameter"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.ts#string-character-escape"},{include:"source.sql"},{include:"source.plpgsql.postgres"},{match:/[^\n]/dgv}]},{begin:/(\p{space}?\/?\*?\p{space}?(sql|inline-sql)\p{space}?\*?\/?\p{space}?)(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.ts#string-character-escape"},{include:"source.sql"},{include:"source.plpgsql.postgres"},{match:/[^\n]/dgv}]},{begin:/(?<=\p{space}|,|=|:|\(|\$\()\p{space}*(((\/\*)|(\/\/))\p{space}?(sql|inline-sql)[ ]{0,1000}\*?\/?)[ ]{0,1000}(
|
|
4
|
+
const lang = Object.freeze({fileTypes:["js","jsx","ts","tsx","html","vue","svelte","php","res"],injectTo:["source.ts","source.js"],injectionSelector:"L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",injections:{"L:source":{patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"es-tag-sql",patterns:[{begin:/\b([\p{L}\p{M}\p{N}\p{Pc}]+\.sql)\p{space}*(`)/dgiv,beginCaptures:{"1":{name:"variable.parameter"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.ts#string-character-escape"},{include:"source.sql"},{include:"source.plpgsql.postgres"},{match:/[^\n]/dgv}]},{begin:/(\p{space}?\/?\*?\p{space}?(sql|inline-sql)\p{space}?\*?\/?\p{space}?)(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"source.ts#template-substitution-element"},{include:"source.ts#string-character-escape"},{include:"source.sql"},{include:"source.plpgsql.postgres"},{match:/[^\n]/dgv}]},{begin:/(?<=\p{space}|,|=|:|\(|\$\()\p{space}*(((\/\*)|(\/\/))\p{space}?(sql|inline-sql)[ ]{0,1000}\*?\/?)[ ]{0,1000}(?=\n?$)/dgiv,beginCaptures:{"1":{name:"comment.line"}},end:/(`)/dgv,patterns:[{begin:/()/dgvy,end:/(`)/dgv},{include:"source.ts#template-substitution-element"},{include:"source.ts#string-character-escape"},{include:"source.sql"},{include:"source.plpgsql.postgres"},{match:/[^\n]/dgv}]}],scopeName:"inline.es6-sql",displayName:undefined,embeddedLangs:["typescript","sql"],aliases:undefined})
|
|
5
5
|
|
|
6
6
|
export default [
|
|
7
7
|
...typescript,
|
package/dist/es-tag-xml.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import xml from './xml.mjs'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({fileTypes:["js","jsx","ts","tsx","html","vue","svelte","php","res"],injectTo:["source.ts","source.js"],injectionSelector:"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",injections:{"L:source":{patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"es-tag-xml",patterns:[{begin:/(\p{space}?\/\*\p{space}?(xml|svg|inline-svg|inline-xml)\p{space}?\*\/\p{space}?)(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"text.xml"}]},{begin:/(\p{space}*(xml|inline-xml))(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"text.xml"}]},{begin:/(?<=\p{space}|,|=|:|\(|\$\()\p{space}*(((\/\*)|(\/\/))\p{space}?(xml|svg|inline-svg|inline-xml)[ ]{0,1000}\*?\/?)[ ]{0,1000}(
|
|
3
|
+
const lang = Object.freeze({fileTypes:["js","jsx","ts","tsx","html","vue","svelte","php","res"],injectTo:["source.ts","source.js"],injectionSelector:"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",injections:{"L:source":{patterns:[{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}]}},name:"es-tag-xml",patterns:[{begin:/(\p{space}?\/\*\p{space}?(xml|svg|inline-svg|inline-xml)\p{space}?\*\/\p{space}?)(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"text.xml"}]},{begin:/(\p{space}*(xml|inline-xml))(`)/dgiv,beginCaptures:{"1":{name:"comment.block"}},end:/(`)/dgv,patterns:[{include:"text.xml"}]},{begin:/(?<=\p{space}|,|=|:|\(|\$\()\p{space}*(((\/\*)|(\/\/))\p{space}?(xml|svg|inline-svg|inline-xml)[ ]{0,1000}\*?\/?)[ ]{0,1000}(?=\n?$)/dgiv,beginCaptures:{"1":{name:"comment.line"}},end:/(`)[^\n]*/dgv,patterns:[{begin:/()/dgvy,end:/(`)/dgv},{include:"text.xml"}]}],scopeName:"inline.es6-xml",displayName:undefined,embeddedLangs:["xml"],aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...xml,
|
package/dist/fennel.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Fennel",name:"fennel",patterns:[{include:"#expression"}],repository:{comment:{patterns:[{begin:/;/dgv,end:/(
|
|
1
|
+
const lang = Object.freeze({displayName:"Fennel",name:"fennel",patterns:[{include:"#expression"}],repository:{comment:{patterns:[{begin:/;/dgv,end:/(?=\n?$)/dgv,name:"comment.line.semicolon.fennel"}]},constants:{patterns:[{match:/nil/dgv,name:"constant.language.nil.fennel"},{match:/false|true/dgv,name:"constant.language.boolean.fennel"},{match:/(-?\p{Nd}+\.\p{Nd}+([eE][\+\-]?\p{Nd}+)?)/dgv,name:"constant.numeric.double.fennel"},{match:/(-?\p{Nd}+)/dgv,name:"constant.numeric.integer.fennel"}]},expression:{patterns:[{include:"#comment"},{include:"#constants"},{include:"#sexp"},{include:"#table"},{include:"#vector"},{include:"#keywords"},{include:"#special"},{include:"#lua"},{include:"#strings"},{include:"#methods"},{include:"#symbols"}]},keywords:{match:/:[^ ]+/dgv,name:"constant.keyword.fennel"},lua:{patterns:[{match:/\b(assert|collectgarbage|dofile|error|getmetatable|ipairs|load|loadfile|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setmetatable|tonumber|tostring|type|xpcall)\b/dgv,name:"support.function.fennel"},{match:/\b(coroutine|coroutine[^\n]create|coroutine[^\n]isyieldable|coroutine[^\n]resume|coroutine[^\n]running|coroutine[^\n]status|coroutine[^\n]wrap|coroutine[^\n]yield|debug|debug[^\n]debug|debug[^\n]gethook|debug[^\n]getinfo|debug[^\n]getlocal|debug[^\n]getmetatable|debug[^\n]getregistry|debug[^\n]getupvalue|debug[^\n]getuservalue|debug[^\n]sethook|debug[^\n]setlocal|debug[^\n]setmetatable|debug[^\n]setupvalue|debug[^\n]setuservalue|debug[^\n]traceback|debug[^\n]upvalueid|debug[^\n]upvaluejoin|io|io[^\n]close|io[^\n]flush|io[^\n]input|io[^\n]lines|io[^\n]open|io[^\n]output|io[^\n]popen|io[^\n]read|io[^\n]stderr|io[^\n]stdin|io[^\n]stdout|io[^\n]tmpfile|io[^\n]type|io[^\n]write|math|math[^\n]abs|math[^\n]acos|math[^\n]asin|math[^\n]atan|math[^\n]ceil|math[^\n]cos|math[^\n]deg|math[^\n]exp|math[^\n]floor|math[^\n]fmod|math[^\n]huge|math[^\n]log|math[^\n]max|math[^\n]maxinteger|math[^\n]min|math[^\n]mininteger|math[^\n]modf|math[^\n]pi|math[^\n]rad|math[^\n]random|math[^\n]randomseed|math[^\n]sin|math[^\n]sqrt|math[^\n]tan|math[^\n]tointeger|math[^\n]type|math[^\n]ult|os|os[^\n]clock|os[^\n]date|os[^\n]difftime|os[^\n]execute|os[^\n]exit|os[^\n]getenv|os[^\n]remove|os[^\n]rename|os[^\n]setlocale|os[^\n]time|os[^\n]tmpname|package|package[^\n]config|package[^\n]cpath|package[^\n]loaded|package[^\n]loadlib|package[^\n]path|package[^\n]preload|package[^\n]searchers|package[^\n]searchpath|string|string[^\n]byte|string[^\n]char|string[^\n]dump|string[^\n]find|string[^\n]format|string[^\n]gmatch|string[^\n]gsub|string[^\n]len|string[^\n]lower|string[^\n]match|string[^\n]pack|string[^\n]packsize|string[^\n]rep|string[^\n]reverse|string[^\n]sub|string[^\n]unpack|string[^\n]upper|table|table[^\n]concat|table[^\n]insert|table[^\n]move|table[^\n]pack|table[^\n]remove|table[^\n]sort|table[^\n]unpack|utf8|utf8[^\n]char|utf8[^\n]charpattern|utf8[^\n]codepoint|utf8[^\n]codes|utf8[^\n]len|utf8[^\n]offset)\b/dgv,name:"support.function.library.fennel"},{match:/\b(_G|_VERSION)\b/dgv,name:"constant.language.fennel"}]},methods:{patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}]+:[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.method.fennel"}]},sexp:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.paren.open.fennel"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.paren.close.fennel"}},name:"sexp.fennel",patterns:[{include:"#expression"}]},special:{patterns:[{match:/#|%|\+|\*|[\?][\.]|(\.)?\.|(\/)?\/|:|<=?|=|>=?|\^/dgv,name:"keyword.special.fennel"},{match:/(->(>)?)/dgv,name:"keyword.special.fennel"},{match:/-\?>(>)?/dgv,name:"keyword.special.fennel"},{match:/-/dgv,name:"keyword.special.fennel"},{match:/not=/dgv,name:"keyword.special.fennel"},{match:/set-forcibly!/dgv,name:"keyword.special.fennel"},{match:/\b(and|band|bnot|bor|bxor|collect|comment|do|doc|doto|each|eval-compiler|for|global|hashfn|icollect|if|import-macros|include|lambda|length|let|local|lshift|lua|macro|macrodebug|macros|match|not=?|or|partial|pick-args|pick-values|quote|require-macros|rshift|set|tset|values|var|when|while|with-open)\b/dgv,name:"keyword.special.fennel"},{match:/\b(fn)\b/dgv,name:"keyword.control.fennel"},{match:/~=/dgv,name:"keyword.special.fennel"},{match:/λ/dgv,name:"keyword.special.fennel"}]},strings:{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.fennel",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.fennel"}]},symbols:{patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}]+(?:\.[\p{L}\p{M}\p{N}\p{Pc}]+)+/dgv,name:"entity.name.function.symbol.fennel"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.fennel"}]},table:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.table.bracket.open.fennel"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.table.bracket.close.fennel"}},name:"table.fennel",patterns:[{include:"#expression"}]},vector:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.vector.bracket.open.fennel"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.vector.bracket.close.fennel"}},name:"meta.vector.fennel",patterns:[{include:"#expression"}]}},scopeName:"source.fnl",embeddedLangs:undefined,aliases:undefined})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/fish.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Fish",fileTypes:["fish"],firstLineMatch
|
|
1
|
+
const lang = Object.freeze({displayName:"Fish",fileTypes:["fish"],firstLineMatch:/^#![^\n]*\bfish\b/dgv,foldingStartMarker:/^\p{space}*(function|while|if|switch|for|begin)\p{space}[^\n]*(?=\n?$)/dgv,foldingStopMarker:/^\p{space}*end\p{space}*(?=\n?$)/dgv,name:"fish",patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.fish"}},comment:"Double quoted string",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.fish"}},name:"string.quoted.double.fish",patterns:[{include:"#variable"},{comment:"https://fishshell.com/docs/current/#quotes",match:/\\("|\$|(?=\n?$)|\\)/dgv,name:"constant.character.escape.fish"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.fish"}},comment:"Single quoted string",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.fish"}},name:"string.quoted.single.fish",patterns:[{comment:"https://fishshell.com/docs/current/#quotes",match:/\\('|`|\\)/dgv,name:"constant.character.escape.fish"}]},{captures:{"1":{name:"punctuation.definition.comment.fish"}},comment:"line comment",match:/(?<!\$)(#)(?!\{)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.number-sign.fish"},{captures:{"2":{name:"keyword.control.fish"},"4":{name:"support.function.command.fish"}},comment:"name of command, either a function or a binary",match:/(^\p{space}*|&&\p{space}*|\|\p{space}*|\(\p{space}*|[\;]\p{space}*|\b(if|while)\b\p{space}+)(?!(?<!\.)\b(function|while|if|else|switch|case|for|in|begin|end|continue|break|return|source|exit|wait|and|or|not)\b(?![\?\!]))([a-zA-Z_\-0-9\[\]\.]+)/dgv},{comment:"keywords that affect control flow",match:/(?<!\.)\b(function|while|if|else|switch|case|for|in|begin|end|continue|break|return|source|exit|wait|and|or|not)\b(?![\?\!])/dgv,name:"keyword.control.fish"},{match:/(?<!\.)\bfunction\b(?![\?\!])/dgv,name:"storage.type.fish"},{match:/\|/dgv,name:"keyword.operator.pipe.fish"},{comment:"IO Redirection",match:/(?:<|#StandardInput(>|\^|>>|\^\^)(&[012\-])?|[012](<|>|>>)(&[012\-])?)/dgv,name:"keyword.operator.redirect.fish"},{match:/&/dgv,name:"keyword.operator.background.fish"},{match:/\*\*|\*|\?/dgv,name:"keyword.operator.glob.fish"},{captures:{"1":{name:"source.option.fish"}},comment:"command short/long options",match:/\p{space}(-{1,2}[a-zA-Z_\-0-9]+|-[\p{L}\p{M}\p{N}\p{Pc}])\b/dgv},{include:"#variable"},{include:"#escape"}],repository:{escape:{patterns:[{comment:"single character character escape sequences",match:/\\[abefnrtv \$\*\?\~\#\(\)\{\}\[\]\<\>\^\&\|\;"']/dgv,name:"constant.character.escape.single.fish"},{comment:"escapes the ascii character with the specified value (hexadecimal)",match:/\\x[0-9a-fA-F]{1,2}/dgv,name:"constant.character.escape.hex-ascii.fish"},{comment:"escapes a byte of data with the specified value (hexadecimal). If you are using mutibyte encoding, this can be used to enter invalid strings. Only use this if you know what are doing.",match:/\\X[0-9a-fA-F]{1,2}/dgv,name:"constant.character.escape.hex-byte.fish"},{comment:"escapes the ascii character with the specified value (octal)",match:/\\[0-7]{1,3}/dgv,name:"constant.character.escape.octal.fish"},{comment:"escapes the 16-bit unicode character with the specified value (hexadecimal)",match:/\\u[0-9a-fA-F]{1,4}/dgv,name:"constant.character.escape.unicode-16-bit.fish"},{comment:"escapes the 32-bit unicode character with the specified value (hexadecimal)",match:/\\U[0-9a-fA-F]{1,8}/dgv,name:"constant.character.escape.unicode-32-bit.fish"},{comment:"escapes the control sequence generated by pressing the control key and the specified letter",match:/\\c[a-zA-Z]/dgv,name:"constant.character.escape.control.fish"}]},variable:{patterns:[{captures:{"1":{name:"punctuation.definition.variable.fish"}},comment:"Built-in variables visible by pressing $ TAB TAB in a new shell",match:/(\$)(argv|CMD_DURATION|COLUMNS|fish_bind_mode|fish_color_autosuggestion|fish_color_cancel|fish_color_command|fish_color_comment|fish_color_cwd|fish_color_cwd_root|fish_color_end|fish_color_error|fish_color_escape|fish_color_hg_added|fish_color_hg_clean|fish_color_hg_copied|fish_color_hg_deleted|fish_color_hg_dirty|fish_color_hg_modified|fish_color_hg_renamed|fish_color_hg_unmerged|fish_color_hg_untracked|fish_color_history_current|fish_color_host|fish_color_host_remote|fish_color_match|fish_color_normal|fish_color_operator|fish_color_param|fish_color_quote|fish_color_redirection|fish_color_search_match|fish_color_selection|fish_color_status|fish_color_user|fish_color_valid_path|fish_complete_path|fish_function_path|fish_greeting|fish_key_bindings|fish_pager_color_completion|fish_pager_color_description|fish_pager_color_prefix|fish_pager_color_progress|fish_pid|fish_prompt_hg_status_added|fish_prompt_hg_status_copied|fish_prompt_hg_status_deleted|fish_prompt_hg_status_modified|fish_prompt_hg_status_order|fish_prompt_hg_status_unmerged|fish_prompt_hg_status_untracked|FISH_VERSION|history|hostname|IFS|LINES|pipestatus|status|umask|version)\b/dgv,name:"variable.language.fish"},{captures:{"1":{name:"punctuation.definition.variable.fish"}},match:/(\$)[a-zA-Z_][a-zA-Z0-9_]*/dgv,name:"variable.other.normal.fish"}]}},scopeName:"source.fish",embeddedLangs:undefined,aliases:undefined})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/fluent.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Fluent",name:"fluent",patterns:[{include:"#comment"},{include:"#message"},{include:"#wrong-line"}],repository:{attributes:{begin:/\p{space}*(\.[a-zA-Z][a-zA-Z0-9_\-]*\p{space}*=\p{space}*)/dgv,beginCaptures:{"1":{name:"support.class.attribute-begin.fluent"}},end
|
|
1
|
+
const lang = Object.freeze({displayName:"Fluent",name:"fluent",patterns:[{include:"#comment"},{include:"#message"},{include:"#wrong-line"}],repository:{attributes:{begin:/\p{space}*(\.[a-zA-Z][a-zA-Z0-9_\-]*\p{space}*=\p{space}*)/dgv,beginCaptures:{"1":{name:"support.class.attribute-begin.fluent"}},end:/^(?=\p{space}*[^\.])/dgv,patterns:[{include:"#placeable"}]},comment:{match:/^##?#?\p{space}[^\n]*(?=\n?$)/dgv,name:"comment.fluent"},"function-comma":{match:/,/dgv,name:"support.function.function-comma.fluent"},"function-named-argument":{begin:/([a-zA-Z0-9]+:)\p{space}*(["a-zA-Z0-9]+)/dgv,beginCaptures:{"1":{name:"support.function.named-argument.name.fluent"},"2":{name:"variable.other.named-argument.value.fluent"}},end:/(?=\)|,|\p{space})/dgv,name:"variable.other.named-argument.fluent"},"function-positional-argument":{match:/\$[a-zA-Z0-9_\-]+/dgv,name:"variable.other.function.positional-argument.fluent"},"invalid-placeable-string-missing-end-quote":{match:/"[^"]+(?=\n?$)/dgv,name:"invalid.illegal.wrong-placeable-missing-end-quote.fluent"},"invalid-placeable-wrong-placeable-missing-end":{match:/([^\}A-Z]*(?=\n?$)|[^\-][^\>](?=\n?$))\b/dgv,name:"invalid.illegal.wrong-placeable-missing-end.fluent"},message:{begin:/^(-?[a-zA-Z][a-zA-Z0-9_\-]*\p{space}*=\p{space}*)/dgv,beginCaptures:{"1":{name:"support.class.message-identifier.fluent"}},contentName:"string.fluent",end:/^(?=\P{space})/dgv,patterns:[{include:"#attributes"},{include:"#placeable"}]},placeable:{begin:/(\{)/dgv,beginCaptures:{"1":{name:"keyword.placeable.begin.fluent"}},contentName:"variable.other.placeable.content.fluent",end:/(\})/dgv,endCaptures:{"1":{name:"keyword.placeable.end.fluent"}},patterns:[{include:"#placeable-string"},{include:"#placeable-function"},{include:"#placeable-reference-or-number"},{include:"#selector"},{include:"#invalid-placeable-wrong-placeable-missing-end"},{include:"#invalid-placeable-string-missing-end-quote"},{include:"#invalid-placeable-wrong-function-name"}]},"placeable-function":{begin:/([A-Z][A-Z0-9_\-]*\()/dgv,beginCaptures:{"1":{name:"support.function.placeable-function.call.begin.fluent"}},contentName:"string.placeable-function.fluent",end:/(\))/dgv,endCaptures:{"1":{name:"support.function.placeable-function.call.end.fluent"}},patterns:[{include:"#function-comma"},{include:"#function-positional-argument"},{include:"#function-named-argument"}]},"placeable-reference-or-number":{match:/((-|\$)[a-zA-Z0-9_\-]+|[a-zA-Z][a-zA-Z0-9_\-]*|[0-9]+)/dgv,name:"variable.other.placeable.reference-or-number.fluent"},"placeable-string":{begin:/(")(?=[^\n]*")/dgv,beginCaptures:{"1":{name:"variable.other.placeable-string-begin.fluent"}},contentName:"string.placeable-string-content.fluent",end:/(")/dgv,endCaptures:{"1":{name:"variable.other.placeable-string-end.fluent"}}},selector:{begin:/(->)/dgv,beginCaptures:{"1":{name:"support.function.selector.begin.fluent"}},contentName:"string.selector.content.fluent",end:/^(?=\p{space}*\})/dgv,patterns:[{include:"#selector-item"}]},"selector-item":{begin:/(\p{space}*\*?\[)([a-zA-Z0-9_\-]+)(\]\p{space}*)/dgv,beginCaptures:{"1":{name:"support.function.selector-item.begin.fluent"},"2":{name:"variable.other.selector-item.begin.fluent"},"3":{name:"support.function.selector-item.begin.fluent"}},contentName:"string.selector-item.content.fluent",end:/^(?=(\p{space}*\})|(\p{space}*\[)|(\p{space}*\*))/dgv,patterns:[{include:"#placeable"}]},"wrong-line":{match:/[^\n]*/dgv,name:"invalid.illegal.wrong-line.fluent"}},scopeName:"source.ftl",embeddedLangs:undefined,aliases:["ftl"]})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fortran_free_form from './fortran-free-form.mjs'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Fortran (Fixed Form)",fileTypes:["f","F","f77","F77","for","FOR"],injections:{"source.fortran.fixed - ( string | comment )":{patterns:[{include:"#line-header"},{include:"#line-end-comment"}]}},name:"fortran-fixed-form",patterns:[{include:"#comments"},{include:"#line-header"},{include:"source.fortran.free"}],repository:{comments:{patterns:[{begin
|
|
3
|
+
const lang = Object.freeze({displayName:"Fortran (Fixed Form)",fileTypes:["f","F","f77","F77","for","FOR"],injections:{"source.fortran.fixed - ( string | comment )":{patterns:[{include:"#line-header"},{include:"#line-end-comment"}]}},name:"fortran-fixed-form",patterns:[{include:"#comments"},{include:"#line-header"},{include:"source.fortran.free"}],repository:{comments:{patterns:[{begin:/^[cC\*]/dgv,end:/\n/dgv,name:"comment.line.fortran"},{begin:/^ *!/dgv,end:/\n/dgv,name:"comment.line.fortran"}]},"line-end-comment":{begin:/(?<=^[^\n]{72})(?!\n)/dgv,end:/(?=\n)/dgv,name:"comment.line-end.fortran"},"line-header":{captures:{"1":{name:"constant.numeric.fortran"},"2":{name:"keyword.line-continuation-operator.fortran"},"3":{name:"source.fortran.free"},"4":{name:"invalid.error.fortran"}},match:/^(?!\p{space}*[\!\#])(?:([ \p{Nd}]{5} )|( {5}[^\n])|(\t)|([^\n]{1,5}))/dgv}},scopeName:"source.fortran.fixed",embeddedLangs:["fortran-free-form"],aliases:["f","for","f77"]})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...fortran_free_form,
|