@shikijs/langs-precompiled 1.26.1 → 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/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/fish.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Fish",fileTypes:["fish"],firstLineMatch:/(?<=^|\n(?!$))#![^\n]*\bfish\b/dgv,foldingStartMarker:/(?<=^|\n(?!$))\p{space}*(function|while|if|switch|for|begin)\p{space}[^\n]*(?=$|\n)/dgv,foldingStopMarker:/(?<=^|\n(?!$))\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:/((?<=^|\n(?!$))\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_][
|
|
1
|
+
const lang = Object.freeze({displayName:"Fish",fileTypes:["fish"],firstLineMatch:/(?<=^|\n(?!$))#![^\n]*\bfish\b/dgv,foldingStartMarker:/(?<=^|\n(?!$))\p{space}*(function|while|if|switch|for|begin)\p{space}[^\n]*(?=$|\n)/dgv,foldingStopMarker:/(?<=^|\n(?!$))\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:/((?<=^|\n(?!$))\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:/(?<=^|\n(?!$))(?=\p{space}*[^\.])/dgv,patterns:[{include:"#placeable"}]},comment:{match:/(?<=^|\n(?!$))##?#?\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:/(?<=^|\n(?!$))(-?[a-zA-Z][a-zA-Z0-9_\-]*\p{space}*=\p{space}*)/dgv,beginCaptures:{"1":{name:"support.class.message-identifier.fluent"}},contentName:"string.fluent",end:/(?<=^|\n(?!$))(?=\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_\-]
|
|
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:/(?<=^|\n(?!$))(?=\p{space}*[^\.])/dgv,patterns:[{include:"#placeable"}]},comment:{match:/(?<=^|\n(?!$))##?#?\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:/(?<=^|\n(?!$))(-?[a-zA-Z][a-zA-Z0-9_\-]*\p{space}*=\p{space}*)/dgv,beginCaptures:{"1":{name:"support.class.message-identifier.fluent"}},contentName:"string.fluent",end:/(?<=^|\n(?!$))(?=\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:/(?<=^|\n(?!$))(?=\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:/(?<=^|\n(?!$))(?=(\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
|