@shikijs/langs-precompiled 1.26.0 → 1.26.2
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/angular-expression.mjs +1 -1
- package/dist/angular-let-declaration.mjs +1 -1
- package/dist/angular-ts.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/awk.mjs +1 -1
- package/dist/ballerina.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/berry.mjs +1 -1
- package/dist/bicep.mjs +1 -1
- package/dist/blade.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/cairo.mjs +1 -1
- package/dist/clojure.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/codeql.mjs +2 -6
- package/dist/coffee.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/coq.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/cue.mjs +1 -1
- package/dist/d.mjs +1 -1
- package/dist/dart.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/dotenv.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/fish.mjs +1 -1
- package/dist/fluent.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/genie.mjs +1 -1
- package/dist/gleam.mjs +1 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/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 +10 -2
- 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/hlsl.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/http.mjs +1 -1
- package/dist/hy.mjs +1 -1
- package/dist/imba.mjs +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.mjs +90 -6
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jinja.mjs +1 -1
- package/dist/jison.mjs +1 -1
- package/dist/jssm.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kusto.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/lua.mjs +1 -1
- package/dist/luau.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/move.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/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/polar.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/r.mjs +1 -1
- package/dist/racket.mjs +1 -1
- package/dist/reg.mjs +1 -1
- package/dist/regexp.mjs +1 -1
- package/dist/rel.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/sass.mjs +2 -4
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/shaderlab.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/solidity.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/tcl.mjs +1 -1
- package/dist/templ.mjs +1 -1
- package/dist/terraform.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/turtle.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/typespec.mjs +1 -1
- package/dist/typst.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vala.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/vhdl.mjs +1 -1
- package/dist/viml.mjs +1 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wgsl.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/zenscript.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +4 -4
package/dist/jinja.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import jinja_html from './jinja-html.mjs'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Jinja",foldingStartMarker:/(\{%\p{space}*(block|filter|for|if|macro|raw))/dgv,foldingStopMarker:/(\{%\p{space}*(endblock|endfilter|endfor|endif|endmacro|endraw)\p{space}*%\})/dgv,name:"jinja",patterns:[{begin:/(\{%)\p{space}*(raw)\p{space}*(%\})/dgv,captures:{"1":{name:"entity.other.jinja.delimiter.tag"},"2":{name:"keyword.control.jinja"},"3":{name:"entity.other.jinja.delimiter.tag"}},end:/(\{%)\p{space}*(endraw)\p{space}*(%\})/dgv,name:"comment.block.jinja.raw"},{include:"#comments"},{begin:/\{\{-?/dgv,captures:[{name:"variable.entity.other.jinja.delimiter"}],end:/-?\}\}/dgv,name:"variable.meta.scope.jinja",patterns:[{include:"#expression"}]},{begin:/\{%-?/dgv,captures:[{name:"entity.other.jinja.delimiter.tag"}],end:/-?%\}/dgv,name:"meta.scope.jinja.tag",patterns:[{include:"#expression"}]}],repository:{comments:{begin:/\{#-?/dgv,captures:[{name:"entity.other.jinja.delimiter.comment"}],end:/-?#\}/dgv,name:"comment.block.jinja",patterns:[{include:"#comments"}]},escaped_char:{match:/\\x[0-9A-F]{2}/dgv,name:"constant.character.escape.hex.jinja"},escaped_unicode_char:{captures:{"1":{name:"constant.character.escape.unicode.16-bit-hex.jinja"},"2":{name:"constant.character.escape.unicode.32-bit-hex.jinja"},"3":{name:"constant.character.escape.unicode.name.jinja"}},match:/(\\U[0-9A-Fa-f]{8})|(\\u[0-9A-Fa-f]{4})|(\\N\{[a-zA-Z ]+\})/dgv},expression:{patterns:[{captures:{"1":{name:"keyword.control.jinja"},"2":{name:"variable.other.jinja.block"}},match:/\p{space}*\b(block)\p{space}+([a-zA-Z_][
|
|
3
|
+
const lang = Object.freeze({displayName:"Jinja",foldingStartMarker:/(\{%\p{space}*(block|filter|for|if|macro|raw))/dgv,foldingStopMarker:/(\{%\p{space}*(endblock|endfilter|endfor|endif|endmacro|endraw)\p{space}*%\})/dgv,name:"jinja",patterns:[{begin:/(\{%)\p{space}*(raw)\p{space}*(%\})/dgv,captures:{"1":{name:"entity.other.jinja.delimiter.tag"},"2":{name:"keyword.control.jinja"},"3":{name:"entity.other.jinja.delimiter.tag"}},end:/(\{%)\p{space}*(endraw)\p{space}*(%\})/dgv,name:"comment.block.jinja.raw"},{include:"#comments"},{begin:/\{\{-?/dgv,captures:[{name:"variable.entity.other.jinja.delimiter"}],end:/-?\}\}/dgv,name:"variable.meta.scope.jinja",patterns:[{include:"#expression"}]},{begin:/\{%-?/dgv,captures:[{name:"entity.other.jinja.delimiter.tag"}],end:/-?%\}/dgv,name:"meta.scope.jinja.tag",patterns:[{include:"#expression"}]}],repository:{comments:{begin:/\{#-?/dgv,captures:[{name:"entity.other.jinja.delimiter.comment"}],end:/-?#\}/dgv,name:"comment.block.jinja",patterns:[{include:"#comments"}]},escaped_char:{match:/\\x[0-9A-F]{2}/dgv,name:"constant.character.escape.hex.jinja"},escaped_unicode_char:{captures:{"1":{name:"constant.character.escape.unicode.16-bit-hex.jinja"},"2":{name:"constant.character.escape.unicode.32-bit-hex.jinja"},"3":{name:"constant.character.escape.unicode.name.jinja"}},match:/(\\U[0-9A-Fa-f]{8})|(\\u[0-9A-Fa-f]{4})|(\\N\{[a-zA-Z ]+\})/dgv},expression:{patterns:[{captures:{"1":{name:"keyword.control.jinja"},"2":{name:"variable.other.jinja.block"}},match:/\p{space}*\b(block)\p{space}+([a-zA-Z_][a-zA-Z0-9_]*)\b/dgv},{captures:{"1":{name:"keyword.control.jinja"},"2":{name:"variable.other.jinja.filter"}},match:/\p{space}*\b(filter)\p{space}+([a-zA-Z_][a-zA-Z0-9_]*)\b/dgv},{captures:{"1":{name:"keyword.control.jinja"},"2":{name:"variable.other.jinja.test"}},match:/\p{space}*\b(is)\p{space}+([a-zA-Z_][a-zA-Z0-9_]*)\b/dgv},{captures:{"1":{name:"keyword.control.jinja"}},match:/(?<=\{%-|\{%)\p{space}*\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?!\p{space}*[\,\=])/dgv},{match:/\b(and|else|if|in|import|not|or|recursive|with(out)?\p{space}+context)\b/dgv,name:"keyword.control.jinja"},{match:/\b(true|false|none)\b/dgv,name:"constant.language.jinja"},{match:/\b(loop|super|self|varargs|kwargs)\b/dgv,name:"variable.language.jinja"},{match:/[a-zA-Z_][a-zA-Z0-9_]*/dgv,name:"variable.other.jinja"},{match:/(\+|-|\*\*|\*|\/\/|\/|%)/dgv,name:"keyword.operator.arithmetic.jinja"},{captures:{"1":{name:"punctuation.other.jinja"},"2":{name:"variable.other.jinja.filter"}},match:/(\|)([a-zA-Z_][a-zA-Z0-9_]*)/dgv},{captures:{"1":{name:"punctuation.other.jinja"},"2":{name:"variable.other.jinja.attribute"}},match:/(\.)([a-zA-Z_][a-zA-Z0-9_]*)/dgv},{begin:/\[/dgv,captures:[{name:"punctuation.other.jinja"}],end:/\]/dgv,patterns:[{include:"#expression"}]},{begin:/\(/dgv,captures:[{name:"punctuation.other.jinja"}],end:/\)/dgv,patterns:[{include:"#expression"}]},{begin:/\{/dgv,captures:[{name:"punctuation.other.jinja"}],end:/\}/dgv,patterns:[{include:"#expression"}]},{match:/(\.|:|\||,)/dgv,name:"punctuation.other.jinja"},{match:/(==|<=|=>|<|>|!=)/dgv,name:"keyword.operator.comparison.jinja"},{match:/=/dgv,name:"keyword.operator.assignment.jinja"},{begin:/"/dgv,beginCaptures:[{name:"punctuation.definition.string.begin.jinja"}],end:/"/dgv,endCaptures:[{name:"punctuation.definition.string.end.jinja"}],name:"string.quoted.double.jinja",patterns:[{include:"#string"}]},{begin:/'/dgv,beginCaptures:[{name:"punctuation.definition.string.begin.jinja"}],end:/'/dgv,endCaptures:[{name:"punctuation.definition.string.end.jinja"}],name:"string.quoted.single.jinja",patterns:[{include:"#string"}]},{begin:/@\//dgv,beginCaptures:[{name:"punctuation.definition.regexp.begin.jinja"}],end:/\//dgv,endCaptures:[{name:"punctuation.definition.regexp.end.jinja"}],name:"string.regexp.jinja",patterns:[{include:"#simple_escapes"}]}]},simple_escapes:{captures:{"1":{name:"constant.character.escape.newline.jinja"},"2":{name:"constant.character.escape.backlash.jinja"},"3":{name:"constant.character.escape.double-quote.jinja"},"4":{name:"constant.character.escape.single-quote.jinja"},"5":{name:"constant.character.escape.bell.jinja"},"6":{name:"constant.character.escape.backspace.jinja"},"7":{name:"constant.character.escape.formfeed.jinja"},"8":{name:"constant.character.escape.linefeed.jinja"},"9":{name:"constant.character.escape.return.jinja"},"10":{name:"constant.character.escape.tab.jinja"},"11":{name:"constant.character.escape.vertical-tab.jinja"}},match:/(\\\n)|(\\\\)|(\\")|(\\')|(\\a)|(\\b)|(\\f)|(\\n)|(\\r)|(\\t)|(\\v)/dgv},string:{patterns:[{include:"#simple_escapes"},{include:"#escaped_char"},{include:"#escaped_unicode_char"}]}},scopeName:"source.jinja",embeddedLangs:["jinja-html"],aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...jinja_html,
|
package/dist/jison.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import javascript from './javascript.mjs'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Jison",fileTypes:["jison"],injections:{"L:(meta.action.jison - (comment | string)), source.js.embedded.jison - (comment | string), source.js.embedded.source - (comment | string.quoted.double | string.quoted.single)":{patterns:[{match:"\\${2}",name:"variable.language.semantic-value.jison"},{match:"@\\$",name:"variable.language.result-location.jison"},{match:"##\\$|\\byysp\\b",name:"variable.language.stack-index-0.jison"},{match:"#\\S+#",name:"support.variable.token-reference.jison"},{match:"#\\$",name:"variable.language.result-id.jison"},{match:"\\$(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)",name:"support.variable.token-value.jison"},{match:"@(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)",name:"support.variable.token-location.jison"},{match:"##(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)",name:"support.variable.stack-index.jison"},{match:"#(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)",name:"support.variable.token-id.jison"},{match:"\\byy(?:l(?:eng|ineno|oc|stack)|rulelength|s(?:tate|s?tack)|text|vstack)\\b",name:"variable.language.jison"},{match:"\\byy(?:clearin|erro[kr])\\b",name:"keyword.other.jison"}]}},name:"jison",patterns:[{begin:/%%/dgv,beginCaptures:{"0":{name:"meta.separator.section.jison"}},end:/$/dgv,patterns:[{begin:/%%/dgv,beginCaptures:{"0":{name:"meta.separator.section.jison"}},end:/$/dgv,patterns:[{begin:/(?:)/dgv,contentName:"source.js.embedded.jison",end:/$/dgv,name:"meta.section.epilogue.jison",patterns:[{include:"#epilogue_section"}]}]},{begin:/(?:)/dgv,end:/(?=%%)/dgv,name:"meta.section.rules.jison",patterns:[{include:"#rules_section"}]}]},{begin:/(?<=^|\n(?!$))/dgv,end:/(?=%%)/dgv,name:"meta.section.declarations.jison",patterns:[{include:"#declarations_section"}]}],repository:{actions:{patterns:[{begin:/\{\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.action.begin.jison"}},contentName:"source.js.embedded.jison",end:/\}\}/dgv,endCaptures:{"0":{name:"punctuation.definition.action.end.jison"}},name:"meta.action.jison",patterns:[{include:"source.js"}]},{begin:/(?=%\{)/dgv,end:/(?<=%\})/dgv,name:"meta.action.jison",patterns:[{include:"#user_code_blocks"}]}]},comments:{patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.jison"}},end:/(?=$|\n)/dgv,name:"comment.line.double-slash.jison"},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.jison"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.jison"}},name:"comment.block.jison"}]},declarations_section:{patterns:[{include:"#comments"},{begin:/(?<=^|\n(?!$))\p{space}*(%lex)\p{space}*(?=$|\n)/dgv,beginCaptures:{"1":{name:"entity.name.tag.lexer.begin.jison"}},end:/(?<=^|\n(?!$))\p{space}*(\/lex)\b/dgv,endCaptures:{"1":{name:"entity.name.tag.lexer.end.jison"}},patterns:[{begin:/%%/dgv,beginCaptures:{"0":{name:"meta.separator.section.jisonlex"}},end:/(?=\/lex)/dgv,patterns:[{begin:/(?<=^|\n(?!$))%%/dgv,beginCaptures:{"0":{name:"meta.separator.section.jisonlex"}},end:/(?=\/lex)/dgv,patterns:[{begin:/(?:)/dgv,contentName:"source.js.embedded.jisonlex",end:/(?=\/lex)/dgv,name:"meta.section.user-code.jisonlex",patterns:[{include:"source.jisonlex#user_code_section"}]}]},{begin:/(?:)/dgv,end:/(?<=^|\n(?!$))(?=%%|\/lex)/dgv,name:"meta.section.rules.jisonlex",patterns:[{include:"source.jisonlex#rules_section"}]}]},{begin:/(?<=^|\n(?!$))/dgv,end:/(?=%%|\/lex)/dgv,name:"meta.section.definitions.jisonlex",patterns:[{include:"source.jisonlex#definitions_section"}]}]},{begin:/(?=%\{)/dgv,end:/(?<=%\})/dgv,name:"meta.section.prologue.jison",patterns:[{include:"#user_code_blocks"}]},{include:"#options_declarations"},{match:/%(ebnf|left|nonassoc|parse-param|right|start)\b/dgv,name:"keyword.other.declaration.$1.jison"},{include:"#include_declarations"},{begin:/%(code)\b/dgv,beginCaptures:{"0":{name:"keyword.other.declaration.$1.jison"}},end:/(?=$|\n)/dgv,name:"meta.code.jison",patterns:[{include:"#comments"},{include:"#rule_actions"},{match:/(init|required)/dgv,name:"keyword.other.code-qualifier.$1.jison"},{include:"#quoted_strings"},{match:/\b[
|
|
3
|
+
const lang = Object.freeze({displayName:"Jison",fileTypes:["jison"],injections:{"L:(meta.action.jison - (comment | string)), source.js.embedded.jison - (comment | string), source.js.embedded.source - (comment | string.quoted.double | string.quoted.single)":{patterns:[{match:"\\${2}",name:"variable.language.semantic-value.jison"},{match:"@\\$",name:"variable.language.result-location.jison"},{match:"##\\$|\\byysp\\b",name:"variable.language.stack-index-0.jison"},{match:"#\\S+#",name:"support.variable.token-reference.jison"},{match:"#\\$",name:"variable.language.result-id.jison"},{match:"\\$(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)",name:"support.variable.token-value.jison"},{match:"@(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)",name:"support.variable.token-location.jison"},{match:"##(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)",name:"support.variable.stack-index.jison"},{match:"#(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)",name:"support.variable.token-id.jison"},{match:"\\byy(?:l(?:eng|ineno|oc|stack)|rulelength|s(?:tate|s?tack)|text|vstack)\\b",name:"variable.language.jison"},{match:"\\byy(?:clearin|erro[kr])\\b",name:"keyword.other.jison"}]}},name:"jison",patterns:[{begin:/%%/dgv,beginCaptures:{"0":{name:"meta.separator.section.jison"}},end:/$/dgv,patterns:[{begin:/%%/dgv,beginCaptures:{"0":{name:"meta.separator.section.jison"}},end:/$/dgv,patterns:[{begin:/(?:)/dgv,contentName:"source.js.embedded.jison",end:/$/dgv,name:"meta.section.epilogue.jison",patterns:[{include:"#epilogue_section"}]}]},{begin:/(?:)/dgv,end:/(?=%%)/dgv,name:"meta.section.rules.jison",patterns:[{include:"#rules_section"}]}]},{begin:/(?<=^|\n(?!$))/dgv,end:/(?=%%)/dgv,name:"meta.section.declarations.jison",patterns:[{include:"#declarations_section"}]}],repository:{actions:{patterns:[{begin:/\{\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.action.begin.jison"}},contentName:"source.js.embedded.jison",end:/\}\}/dgv,endCaptures:{"0":{name:"punctuation.definition.action.end.jison"}},name:"meta.action.jison",patterns:[{include:"source.js"}]},{begin:/(?=%\{)/dgv,end:/(?<=%\})/dgv,name:"meta.action.jison",patterns:[{include:"#user_code_blocks"}]}]},comments:{patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.jison"}},end:/(?=$|\n)/dgv,name:"comment.line.double-slash.jison"},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.jison"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.jison"}},name:"comment.block.jison"}]},declarations_section:{patterns:[{include:"#comments"},{begin:/(?<=^|\n(?!$))\p{space}*(%lex)\p{space}*(?=$|\n)/dgv,beginCaptures:{"1":{name:"entity.name.tag.lexer.begin.jison"}},end:/(?<=^|\n(?!$))\p{space}*(\/lex)\b/dgv,endCaptures:{"1":{name:"entity.name.tag.lexer.end.jison"}},patterns:[{begin:/%%/dgv,beginCaptures:{"0":{name:"meta.separator.section.jisonlex"}},end:/(?=\/lex)/dgv,patterns:[{begin:/(?<=^|\n(?!$))%%/dgv,beginCaptures:{"0":{name:"meta.separator.section.jisonlex"}},end:/(?=\/lex)/dgv,patterns:[{begin:/(?:)/dgv,contentName:"source.js.embedded.jisonlex",end:/(?=\/lex)/dgv,name:"meta.section.user-code.jisonlex",patterns:[{include:"source.jisonlex#user_code_section"}]}]},{begin:/(?:)/dgv,end:/(?<=^|\n(?!$))(?=%%|\/lex)/dgv,name:"meta.section.rules.jisonlex",patterns:[{include:"source.jisonlex#rules_section"}]}]},{begin:/(?<=^|\n(?!$))/dgv,end:/(?=%%|\/lex)/dgv,name:"meta.section.definitions.jisonlex",patterns:[{include:"source.jisonlex#definitions_section"}]}]},{begin:/(?=%\{)/dgv,end:/(?<=%\})/dgv,name:"meta.section.prologue.jison",patterns:[{include:"#user_code_blocks"}]},{include:"#options_declarations"},{match:/%(ebnf|left|nonassoc|parse-param|right|start)\b/dgv,name:"keyword.other.declaration.$1.jison"},{include:"#include_declarations"},{begin:/%(code)\b/dgv,beginCaptures:{"0":{name:"keyword.other.declaration.$1.jison"}},end:/(?=$|\n)/dgv,name:"meta.code.jison",patterns:[{include:"#comments"},{include:"#rule_actions"},{match:/(init|required)/dgv,name:"keyword.other.code-qualifier.$1.jison"},{include:"#quoted_strings"},{match:/\b[\p{Alpha}_](?:[\p{L}\p{M}\p{N}\p{Pc}\-]*[\p{L}\p{M}\p{N}\p{Pc}])?\b/dgv,name:"string.unquoted.jison"}]},{begin:/%(parser-type)\b/dgv,beginCaptures:{"0":{name:"keyword.other.declaration.$1.jison"}},end:/(?=$|\n)/dgv,name:"meta.parser-type.jison",patterns:[{include:"#comments"},{include:"#quoted_strings"},{match:/\b[\p{Alpha}_](?:[\p{L}\p{M}\p{N}\p{Pc}\-]*[\p{L}\p{M}\p{N}\p{Pc}])?\b/dgv,name:"string.unquoted.jison"}]},{begin:/%(token)\b/dgv,beginCaptures:{"0":{name:"keyword.other.declaration.$1.jison"}},end:/(?=$|\n)|(%%|;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.declaration.token.jison"}},name:"meta.token.jison",patterns:[{include:"#comments"},{include:"#numbers"},{include:"#quoted_strings"},{match:/<[\p{Alpha}_](?:[\p{L}\p{M}\p{N}\p{Pc}\-]*[\p{L}\p{M}\p{N}\p{Pc}])?>/dgv,name:"invalid.unimplemented.jison"},{match:/\P{space}+/dgv,name:"entity.other.token.jison"}]},{match:/%(debug|import)\b/dgv,name:"keyword.other.declaration.$1.jison"},{match:/%prec\b/dgv,name:"invalid.illegal.jison"},{match:/%[\p{Alpha}_](?:[\p{L}\p{M}\p{N}\p{Pc}\-]*[\p{L}\p{M}\p{N}\p{Pc}])?\b/dgv,name:"invalid.unimplemented.jison"},{include:"#numbers"},{include:"#quoted_strings"}]},epilogue_section:{patterns:[{include:"#user_code_include_declarations"},{include:"source.js"}]},include_declarations:{patterns:[{begin:/(%(include))\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.declaration.$2.jison"}},end:/(?<=['"])|(?=\p{space})/dgv,name:"meta.include.jison",patterns:[{include:"#include_paths"}]}]},include_paths:{patterns:[{include:"#quoted_strings"},{begin:/(?=\P{space})/dgv,end:/(?=\p{space})/dgv,name:"string.unquoted.jison",patterns:[{include:"source.js#string_escapes"}]}]},numbers:{patterns:[{captures:{"1":{name:"storage.type.number.jison"},"2":{name:"constant.numeric.integer.hexadecimal.jison"}},match:/(0[Xx])([0-9A-Fa-f]+)/dgv},{match:/\p{Nd}+/dgv,name:"constant.numeric.integer.decimal.jison"}]},options_declarations:{patterns:[{begin:/%options\b/dgv,beginCaptures:{"0":{name:"keyword.other.options.jison"}},end:/(?<=^|\n(?!$))(?=\P{space}|\p{space}*(?=$|\n))/dgv,name:"meta.options.jison",patterns:[{include:"#comments"},{match:/\b[\p{Alpha}_](?:[\p{L}\p{M}\p{N}\p{Pc}\-]*[\p{L}\p{M}\p{N}\p{Pc}])?\b/dgv,name:"entity.name.constant.jison"},{begin:/(=)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.operator.option.assignment.jison"}},end:/(?<=['"])|(?=\p{space})/dgv,patterns:[{include:"#comments"},{match:/\b(true|false)\b/dgv,name:"constant.language.boolean.$1.jison"},{include:"#numbers"},{include:"#quoted_strings"},{match:/\P{space}+/dgv,name:"string.unquoted.jison"}]},{include:"#quoted_strings"}]}]},quoted_strings:{patterns:[{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.jison",patterns:[{include:"source.js#string_escapes"}]},{begin:/'/dgv,end:/'/dgv,name:"string.quoted.single.jison",patterns:[{include:"source.js#string_escapes"}]}]},rule_actions:{patterns:[{include:"#actions"},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.action.begin.jison"}},contentName:"source.js.embedded.jison",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.action.end.jison"}},name:"meta.action.jison",patterns:[{include:"source.js"}]},{include:"#include_declarations"},{begin:/->|→/dgv,beginCaptures:{"0":{name:"punctuation.definition.action.arrow.jison"}},contentName:"source.js.embedded.jison",end:/(?=$|\n)/dgv,name:"meta.action.jison",patterns:[{include:"source.js"}]}]},rules_section:{patterns:[{include:"#comments"},{include:"#actions"},{include:"#include_declarations"},{begin:/\b[\p{Alpha}_](?:[\p{L}\p{M}\p{N}\p{Pc}\-]*[\p{L}\p{M}\p{N}\p{Pc}])?\b/dgv,beginCaptures:{"0":{name:"entity.name.constant.rule-result.jison"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.rule.jison"}},name:"meta.rule.jison",patterns:[{include:"#comments"},{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.rule-components.assignment.jison"}},end:/(?=;)/dgv,name:"meta.rule-components.jison",patterns:[{include:"#comments"},{include:"#quoted_strings"},{captures:{"1":{name:"punctuation.definition.named-reference.begin.jison"},"2":{name:"entity.name.other.reference.jison"},"3":{name:"punctuation.definition.named-reference.end.jison"}},match:/(\[)([\p{Alpha}_](?:[\p{L}\p{M}\p{N}\p{Pc}\-]*[\p{L}\p{M}\p{N}\p{Pc}])?)(\])/dgv},{begin:/(%(prec))\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.$2.jison"}},end:/(?<=['"])|(?=\p{space})/dgv,name:"meta.prec.jison",patterns:[{include:"#comments"},{include:"#quoted_strings"},{begin:/(?=\P{space})/dgv,end:/(?=\p{space})/dgv,name:"constant.other.token.jison"}]},{match:/\|/dgv,name:"keyword.operator.rule-components.separator.jison"},{match:/\b(?:EOF|error)\b/dgv,name:"keyword.other.$0.jison"},{match:/(?:%e(?:mpty|psilon)|\b[Ɛɛεϵ])\b/dgv,name:"keyword.other.empty.jison"},{include:"#rule_actions"}]}]}]},user_code_blocks:{patterns:[{begin:/%\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.user-code-block.begin.jison"}},contentName:"source.js.embedded.jison",end:/%\}/dgv,endCaptures:{"0":{name:"punctuation.definition.user-code-block.end.jison"}},name:"meta.user-code-block.jison",patterns:[{include:"source.js"}]}]},user_code_include_declarations:{patterns:[{begin:/(?<=^|\n(?!$))(%(include))\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.declaration.$2.jison"}},end:/(?<=['"])|(?=\p{space})/dgv,name:"meta.include.jison",patterns:[{include:"#include_paths"}]}]}},scopeName:"source.jison",embeddedLangs:["javascript"],aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...javascript,
|
package/dist/jssm.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"JSSM",fileTypes:["jssm","jssm_state"],name:"jssm",patterns:[{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.mn"}},comment:"block comment",end:/\*\//dgv,name:"comment.block.jssm"},{begin:/\/\//dgv,comment:"block comment",end:/(?=$|\n)/dgv,name:"comment.line.jssm"},{begin:/\$\{/dgv,captures:{"0":{name:"entity.name.function"}},comment:"js outcalls",end:/\}/dgv,name:"keyword.other"},{comment:"semver",match:/(
|
|
1
|
+
const lang = Object.freeze({displayName:"JSSM",fileTypes:["jssm","jssm_state"],name:"jssm",patterns:[{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.mn"}},comment:"block comment",end:/\*\//dgv,name:"comment.block.jssm"},{begin:/\/\//dgv,comment:"block comment",end:/(?=$|\n)/dgv,name:"comment.line.jssm"},{begin:/\$\{/dgv,captures:{"0":{name:"entity.name.function"}},comment:"js outcalls",end:/\}/dgv,name:"keyword.other"},{comment:"semver",match:/([0-9]*)(\.)([0-9]*)(\.)([0-9]*)/dgv,name:"constant.numeric"},{comment:"jssm language tokens",match:/graph_layout(\p{space}*)(:)/dgv,name:"constant.language.jssmLanguage"},{comment:"jssm language tokens",match:/machine_name(\p{space}*)(:)/dgv,name:"constant.language.jssmLanguage"},{comment:"jssm language tokens",match:/machine_version(\p{space}*)(:)/dgv,name:"constant.language.jssmLanguage"},{comment:"jssm language tokens",match:/jssm_version(\p{space}*)(:)/dgv,name:"constant.language.jssmLanguage"},{comment:"transitions",match:/<->/dgv,name:"keyword.control.transition.jssmArrow.legal_legal"},{comment:"transitions",match:/<-/dgv,name:"keyword.control.transition.jssmArrow.legal_none"},{comment:"transitions",match:/->/dgv,name:"keyword.control.transition.jssmArrow.none_legal"},{comment:"transitions",match:/<=>/dgv,name:"keyword.control.transition.jssmArrow.main_main"},{comment:"transitions",match:/=>/dgv,name:"keyword.control.transition.jssmArrow.none_main"},{comment:"transitions",match:/<=/dgv,name:"keyword.control.transition.jssmArrow.main_none"},{comment:"transitions",match:/<~>/dgv,name:"keyword.control.transition.jssmArrow.forced_forced"},{comment:"transitions",match:/~>/dgv,name:"keyword.control.transition.jssmArrow.none_forced"},{comment:"transitions",match:/<~/dgv,name:"keyword.control.transition.jssmArrow.forced_none"},{comment:"transitions",match:/<-=>/dgv,name:"keyword.control.transition.jssmArrow.legal_main"},{comment:"transitions",match:/<=->/dgv,name:"keyword.control.transition.jssmArrow.main_legal"},{comment:"transitions",match:/<-~>/dgv,name:"keyword.control.transition.jssmArrow.legal_forced"},{comment:"transitions",match:/<~->/dgv,name:"keyword.control.transition.jssmArrow.forced_legal"},{comment:"transitions",match:/<=~>/dgv,name:"keyword.control.transition.jssmArrow.main_forced"},{comment:"transitions",match:/<~=>/dgv,name:"keyword.control.transition.jssmArrow.forced_main"},{comment:"edge probability annotation",match:/([0-9]+)%/dgv,name:"constant.numeric.jssmProbability"},{comment:"action annotation",match:/'[^']*'/dgv,name:"constant.character.jssmAction"},{comment:"jssm label annotation",match:/"[^"]*"/dgv,name:"entity.name.tag.jssmLabel.doublequoted"},{comment:"jssm label annotation",match:/([a-zA-Z0-9_\.\+\&\(\)\#\@\!\?\,])/dgv,name:"entity.name.tag.jssmLabel.atom"}],scopeName:"source.jssm",embeddedLangs:undefined,aliases:["fsl"]})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|