@shikijs/langs-precompiled 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abap.mjs +3 -1
- package/dist/angular-ts.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/ballerina.mjs +3 -1
- package/dist/blade.mjs +1 -1
- package/dist/bsl.mjs +2 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/cobol.mjs +2 -1
- package/dist/codeql.mjs +6 -2
- package/dist/coffee.mjs +2 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/dax.mjs +3 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/gdscript.mjs +1 -1
- package/dist/gherkin.mjs +3 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/imba.mjs +1 -1
- package/dist/ini.mjs +1 -1
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kotlin.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/less.mjs +3 -1
- package/dist/logo.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown-vue.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/nginx.mjs +1 -1
- package/dist/nim.mjs +1 -1
- package/dist/nix.mjs +1 -1
- package/dist/nushell.mjs +1 -1
- package/dist/objective-c.mjs +1 -1
- package/dist/objective-cpp.mjs +1 -1
- package/dist/pascal.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/po.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/prolog.mjs +3 -1
- package/dist/pug.mjs +1 -1
- package/dist/python.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/racket.mjs +3 -1
- package/dist/raku.mjs +1 -1
- package/dist/razor.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/sas.mjs +2 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/ssh-config.mjs +1 -1
- package/dist/stata.mjs +2 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/systemd.mjs +1 -1
- package/dist/templ.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/viml.mjs +3 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/package.json +4 -4
package/dist/sas.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
1
2
|
import sql from './sql.mjs'
|
|
2
3
|
|
|
3
|
-
const lang = Object.freeze({displayName:"SAS",fileTypes:["sas"],foldingStartMarker:/(proc|data|%macro)[^\n]*;(?=\n?$)/dgiv,foldingStopMarker:/(run|quit|%mend)\p{space}?;/dgiv,name:"sas",patterns:[{include:"#starComment"},{include:"#blockComment"},{include:"#macro"},{include:"#constant"},{include:"#quote"},{include:"#operator"},{begin:/\b(data)\p{space}+/dgiv,beginCaptures:{"1":{name:"keyword.other.sas"}},comment:"Begins a DATA step and provides names for any output SAS data sets, views, or programs.",end:/(;)/dgv,patterns:[{include:"#blockComment"},{include:"#dataSet"},{captures:{"1":{name:"keyword.other.sas"},"2":{name:"keyword.other.sas"}},match:/(?:(stack|pgm|view|source)\p{space}?=\p{space}?|(debug|nesting|nolist))/dgiv}]},{begin:/\b(set|update|modify|merge)\p{space}+/dgiv,beginCaptures:{"1":{name:"support.function.sas"},"2":{name:"entity.name.class.sas"},"3":{name:"entity.name.class.sas"}},comment:"DATA set File-Handling Statements for DATA step",end:/(;)/dgv,patterns:[{include:"#blockComment"},{include:"#dataSet"}]},{match:/\b(if|while|until|for|do|end|then|else|run|quit|cancel|options)\b/dgiv,name:"keyword.control.sas"},{captures:{"1":{name:"support.class.sas"},"3":{name:"entity.name.function.sas"}},match:/(%(bquote|do|else|end|eval|global|goto|if|inc|include|index|input|length|let|list|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qscan|qsysfunc|quote|run|scan|str|substr|syscall|sysevalf|sysexec|sysfunc|sysrc|then|to|unquote|upcase|until|while|window)\b)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]*)/dgiv,name:"keyword.other.sas"},{begin:/\b(proc\p{space}*(sql))\b/dgiv,beginCaptures:{"1":{name:"support.function.sas"},"2":{name:"support.class.sas"}},comment:"Looks like for this to work there must be a *name* as well as the patterns/include bit.",end:/\b(quit)\p{space}*;/dgiv,endCaptures:{"1":{name:"keyword.control.sas"}},name:"meta.sql.sas",patterns:[{include:"#starComment"},{include:"#blockComment"},{include:"source.sql"}]},{match:/\b(by|label|format)\b/dgiv,name:"keyword.datastep.sas"},{captures:{"1":{name:"support.function.sas"},"2":{name:"support.class.sas"}},match:/\b(proc ([\p{L}\p{M}\p{N}\p{Pc}]+))\b/dgiv,name:"meta.function-call.sas"},{match:/\b(_n_|_error_)\b/dgiv,name:"variable.language.sas"},{captures:{"1":{name:"support.class.sas"}},match
|
|
4
|
+
const lang = Object.freeze({displayName:"SAS",fileTypes:["sas"],foldingStartMarker:/(proc|data|%macro)[^\n]*;(?=\n?$)/dgiv,foldingStopMarker:/(run|quit|%mend)\p{space}?;/dgiv,name:"sas",patterns:[{include:"#starComment"},{include:"#blockComment"},{include:"#macro"},{include:"#constant"},{include:"#quote"},{include:"#operator"},{begin:/\b(data)\p{space}+/dgiv,beginCaptures:{"1":{name:"keyword.other.sas"}},comment:"Begins a DATA step and provides names for any output SAS data sets, views, or programs.",end:/(;)/dgv,patterns:[{include:"#blockComment"},{include:"#dataSet"},{captures:{"1":{name:"keyword.other.sas"},"2":{name:"keyword.other.sas"}},match:/(?:(stack|pgm|view|source)\p{space}?=\p{space}?|(debug|nesting|nolist))/dgiv}]},{begin:/\b(set|update|modify|merge)\p{space}+/dgiv,beginCaptures:{"1":{name:"support.function.sas"},"2":{name:"entity.name.class.sas"},"3":{name:"entity.name.class.sas"}},comment:"DATA set File-Handling Statements for DATA step",end:/(;)/dgv,patterns:[{include:"#blockComment"},{include:"#dataSet"}]},{match:/\b(if|while|until|for|do|end|then|else|run|quit|cancel|options)\b/dgiv,name:"keyword.control.sas"},{captures:{"1":{name:"support.class.sas"},"3":{name:"entity.name.function.sas"}},match:/(%(bquote|do|else|end|eval|global|goto|if|inc|include|index|input|length|let|list|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qscan|qsysfunc|quote|run|scan|str|substr|syscall|sysevalf|sysexec|sysfunc|sysrc|then|to|unquote|upcase|until|while|window)\b)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]*)/dgiv,name:"keyword.other.sas"},{begin:/\b(proc\p{space}*(sql))\b/dgiv,beginCaptures:{"1":{name:"support.function.sas"},"2":{name:"support.class.sas"}},comment:"Looks like for this to work there must be a *name* as well as the patterns/include bit.",end:/\b(quit)\p{space}*;/dgiv,endCaptures:{"1":{name:"keyword.control.sas"}},name:"meta.sql.sas",patterns:[{include:"#starComment"},{include:"#blockComment"},{include:"source.sql"}]},{match:/\b(by|label|format)\b/dgiv,name:"keyword.datastep.sas"},{captures:{"1":{name:"support.function.sas"},"2":{name:"support.class.sas"}},match:/\b(proc ([\p{L}\p{M}\p{N}\p{Pc}]+))\b/dgiv,name:"meta.function-call.sas"},{match:/\b(_n_|_error_)\b/dgiv,name:"variable.language.sas"},{captures:{"1":{name:"support.class.sas"}},match:/*@__PURE__*/ new EmulatedRegExp("\\b(_all_|_character_|_cmd_|_freq_|_i_|_infile_|_last_|_msg_|_null_|_numeric_|_temporary_|_type_|abort|abs|addr|adjrsq|airy|alpha|alter|altlog|altprint|and|arcos|array|arsin|as|atan|attrc|attrib|attrn|authserver|autoexec|awscontrol|awsdef|awsmenu|awsmenumerge|awstitle|backward|band|base|betainv|between|blocksize|blshift|bnot|bor|brshift|bufno|bufsize|bxor|by|byerr|byline|byte|calculated|call|cards|cards4|case|catcache|cbufno|cdf|ceil|center|cexist|change|chisq|cinv|class|cleanup|close|cnonct|cntllev|coalesce|codegen|col|collate|collin|column|comamid|comaux1|comaux2|comdef|compbl|compound|compress|config|continue|convert|cos|cosh|cpuid|create|cross|crosstab|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|datalines|datalines4|date|datejul|datepart|datetime|day|dbcslang|dbcstype|dclose|ddm|delete|delimiter|depdb|depdbsl|depsl|depsyd|deptab|dequote|descending|descript|design=|device|dflang|dhms|dif|digamma|dim|dinfo|display|distinct|dkricond|dkrocond|dlm|dnum|do|dopen|doptname|doptnum|dread|drop|dropnote|dsname|dsnferr|echo|else|emaildlg|emailid|emailpw|emailserver|emailsys|encrypt|end|endsas|engine|eof|eov|erf|erfc|error|errorcheck|errors|exist|exp|fappend|fclose|fcol|fdelete|feedback|fetch|fetchobs|fexist|fget|file|fileclose|fileexist|filefmt|filename|fileref|filevar|finfo|finv|fipname|fipnamel|fipstate|first|firstobs|floor|fmterr|fmtsearch|fnonct|fnote|font|fontalias|footnote[1-9]?|fopen|foptname|foptnum|force|formatted|formchar|formdelim|formdlim|forward|fpoint|fpos|fput|fread|frewind|frlen|from|fsep|full|fullstimer|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|go|goto|group|gwindow|hbar|hbound|helpenv|helploc|hms|honorappearance|hosthelp|hostprint|hour|hpct|html|hvar|ibessel|ibr|id|if|index|indexc|indexw|infile|informat|initcmd|initstmt|inner|input|inputc|inputn|inr|insert|int|intck|intnx|into|intrr|invaliddata|irr|is|jbessel|join|juldate|keep|kentb|kurtosis|label|lag|last|lbound|leave|left|length|levels|lgamma|lib|libname|library|libref|line|linesize|link|list|log|log10|log2|logpdf|logpmf|logsdf|lostcard|lowcase|lrecl|ls|macro|macrogen|maps|mautosource|max|maxdec|maxr|mdy|mean|measures|median|memtype|merge|merror|min|minute|missing|missover|mlogic|mod|mode|model|modify|month|mopen|mort|mprint|mrecall|msglevel|msymtabmax|mvarsize|myy|n|nest|netpv|new|news|nmiss|no|nobatch|nobs|nocaps|nocardimage|nocenter|nocharcode|nocmdmac|nocol|nocum|nodate|nodbcs|nodetails|nodmr|nodms|nodmsbatch|nodup|nodupkey|noduplicates|noechoauto|noequals|noerrorabend|noexitwindows|nofullstimer|noicon|noimplmac|noint|nolist|noloadlist|nomiss|nomlogic|nomprint|nomrecall|nomsgcase|nomstored|nomultenvappl|nonotes|nonumber|noobs|noovp|nopad|nopercent|noprint|noprintinit|normal|norow|norsasuser|nosetinit|nosource|nosource2|nosplash|nosymbolgen|note|notes|notitle|notitles|notsorted|noverbose|noxsync|noxwait|npv|null|number|numkeys|nummousekeys|nway|obs|ods|on|open|option|order|ordinal|otherwise|out|outer|outp=|output|over|ovp|p(1|5|10|25|50|75|90|95|99)|pad|pad2|page|pageno|pagesize|paired|parm|parmcards|path|pathdll|pathname|pdf|peek|peekc|pfkey|pmf|point|poisson|poke|position|printer|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probsig|probt|procleave|project|prt|propcase|prxmatch|prxparse|prxchange|prxposn|ps|put|putc|putn|pw|pwreq|qtr|quote|r|ranbin|rancau|ranexp|rangam|range|ranks|rannor|ranpoi|rantbl|rantri|ranuni|read|recfm|register|regr|remote|remove|rename|repeat|replace|resolve|retain|return|reuse|reverse|rewind|right|round|rsquare|rtf|rtrace|rtraceloc|s|s2|samploc|sasautos|sascontrol|sasfrscr|sashelp|sasmsg|sasmstore|sasscript|sasuser|saving|scan|sdf|second|select|selection|separated|seq|serror|set|setcomm|setot|sign|simple|sin|sinh|siteinfo|skewness|skip|sle|sls|sortedby|sortpgm|sortseq|sortsize|soundex|source2|spedis|splashlocation|split|spool|sqrt|start|std|stderr|stdin|stfips|stimer|stname|stnamel|stop|stopover|strip|subgroup|subpopn|substr|sum|sumwgt|symbol|symbolgen|symget|symput|sysget|sysin|sysleave|sysmsg|sysparm|sysprint|sysprintfont|sysprod|sysrc|system|t|table|tables|tan|tanh|tapeclose|tbufsize|terminal|test|then|time|timepart|tinv|title[1-9]?|tnonct|to|today|tol|tooldef|totper|transformout|translate|trantab|tranwrd|trigamma|trim|trimn|trunc|truncover|type|unformatted|uniform|union|until|upcase|update|user|usericon|uss|validate|value|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vnferr|vtype|vtypex|weekday|weight|when|where|while|wincharset|window|work|workinit|workterm|write|wsum|wsumx|x|xsync|xwait|year|yearcutoff|yes|yyq|zipfips|zipname|zipnamel|zipstate)\\b","dgiv",{"lazyCompile":true}),name:"support.function.sas"}],repository:{blockComment:{patterns:[{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block.slashstar.sas"}]},constant:{patterns:[{comment:"numeric constant",match:/(?<![\&\}])\b[0-9]*\.?[0-9]+([eEdD][\-\+]?[0-9]+)?\b/dgv,name:"constant.numeric.sas"},{comment:"single quote numeric-type constant",match:/(')([^']+)(')(dt|[dt])/dgv,name:"constant.numeric.quote.single.sas"},{comment:"double quote numeric-type constant",match:/(")([^"]+)(")(dt|[dt])/dgv,name:"constant.numeric.quote.double.sas"}]},dataSet:{patterns:[{begin:/(([\p{L}\p{M}\p{N}\p{Pc}]+)\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}?\(/dgv,beginCaptures:{"2":{name:"entity.name.class.libref.sas"},"3":{name:"entity.name.class.dsname.sas"}},comment:"data set with options",end:/\)/dgv,patterns:[{include:"#dataSetOptions"},{include:"#blockComment"},{include:"#macro"},{include:"#constant"},{include:"#quote"},{include:"#operator"}]},{captures:{"2":{name:"entity.name.class.libref.sas"},"3":{name:"entity.name.class.dsname.sas"}},comment:"data set without options",match:/\b(([\p{L}\p{M}\p{N}\p{Pc}]+)\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv}]},dataSetOptions:{patterns:[{match:/(?<=\p{space}|\(|\))(?:ALTER|BUFNO|BUFSIZE|CNTLLEV|COMPRESS|DLDMGACTION|ENCRYPT|ENCRYPTKEY|EXTENDOBSCOUNTER|GENMAX|GENNUM|INDEX|LABEL|OBSBUF|OUTREP|PW|PWREQ|READ|REPEMPTY|REPLACE|REUSE|ROLE|SORTEDBY|SPILL|TOBSNO|TYPE|WRITE|FILECLOSE|FIRSTOBS|IN|OBS|POINTOBS|WHERE|WHEREUP|IDXNAME|IDXWHERE|DROP|KEEP|RENAME)\p{space}?=/dgiv,name:"keyword.other.sas"}]},macro:{patterns:[{match:/(&+[a-z_]([a-z0-9_]+)?(\.+)?)\b/dgiv,name:"variable.other.macro.sas"}]},operator:{patterns:[{match:/([\+\-\*\^\/])/dgv,name:"keyword.operator.arithmetic.sas"},{match:/\b(eq|ne|gt|lt|ge|le|in|not|&|and|or|min|max)\b/dgiv,name:"keyword.operator.comparison.sas"},{match:/([¬\<\>\^\~]?=(:)?|>|<|\||!|¦|¬|^|~|<>|><|\|\|)/dgv,name:"keyword.operator.sas"}]},quote:{patterns:[{begin:/(?<!%)(')/dgv,comment:"single quoted string block",end:/(')([bx])?/dgv,name:"string.quoted.single.sas"},{begin:/(")/dgv,comment:"double quoted string block",end:/(")([bx])?/dgv,name:"string.quoted.double.sas"}]},starComment:{patterns:[{include:"#blockcomment"},{begin:/(?<=;)[\p{space}\%]*\*/dgv,end:/;/dgv,name:"comment.line.inline.star.sas"},{begin:/^[\p{space}\%]*\*/dgv,end:/;/dgv,name:"comment.line.start.sas"}]}},scopeName:"source.sas",embeddedLangs:["sql"],aliases:undefined})
|
|
4
5
|
|
|
5
6
|
export default [
|
|
6
7
|
...sql,
|
package/dist/scala.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Scala",fileTypes:["scala"],firstLineMatch:/^#!\/[^\n]*\b[\p{L}\p{M}\p{N}\p{Pc}]*scala\b/dgv,foldingStartMarker:/\/\*\*|\{\p{space}*(?=\n?$)/dgv,foldingStopMarker:/\*\*\/|^\p{space}*\}/dgv,name:"scala",patterns:[{include:"#code"}],repository:{backQuotedVariable:{match:/`[^\`]+`/dgv},"block-comments":{patterns:[{captures:{"0":{name:"punctuation.definition.comment.scala"}},match:/\/\*\*\//dgv,name:"comment.block.empty.scala"},{begin:/^\p{space}*(\/\*\*)(?!\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.scala"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.scala"}},name:"comment.block.documentation.scala",patterns:[{captures:{"1":{name:"keyword.other.documentation.scaladoc.scala"},"2":{name:"variable.parameter.scala"}},match:/(@param)\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"keyword.other.documentation.scaladoc.scala"},"2":{name:"entity.name.class"}},match:/(@(?:tparam|throws))\p{space}+(\P{space}+)/dgv},{match:/@(return|see|note|example|constructor|usecase|author|version|since|todo|deprecated|migration|define|inheritdoc|groupname|groupprio|groupdesc|group|contentDiagram|documentable|syntax)\b/dgv,name:"keyword.other.documentation.scaladoc.scala"},{captures:{"1":{name:"punctuation.definition.documentation.link.scala"},"2":{name:"string.other.link.title.markdown"},"3":{name:"punctuation.definition.documentation.link.scala"}},match:/(\[\[)([^\]]+)(\]\])/dgv},{include:"#block-comments"}]},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.scala"}},end:/\*\//dgv,name:"comment.block.scala",patterns:[{include:"#block-comments"}]}]},"char-literal":{patterns:[{captures:{"1":{name:"punctuation.definition.character.begin.scala"},"2":{name:"punctuation.definition.character.end.scala"}},match:/(')'(')/dgv,name:"string.quoted.other constant.character.literal.scala"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.character.begin.scala"}},end:/'|(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.definition.character.end.scala"}},name:"string.quoted.other constant.character.literal.scala",patterns:[{match:/\\(?:[btnfr\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})/dgv,name:"constant.character.escape.scala"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-character-escape.scala"},{match:/[^']{2,}/dgv,name:"invalid.illegal.character-literal-too-long"},{match:/(?<!')[^']/dgv,name:"invalid.illegal.character-literal-too-long"}]}]},code:{patterns:[{include:"#using-directive"},{include:"#script-header"},{include:"#storage-modifiers"},{include:"#declarations"},{include:"#inheritance"},{include:"#extension"},{include:"#imports"},{include:"#exports"},{include:"#comments"},{include:"#strings"},{include:"#initialization"},{include:"#xml-literal"},{include:"#namedBounds"},{include:"#keywords"},{include:"#using"},{include:"#constants"},{include:"#singleton-type"},{include:"#inline"},{include:"#scala-quoted-or-symbol"},{include:"#char-literal"},{include:"#empty-parentheses"},{include:"#parameter-list"},{include:"#qualifiedClassName"},{include:"#backQuotedVariable"},{include:"#curly-braces"},{include:"#meta-brackets"},{include:"#meta-bounds"},{include:"#meta-colons"}]},comments:{patterns:[{include:"#block-comments"},{begin:/(^[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.scala"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"search_start_clip"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scala"}},end:/\n/dgv,name:"comment.line.double-slash.scala"}]}]},constants:{patterns:[{match:/\b(false|null|true)\b/dgv,name:"constant.language.scala"},{match:/\b(0[xX][0-9a-fA-F_]*)\b/dgv,name:"constant.numeric.scala"},{match:/\b(([0-9][0-9_]*(\.[0-9][0-9_]*)?)([eE](\+|-)?[0-9][0-9_]*)?|[0-9][0-9_]*)[LlFfDd]?\b/dgv,name:"constant.numeric.scala"},{match:/(\.[0-9][0-9_]*)([eE](\+|-)?[0-9][0-9_]*)?[LlFfDd]?\b/dgv,name:"constant.numeric.scala"},{match:/\b0[bB][01]([01_]*[01])?[Ll]?\b/dgv,name:"constant.numeric.scala"},{match:/\b(this|super)\b/dgv,name:"variable.language.scala"}]},"curly-braces":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.block.begin.scala"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.scala"}},patterns:[{include:"#code"}]},declarations:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.function.declaration"}},match:/\b(def)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.class.declaration"}},match:/\b(trait)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"keyword.declaration.scala"},"3":{name:"entity.name.class.declaration"}},match:/\b(?:(case)\p{space}+)?(class|object|enum)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.type.declaration"}},match:/(?<!\.)\b(type)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.stable.scala"},"2":{name:"keyword.declaration.volatile.scala"}},match:/\b(?:(val)|(var))\b\p{space}*(?!\/\/|\/\*)(?=(?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)?\()/dgv},{captures:{"1":{name:"keyword.declaration.stable.scala"},"2":{name:"variable.stable.declaration.scala"}},match:/\b(val)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)(?:\p{space}*,\p{space}*(?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))*)?(?!")/dgv},{captures:{"1":{name:"keyword.declaration.volatile.scala"},"2":{name:"variable.volatile.declaration.scala"}},match:/\b(var)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)(?:\p{space}*,\p{space}*(?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))*)?(?!")/dgv},{captures:{"1":{name:"keyword.other.package.scala"},"2":{name:"keyword.declaration.scala"},"3":{name:"entity.name.class.declaration"}},match:/\b(package)\p{space}+(object)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{begin:/\b(package)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.package.scala"}},end:/(?<=[\n\;])/dgv,name:"meta.package.scala",patterns:[{include:"#comments"},{match:/(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))/dgv,name:"entity.name.package.scala"},{match:/\./dgv,name:"punctuation.definition.package"}]},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.given.declaration"}},match:/\b(given)\b\p{space}*([_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|`[^\`]+`)?/dgv}]},"empty-parentheses":{captures:{"1":{name:"meta.bracket.scala"}},match:/(\(\))/dgv,name:"meta.parentheses.scala"},exports:{begin:/\b(export)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.export.scala"}},end:/(?<=[\n\;])/dgv,name:"meta.export.scala",patterns:[{include:"#comments"},{match:/\b(given)\b/dgv,name:"keyword.other.export.given.scala"},{match:/[A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?/dgv,name:"entity.name.class.export.scala"},{match:/(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))/dgv,name:"entity.name.export.scala"},{match:/\./dgv,name:"punctuation.definition.export"},{begin:/\{/dgv,beginCaptures:{"0":{name:"meta.bracket.scala"}},end:/\}/dgv,endCaptures:{"0":{name:"meta.bracket.scala"}},name:"meta.export.selector.scala",patterns:[{captures:{"1":{name:"keyword.other.export.given.scala"},"2":{name:"entity.name.class.export.renamed-from.scala"},"3":{name:"entity.name.export.renamed-from.scala"},"4":{name:"keyword.other.arrow.scala"},"5":{name:"entity.name.class.export.renamed-to.scala"},"6":{name:"entity.name.export.renamed-to.scala"}},match:/(given\p{space})?\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*(=>)\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*/dgv},{match:/\b(given)\b/dgv,name:"keyword.other.export.given.scala"},{captures:{"1":{name:"keyword.other.export.given.scala"},"2":{name:"entity.name.class.export.scala"},"3":{name:"entity.name.export.scala"}},match:/(given\p{space}+)?(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))/dgv}]}]},extension:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"}},match:/^\p{space}*(extension)\p{space}+(?=[\[\(])/dgv}]},imports:{begin:/\b(import)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.import.scala"}},end:/(?<=[\n\;])/dgv,name:"meta.import.scala",patterns:[{include:"#comments"},{match:/\b(given)\b/dgv,name:"keyword.other.import.given.scala"},{match:/\p{space}(as)\p{space}/dgv,name:"keyword.other.import.as.scala"},{match:/[A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?/dgv,name:"entity.name.class.import.scala"},{match:/(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))/dgv,name:"entity.name.import.scala"},{match:/\./dgv,name:"punctuation.definition.import"},{begin:/\{/dgv,beginCaptures:{"0":{name:"meta.bracket.scala"}},end:/\}/dgv,endCaptures:{"0":{name:"meta.bracket.scala"}},name:"meta.import.selector.scala",patterns:[{captures:{"1":{name:"keyword.other.import.given.scala"},"2":{name:"entity.name.class.import.renamed-from.scala"},"3":{name:"entity.name.import.renamed-from.scala"},"4":{name:"keyword.other.arrow.scala"},"5":{name:"entity.name.class.import.renamed-to.scala"},"6":{name:"entity.name.import.renamed-to.scala"}},match:/(given\p{space})?\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*(=>)\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*/dgv},{match:/\b(given)\b/dgv,name:"keyword.other.import.given.scala"},{captures:{"1":{name:"keyword.other.import.given.scala"},"2":{name:"entity.name.class.import.scala"},"3":{name:"entity.name.import.scala"}},match:/(given\p{space}+)?(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))/dgv}]}]},inheritance:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.class"}},match:/\b(extends|with|derives)\b\p{space}*([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|`[^\`]+`|(?=\([^\)]+=>)|(?=(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))|(?="))?/dgv}]},initialization:{captures:{"1":{name:"keyword.declaration.scala"}},match:/\b(new)\b/dgv},inline:{patterns:[{match:/\b(inline)(?=\p{space}+((?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)\p{space}*:)/dgv,name:"storage.modifier.other"},{match:/\b(inline)\b(?=(?:[^\n](?!\b(?:val|def|given)\b))*\b(if|match)\b)/dgv,name:"keyword.control.flow.scala"}]},keywords:{patterns:[{match:/\b(return|throw)\b/dgv,name:"keyword.control.flow.jump.scala"},{match:/\b(classOf|isInstanceOf|asInstanceOf)\b/dgv,name:"support.function.type-of.scala"},{match:/\b(else|if|then|do|while|for|yield|match|case)\b/dgv,name:"keyword.control.flow.scala"},{match:/^\p{space}*(end)\p{space}+(if|while|for|match)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv,name:"keyword.control.flow.end.scala"},{match:/^\p{space}*(end)\p{space}+(val)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv,name:"keyword.declaration.stable.end.scala"},{match:/^\p{space}*(end)\p{space}+(var)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv,name:"keyword.declaration.volatile.end.scala"},{captures:{"1":{name:"keyword.declaration.end.scala"},"2":{name:"keyword.declaration.end.scala"},"3":{name:"entity.name.type.declaration"}},match:/^\p{space}*(end)\p{space}+(?:(new|extension)|([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?))(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv},{match:/\b(catch|finally|try)\b/dgv,name:"keyword.control.exception.scala"},{match:/^\p{space}*(end)\p{space}+(try)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv,name:"keyword.control.exception.end.scala"},{captures:{"1":{name:"keyword.declaration.end.scala"},"2":{name:"entity.name.declaration"}},match:/^\p{space}*(end)\p{space}+(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))?(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv},{match:/([\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]|[\\]){3,}/dgv,name:"keyword.operator.scala"},{captures:{"1":{patterns:[{match:/(\|\||&&)/dgv,name:"keyword.operator.logical.scala"},{match:/(!=|==|<=|>=)/dgv,name:"keyword.operator.comparison.scala"},{match:/[^\n][^\n]/dgv,name:"keyword.operator.scala"}]}},match:/((?:[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]|[\\]){2,}|_\*)/dgv},{captures:{"1":{patterns:[{match:/(!)/dgv,name:"keyword.operator.logical.scala"},{match:/(\*|-|\+|\/|%|~)/dgv,name:"keyword.operator.arithmetic.scala"},{match:/(=|<|>)/dgv,name:"keyword.operator.comparison.scala"},{match:/[^\n]/dgv,name:"keyword.operator.scala"}]}},match:/(?<!_)([\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]|\\)/dgv}]},"meta-bounds":{comment:"For themes: Matching view bounds",match:/<%|=:=|<:<|<%<|>:|<:/dgv,name:"meta.bounds.scala"},"meta-brackets":{comment:"For themes: Brackets look nice when colored.",patterns:[{comment:"The punctuation.section.*.begin is needed for return snippet in source bundle",match:/\{/dgv,name:"punctuation.section.block.begin.scala"},{comment:"The punctuation.section.*.end is needed for return snippet in source bundle",match:/\}/dgv,name:"punctuation.section.block.end.scala"},{match:/\{|\}|\(|\)|\[|\]/dgv,name:"meta.bracket.scala"}]},"meta-colons":{comment:"For themes: Matching type colons",patterns:[{match:/(?<!:):(?!:)/dgv,name:"meta.colon.scala"}]},namedBounds:{patterns:[{captures:{"1":{name:"keyword.other.import.as.scala"},"2":{name:"variable.stable.declaration.scala"}},match:/\p{space}+(as)\p{space}+([_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)\b/dgv}]},"parameter-list":{patterns:[{captures:{"1":{name:"variable.parameter.scala"},"2":{name:"meta.colon.scala"}},match:/(?<=[^\._\$a-zA-Z0-9])(`[^\`]+`|[_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)\p{space}*(:)\p{space}+/dgv}]},qualifiedClassName:{captures:{"1":{name:"entity.name.class"}},match:/(\b([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)/dgv},"scala-quoted-or-symbol":{patterns:[{captures:{"1":{name:"keyword.control.flow.staging.scala constant.other.symbol.scala"},"2":{name:"constant.other.symbol.scala"}},match:/*@__PURE__*/ new EmulatedRegExp("(')((?:(?=($E$[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[\\!\\#\\%\\&\\*\\+\\-\\/\\:\\<\\>\\=\\?\\@\\^\\|\\~\\p{Sm}\\p{So}]+)?|[\\!\\#\\%\\&\\*\\+\\-\\/\\:\\<\\>\\=\\?\\@\\^\\|\\~\\p{Sm}\\p{So}]+))\\3))(?!')","dgv",{"useEmulationGroups":true})},{match:/'(?=\p{space}*\{(?!'))/dgv,name:"keyword.control.flow.staging.scala"},{match:/'(?=\p{space}*\[(?!'))/dgv,name:"keyword.control.flow.staging.scala"},{match:/\$(?=\p{space}*\{)/dgv,name:"keyword.control.flow.staging.scala"}]},"script-header":{captures:{"1":{name:"string.unquoted.shebang.scala"}},match:/^#!([^\n]*)(?=\n?$)/dgv,name:"comment.block.shebang.scala"},"singleton-type":{captures:{"1":{name:"keyword.type.scala"}},match:/\.(type)(?![A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[0-9])/dgv},"storage-modifiers":{patterns:[{match:/\b(private\[\P{space}+\]|protected\[\P{space}+\]|private|protected)\b/dgv,name:"storage.modifier.access"},{match:/\b(synchronized|@volatile|abstract|final|lazy|sealed|implicit|override|@transient|@native)\b/dgv,name:"storage.modifier.other"},{match:/(?<=^|\p{space})\b(transparent|opaque|infix|open|inline)\b(?=[a-z\p{space}]*\b(def|val|var|given|type|class|trait|object|enum)\b)/dgv,name:"storage.modifier.other"}]},"string-interpolation":{patterns:[{match:/\$\$/dgv,name:"constant.character.escape.interpolation.scala"},{captures:{"1":{name:"punctuation.definition.template-expression.begin.scala"}},match:/(\$)([A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\p{Lo}\p{Nl}\p{Ll}0-9]*)/dgv,name:"meta.template.expression.scala"},{begin:/\$\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.scala"}},contentName:"meta.embedded.line.scala",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.scala"}},name:"meta.template.expression.scala",patterns:[{include:"#code"}]}]},strings:{patterns:[{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scala"}},end:/"""(?!")/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scala"}},name:"string.quoted.triple.scala",patterns:[{match:/\\\\|\\u[0-9A-Fa-f]{4}/dgv,name:"constant.character.escape.scala"}]},{begin:/\b(raw)(""")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(""")(?!")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{match:/\$[\$"]/dgv,name:"constant.character.escape.scala"},{include:"#string-interpolation"},{match:/[^\n]/dgv,name:"string.quoted.triple.interpolated.scala"}]},{begin:/\b([A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)(""")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(""")(?!")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{include:"#string-interpolation"},{match:/\\\\|\\u[0-9A-Fa-f]{4}/dgv,name:"constant.character.escape.scala"},{match:/[^\n]/dgv,name:"string.quoted.triple.interpolated.scala"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scala"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scala"}},name:"string.quoted.double.scala",patterns:[{match:/\\(?:[btnfr\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})/dgv,name:"constant.character.escape.scala"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-string-escape.scala"}]},{begin:/\b(raw)(")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{match:/\$[\$"]/dgv,name:"constant.character.escape.scala"},{include:"#string-interpolation"},{match:/[^\n]/dgv,name:"string.quoted.double.interpolated.scala"}]},{begin:/\b([A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)(")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{match:/\$[\$"]/dgv,name:"constant.character.escape.scala"},{include:"#string-interpolation"},{match:/\\(?:[btnfr\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})/dgv,name:"constant.character.escape.scala"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-string-escape.scala"},{match:/[^\n]/dgv,name:"string.quoted.double.interpolated.scala"}]}]},using:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"}},match:/(?<=\()\p{space}*(using)\p{space}/dgv}]},"using-directive":{begin:/^\p{space}*(\/\/>)\p{space}*(using)[^\P{space}\n]+(?:(\P{space}+))?/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.scala"},"2":{name:"keyword.other.import.scala"},"3":{patterns:[{match:/[A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)/dgv,name:"entity.name.import.scala"},{match:/\./dgv,name:"punctuation.definition.import"}]}},end:/\n/dgv,name:"comment.line.shebang.scala",patterns:[{include:"#constants"},{include:"#strings"},{match:/[^\p{space}\,]+/dgv,name:"string.quoted.double.scala"}]},"xml-doublequotedString":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.quoted.double.xml",patterns:[{include:"#xml-entity"}]},"xml-embedded-content":{patterns:[{begin:/\{/dgv,captures:{"0":{name:"meta.bracket.scala"}},end:/\}/dgv,name:"meta.source.embedded.scala",patterns:[{include:"#code"}]},{captures:{"1":{name:"entity.other.attribute-name.namespace.xml"},"2":{name:"entity.other.attribute-name.xml"},"3":{name:"punctuation.separator.namespace.xml"},"4":{name:"entity.other.attribute-name.localname.xml"}},match:/ (?:([\-_a-zA-Z0-9]+)((:)))?([_a-zA-Z\-]+)=/dgv},{include:"#xml-doublequotedString"},{include:"#xml-singlequotedString"}]},"xml-entity":{captures:{"1":{name:"punctuation.definition.constant.xml"},"3":{name:"punctuation.definition.constant.xml"}},match:/(&)([\:a-zA-Z_][\:a-zA-Z0-9_\.\-]*|#[0-9]+|#x[0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.xml"},"xml-literal":{patterns:[{begin:/(<)((?:([_a-zA-Z0-9][_a-zA-Z0-9]*)((:)))?([_a-zA-Z0-9][\-_a-zA-Z0-9\:]*))(?=(\p{space}[^\>]*)?><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.xml"},"3":{name:"entity.name.tag.namespace.xml"},"4":{name:"entity.name.tag.xml"},"5":{name:"punctuation.separator.namespace.xml"},"6":{name:"entity.name.tag.localname.xml"}},comment:"We do not allow a tag name to start with a - since this would likely conflict with the <- operator. This is not very common for tag names anyway. Also code such as -- if (val <val2 || val> val3) will falsly be recognized as an xml tag. The solution is to put a space on either side of the comparison operator",end:/(>(<))\/(?:([\-_a-zA-Z0-9]+)((:)))?([\-_a-zA-Z0-9\:]*[_a-zA-Z0-9])(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"meta.scope.between-tag-pair.xml"},"3":{name:"entity.name.tag.namespace.xml"},"4":{name:"entity.name.tag.xml"},"5":{name:"punctuation.separator.namespace.xml"},"6":{name:"entity.name.tag.localname.xml"},"7":{name:"punctuation.definition.tag.xml"}},name:"meta.tag.no-content.xml",patterns:[{include:"#xml-embedded-content"}]},{begin:/(<\/?)(?:([_a-zA-Z0-9][\-_a-zA-Z0-9]*)((:)))?([_a-zA-Z0-9][\-_a-zA-Z0-9\:]*)(?=[^\>]*?>)/dgv,captures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"entity.name.tag.namespace.xml"},"3":{name:"entity.name.tag.xml"},"4":{name:"punctuation.separator.namespace.xml"},"5":{name:"entity.name.tag.localname.xml"}},end:/(\/?>)/dgv,name:"meta.tag.xml",patterns:[{include:"#xml-embedded-content"}]},{include:"#xml-entity"}]},"xml-singlequotedString":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.quoted.single.xml",patterns:[{include:"#xml-entity"}]}},scopeName:"source.scala",embeddedLangs:undefined,aliases:undefined})
|
|
3
|
+
const lang = Object.freeze({displayName:"Scala",fileTypes:["scala"],firstLineMatch:/^#!\/[^\n]*\b[\p{L}\p{M}\p{N}\p{Pc}]*scala\b/dgv,foldingStartMarker:/\/\*\*|\{\p{space}*(?=\n?$)/dgv,foldingStopMarker:/\*\*\/|^\p{space}*\}/dgv,name:"scala",patterns:[{include:"#code"}],repository:{backQuotedVariable:{match:/`[^\`]+`/dgv},"block-comments":{patterns:[{captures:{"0":{name:"punctuation.definition.comment.scala"}},match:/\/\*\*\//dgv,name:"comment.block.empty.scala"},{begin:/^\p{space}*(\/\*\*)(?!\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.scala"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.scala"}},name:"comment.block.documentation.scala",patterns:[{captures:{"1":{name:"keyword.other.documentation.scaladoc.scala"},"2":{name:"variable.parameter.scala"}},match:/(@param)\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"keyword.other.documentation.scaladoc.scala"},"2":{name:"entity.name.class"}},match:/(@(?:tparam|throws))\p{space}+(\P{space}+)/dgv},{match:/@(return|see|note|example|constructor|usecase|author|version|since|todo|deprecated|migration|define|inheritdoc|groupname|groupprio|groupdesc|group|contentDiagram|documentable|syntax)\b/dgv,name:"keyword.other.documentation.scaladoc.scala"},{captures:{"1":{name:"punctuation.definition.documentation.link.scala"},"2":{name:"string.other.link.title.markdown"},"3":{name:"punctuation.definition.documentation.link.scala"}},match:/(\[\[)([^\]]+)(\]\])/dgv},{include:"#block-comments"}]},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.scala"}},end:/\*\//dgv,name:"comment.block.scala",patterns:[{include:"#block-comments"}]}]},"char-literal":{patterns:[{captures:{"1":{name:"punctuation.definition.character.begin.scala"},"2":{name:"punctuation.definition.character.end.scala"}},match:/(')'(')/dgv,name:"string.quoted.other constant.character.literal.scala"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.character.begin.scala"}},end:/'|(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.definition.character.end.scala"}},name:"string.quoted.other constant.character.literal.scala",patterns:[{match:/\\(?:[btnfr\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})/dgv,name:"constant.character.escape.scala"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-character-escape.scala"},{match:/[^']{2,}/dgv,name:"invalid.illegal.character-literal-too-long"},{match:/(?<!')[^']/dgv,name:"invalid.illegal.character-literal-too-long"}]}]},code:{patterns:[{include:"#using-directive"},{include:"#script-header"},{include:"#storage-modifiers"},{include:"#declarations"},{include:"#inheritance"},{include:"#extension"},{include:"#imports"},{include:"#exports"},{include:"#comments"},{include:"#strings"},{include:"#initialization"},{include:"#xml-literal"},{include:"#namedBounds"},{include:"#keywords"},{include:"#using"},{include:"#constants"},{include:"#singleton-type"},{include:"#inline"},{include:"#scala-quoted-or-symbol"},{include:"#char-literal"},{include:"#empty-parentheses"},{include:"#parameter-list"},{include:"#qualifiedClassName"},{include:"#backQuotedVariable"},{include:"#curly-braces"},{include:"#meta-brackets"},{include:"#meta-bounds"},{include:"#meta-colons"}]},comments:{patterns:[{include:"#block-comments"},{begin:/(^[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.scala"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scala"}},end:/\n/dgv,name:"comment.line.double-slash.scala"}]}]},constants:{patterns:[{match:/\b(false|null|true)\b/dgv,name:"constant.language.scala"},{match:/\b(0[xX][0-9a-fA-F_]*)\b/dgv,name:"constant.numeric.scala"},{match:/\b(([0-9][0-9_]*(\.[0-9][0-9_]*)?)([eE](\+|-)?[0-9][0-9_]*)?|[0-9][0-9_]*)[LlFfDd]?\b/dgv,name:"constant.numeric.scala"},{match:/(\.[0-9][0-9_]*)([eE](\+|-)?[0-9][0-9_]*)?[LlFfDd]?\b/dgv,name:"constant.numeric.scala"},{match:/\b0[bB][01]([01_]*[01])?[Ll]?\b/dgv,name:"constant.numeric.scala"},{match:/\b(this|super)\b/dgv,name:"variable.language.scala"}]},"curly-braces":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.block.begin.scala"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.scala"}},patterns:[{include:"#code"}]},declarations:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.function.declaration"}},match:/\b(def)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.class.declaration"}},match:/\b(trait)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"keyword.declaration.scala"},"3":{name:"entity.name.class.declaration"}},match:/\b(?:(case)\p{space}+)?(class|object|enum)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.type.declaration"}},match:/(?<!\.)\b(type)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.stable.scala"},"2":{name:"keyword.declaration.volatile.scala"}},match:/\b(?:(val)|(var))\b\p{space}*(?!\/\/|\/\*)(?=(?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)?\()/dgv},{captures:{"1":{name:"keyword.declaration.stable.scala"},"2":{name:"variable.stable.declaration.scala"}},match:/\b(val)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)(?:\p{space}*,\p{space}*(?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))*)?(?!")/dgv},{captures:{"1":{name:"keyword.declaration.volatile.scala"},"2":{name:"variable.volatile.declaration.scala"}},match:/\b(var)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)(?:\p{space}*,\p{space}*(?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))*)?(?!")/dgv},{captures:{"1":{name:"keyword.other.package.scala"},"2":{name:"keyword.declaration.scala"},"3":{name:"entity.name.class.declaration"}},match:/\b(package)\p{space}+(object)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{begin:/\b(package)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.package.scala"}},end:/(?<=[\n\;])/dgv,name:"meta.package.scala",patterns:[{include:"#comments"},{match:/(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))/dgv,name:"entity.name.package.scala"},{match:/\./dgv,name:"punctuation.definition.package"}]},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.given.declaration"}},match:/\b(given)\b\p{space}*([_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|`[^\`]+`)?/dgv}]},"empty-parentheses":{captures:{"1":{name:"meta.bracket.scala"}},match:/(\(\))/dgv,name:"meta.parentheses.scala"},exports:{begin:/\b(export)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.export.scala"}},end:/(?<=[\n\;])/dgv,name:"meta.export.scala",patterns:[{include:"#comments"},{match:/\b(given)\b/dgv,name:"keyword.other.export.given.scala"},{match:/[A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?/dgv,name:"entity.name.class.export.scala"},{match:/(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))/dgv,name:"entity.name.export.scala"},{match:/\./dgv,name:"punctuation.definition.export"},{begin:/\{/dgv,beginCaptures:{"0":{name:"meta.bracket.scala"}},end:/\}/dgv,endCaptures:{"0":{name:"meta.bracket.scala"}},name:"meta.export.selector.scala",patterns:[{captures:{"1":{name:"keyword.other.export.given.scala"},"2":{name:"entity.name.class.export.renamed-from.scala"},"3":{name:"entity.name.export.renamed-from.scala"},"4":{name:"keyword.other.arrow.scala"},"5":{name:"entity.name.class.export.renamed-to.scala"},"6":{name:"entity.name.export.renamed-to.scala"}},match:/(given\p{space})?\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*(=>)\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*/dgv},{match:/\b(given)\b/dgv,name:"keyword.other.export.given.scala"},{captures:{"1":{name:"keyword.other.export.given.scala"},"2":{name:"entity.name.class.export.scala"},"3":{name:"entity.name.export.scala"}},match:/(given\p{space}+)?(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))/dgv}]}]},extension:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"}},match:/^\p{space}*(extension)\p{space}+(?=[\[\(])/dgv}]},imports:{begin:/\b(import)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.import.scala"}},end:/(?<=[\n\;])/dgv,name:"meta.import.scala",patterns:[{include:"#comments"},{match:/\b(given)\b/dgv,name:"keyword.other.import.given.scala"},{match:/\p{space}(as)\p{space}/dgv,name:"keyword.other.import.as.scala"},{match:/[A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?/dgv,name:"entity.name.class.import.scala"},{match:/(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))/dgv,name:"entity.name.import.scala"},{match:/\./dgv,name:"punctuation.definition.import"},{begin:/\{/dgv,beginCaptures:{"0":{name:"meta.bracket.scala"}},end:/\}/dgv,endCaptures:{"0":{name:"meta.bracket.scala"}},name:"meta.import.selector.scala",patterns:[{captures:{"1":{name:"keyword.other.import.given.scala"},"2":{name:"entity.name.class.import.renamed-from.scala"},"3":{name:"entity.name.import.renamed-from.scala"},"4":{name:"keyword.other.arrow.scala"},"5":{name:"entity.name.class.import.renamed-to.scala"},"6":{name:"entity.name.import.renamed-to.scala"}},match:/(given\p{space})?\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*(=>)\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*/dgv},{match:/\b(given)\b/dgv,name:"keyword.other.import.given.scala"},{captures:{"1":{name:"keyword.other.import.given.scala"},"2":{name:"entity.name.class.import.scala"},"3":{name:"entity.name.import.scala"}},match:/(given\p{space}+)?(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))/dgv}]}]},inheritance:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.class"}},match:/\b(extends|with|derives)\b\p{space}*([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|`[^\`]+`|(?=\([^\)]+=>)|(?=(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))|(?="))?/dgv}]},initialization:{captures:{"1":{name:"keyword.declaration.scala"}},match:/\b(new)\b/dgv},inline:{patterns:[{match:/\b(inline)(?=\p{space}+((?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)\p{space}*:)/dgv,name:"storage.modifier.other"},{match:/\b(inline)\b(?=(?:[^\n](?!\b(?:val|def|given)\b))*\b(if|match)\b)/dgv,name:"keyword.control.flow.scala"}]},keywords:{patterns:[{match:/\b(return|throw)\b/dgv,name:"keyword.control.flow.jump.scala"},{match:/\b(classOf|isInstanceOf|asInstanceOf)\b/dgv,name:"support.function.type-of.scala"},{match:/\b(else|if|then|do|while|for|yield|match|case)\b/dgv,name:"keyword.control.flow.scala"},{match:/^\p{space}*(end)\p{space}+(if|while|for|match)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv,name:"keyword.control.flow.end.scala"},{match:/^\p{space}*(end)\p{space}+(val)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv,name:"keyword.declaration.stable.end.scala"},{match:/^\p{space}*(end)\p{space}+(var)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv,name:"keyword.declaration.volatile.end.scala"},{captures:{"1":{name:"keyword.declaration.end.scala"},"2":{name:"keyword.declaration.end.scala"},"3":{name:"entity.name.type.declaration"}},match:/^\p{space}*(end)\p{space}+(?:(new|extension)|([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?))(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv},{match:/\b(catch|finally|try)\b/dgv,name:"keyword.control.exception.scala"},{match:/^\p{space}*(end)\p{space}+(try)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv,name:"keyword.control.exception.end.scala"},{captures:{"1":{name:"keyword.declaration.end.scala"},"2":{name:"entity.name.declaration"}},match:/^\p{space}*(end)\p{space}+(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))?(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=\n?$))/dgv},{match:/([\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]|[\\]){3,}/dgv,name:"keyword.operator.scala"},{captures:{"1":{patterns:[{match:/(\|\||&&)/dgv,name:"keyword.operator.logical.scala"},{match:/(!=|==|<=|>=)/dgv,name:"keyword.operator.comparison.scala"},{match:/[^\n][^\n]/dgv,name:"keyword.operator.scala"}]}},match:/((?:[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]|[\\]){2,}|_\*)/dgv},{captures:{"1":{patterns:[{match:/(!)/dgv,name:"keyword.operator.logical.scala"},{match:/(\*|-|\+|\/|%|~)/dgv,name:"keyword.operator.arithmetic.scala"},{match:/(=|<|>)/dgv,name:"keyword.operator.comparison.scala"},{match:/[^\n]/dgv,name:"keyword.operator.scala"}]}},match:/(?<!_)([\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]|\\)/dgv}]},"meta-bounds":{comment:"For themes: Matching view bounds",match:/<%|=:=|<:<|<%<|>:|<:/dgv,name:"meta.bounds.scala"},"meta-brackets":{comment:"For themes: Brackets look nice when colored.",patterns:[{comment:"The punctuation.section.*.begin is needed for return snippet in source bundle",match:/\{/dgv,name:"punctuation.section.block.begin.scala"},{comment:"The punctuation.section.*.end is needed for return snippet in source bundle",match:/\}/dgv,name:"punctuation.section.block.end.scala"},{match:/\{|\}|\(|\)|\[|\]/dgv,name:"meta.bracket.scala"}]},"meta-colons":{comment:"For themes: Matching type colons",patterns:[{match:/(?<!:):(?!:)/dgv,name:"meta.colon.scala"}]},namedBounds:{patterns:[{captures:{"1":{name:"keyword.other.import.as.scala"},"2":{name:"variable.stable.declaration.scala"}},match:/\p{space}+(as)\p{space}+([_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)\b/dgv}]},"parameter-list":{patterns:[{captures:{"1":{name:"variable.parameter.scala"},"2":{name:"meta.colon.scala"}},match:/(?<=[^\._\$a-zA-Z0-9])(`[^\`]+`|[_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)\p{space}*(:)\p{space}+/dgv}]},qualifiedClassName:{captures:{"1":{name:"entity.name.class"}},match:/(\b([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)/dgv},"scala-quoted-or-symbol":{patterns:[{captures:{"1":{name:"keyword.control.flow.staging.scala constant.other.symbol.scala"},"2":{name:"constant.other.symbol.scala"}},match:/*@__PURE__*/ new EmulatedRegExp("(')((?:(?=([A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[\\!\\#\\%\\&\\*\\+\\-\\/\\:\\<\\>\\=\\?\\@\\^\\|\\~\\p{Sm}\\p{So}]+)?|[\\!\\#\\%\\&\\*\\+\\-\\/\\:\\<\\>\\=\\?\\@\\^\\|\\~\\p{Sm}\\p{So}]+))\\3))(?!')","dgv",{"hiddenCaptures":[3]})},{match:/'(?=\p{space}*\{(?!'))/dgv,name:"keyword.control.flow.staging.scala"},{match:/'(?=\p{space}*\[(?!'))/dgv,name:"keyword.control.flow.staging.scala"},{match:/\$(?=\p{space}*\{)/dgv,name:"keyword.control.flow.staging.scala"}]},"script-header":{captures:{"1":{name:"string.unquoted.shebang.scala"}},match:/^#!([^\n]*)(?=\n?$)/dgv,name:"comment.block.shebang.scala"},"singleton-type":{captures:{"1":{name:"keyword.type.scala"}},match:/\.(type)(?![A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[0-9])/dgv},"storage-modifiers":{patterns:[{match:/\b(private\[\P{space}+\]|protected\[\P{space}+\]|private|protected)\b/dgv,name:"storage.modifier.access"},{match:/\b(synchronized|@volatile|abstract|final|lazy|sealed|implicit|override|@transient|@native)\b/dgv,name:"storage.modifier.other"},{match:/(?<=^|\p{space})\b(transparent|opaque|infix|open|inline)\b(?=[a-z\p{space}]*\b(def|val|var|given|type|class|trait|object|enum)\b)/dgv,name:"storage.modifier.other"}]},"string-interpolation":{patterns:[{match:/\$\$/dgv,name:"constant.character.escape.interpolation.scala"},{captures:{"1":{name:"punctuation.definition.template-expression.begin.scala"}},match:/(\$)([A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\p{Lo}\p{Nl}\p{Ll}0-9]*)/dgv,name:"meta.template.expression.scala"},{begin:/\$\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.scala"}},contentName:"meta.embedded.line.scala",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.scala"}},name:"meta.template.expression.scala",patterns:[{include:"#code"}]}]},strings:{patterns:[{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scala"}},end:/"""(?!")/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scala"}},name:"string.quoted.triple.scala",patterns:[{match:/\\\\|\\u[0-9A-Fa-f]{4}/dgv,name:"constant.character.escape.scala"}]},{begin:/\b(raw)(""")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(""")(?!")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{match:/\$[\$"]/dgv,name:"constant.character.escape.scala"},{include:"#string-interpolation"},{match:/[^\n]/dgv,name:"string.quoted.triple.interpolated.scala"}]},{begin:/\b([A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)(""")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(""")(?!")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{include:"#string-interpolation"},{match:/\\\\|\\u[0-9A-Fa-f]{4}/dgv,name:"constant.character.escape.scala"},{match:/[^\n]/dgv,name:"string.quoted.triple.interpolated.scala"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scala"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scala"}},name:"string.quoted.double.scala",patterns:[{match:/\\(?:[btnfr\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})/dgv,name:"constant.character.escape.scala"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-string-escape.scala"}]},{begin:/\b(raw)(")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{match:/\$[\$"]/dgv,name:"constant.character.escape.scala"},{include:"#string-interpolation"},{match:/[^\n]/dgv,name:"string.quoted.double.interpolated.scala"}]},{begin:/\b([A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)(")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{match:/\$[\$"]/dgv,name:"constant.character.escape.scala"},{include:"#string-interpolation"},{match:/\\(?:[btnfr\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})/dgv,name:"constant.character.escape.scala"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-string-escape.scala"},{match:/[^\n]/dgv,name:"string.quoted.double.interpolated.scala"}]}]},using:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"}},match:/(?<=\()\p{space}*(using)\p{space}/dgv}]},"using-directive":{begin:/^\p{space}*(\/\/>)\p{space}*(using)[^\P{space}\n]+(?:(\P{space}+))?/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.scala"},"2":{name:"keyword.other.import.scala"},"3":{patterns:[{match:/[A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)/dgv,name:"entity.name.import.scala"},{match:/\./dgv,name:"punctuation.definition.import"}]}},end:/\n/dgv,name:"comment.line.shebang.scala",patterns:[{include:"#constants"},{include:"#strings"},{match:/[^\p{space}\,]+/dgv,name:"string.quoted.double.scala"}]},"xml-doublequotedString":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.quoted.double.xml",patterns:[{include:"#xml-entity"}]},"xml-embedded-content":{patterns:[{begin:/\{/dgv,captures:{"0":{name:"meta.bracket.scala"}},end:/\}/dgv,name:"meta.source.embedded.scala",patterns:[{include:"#code"}]},{captures:{"1":{name:"entity.other.attribute-name.namespace.xml"},"2":{name:"entity.other.attribute-name.xml"},"3":{name:"punctuation.separator.namespace.xml"},"4":{name:"entity.other.attribute-name.localname.xml"}},match:/ (?:([\-_a-zA-Z0-9]+)((:)))?([_a-zA-Z\-]+)=/dgv},{include:"#xml-doublequotedString"},{include:"#xml-singlequotedString"}]},"xml-entity":{captures:{"1":{name:"punctuation.definition.constant.xml"},"3":{name:"punctuation.definition.constant.xml"}},match:/(&)([\:a-zA-Z_][\:a-zA-Z0-9_\.\-]*|#[0-9]+|#x[0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.xml"},"xml-literal":{patterns:[{begin:/(<)((?:([_a-zA-Z0-9][_a-zA-Z0-9]*)((:)))?([_a-zA-Z0-9][\-_a-zA-Z0-9\:]*))(?=(\p{space}[^\>]*)?><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.xml"},"3":{name:"entity.name.tag.namespace.xml"},"4":{name:"entity.name.tag.xml"},"5":{name:"punctuation.separator.namespace.xml"},"6":{name:"entity.name.tag.localname.xml"}},comment:"We do not allow a tag name to start with a - since this would likely conflict with the <- operator. This is not very common for tag names anyway. Also code such as -- if (val <val2 || val> val3) will falsly be recognized as an xml tag. The solution is to put a space on either side of the comparison operator",end:/(>(<))\/(?:([\-_a-zA-Z0-9]+)((:)))?([\-_a-zA-Z0-9\:]*[_a-zA-Z0-9])(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"meta.scope.between-tag-pair.xml"},"3":{name:"entity.name.tag.namespace.xml"},"4":{name:"entity.name.tag.xml"},"5":{name:"punctuation.separator.namespace.xml"},"6":{name:"entity.name.tag.localname.xml"},"7":{name:"punctuation.definition.tag.xml"}},name:"meta.tag.no-content.xml",patterns:[{include:"#xml-embedded-content"}]},{begin:/(<\/?)(?:([_a-zA-Z0-9][\-_a-zA-Z0-9]*)((:)))?([_a-zA-Z0-9][\-_a-zA-Z0-9\:]*)(?=[^\>]*?>)/dgv,captures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"entity.name.tag.namespace.xml"},"3":{name:"entity.name.tag.xml"},"4":{name:"punctuation.separator.namespace.xml"},"5":{name:"entity.name.tag.localname.xml"}},end:/(\/?>)/dgv,name:"meta.tag.xml",patterns:[{include:"#xml-embedded-content"}]},{include:"#xml-entity"}]},"xml-singlequotedString":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.quoted.single.xml",patterns:[{include:"#xml-entity"}]}},scopeName:"source.scala",embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/scheme.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Scheme",fileTypes:["scm","ss","sch","rkt"],name:"scheme",patterns:[{include:"#comment"},{include:"#block-comment"},{include:"#sexp"},{include:"#string"},{include:"#language-functions"},{include:"#quote"},{include:"#illegal"}],repository:{"block-comment":{begin:/#\|/dgv,contentName:"comment",end:/\|#/dgv,name:"comment",patterns:[{include:"#block-comment",name:"comment"}]},comment:{begin:/(^[ \t]+)?(?=;)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.scheme"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"
|
|
3
|
+
const lang = Object.freeze({displayName:"Scheme",fileTypes:["scm","ss","sch","rkt"],name:"scheme",patterns:[{include:"#comment"},{include:"#block-comment"},{include:"#sexp"},{include:"#string"},{include:"#language-functions"},{include:"#quote"},{include:"#illegal"}],repository:{"block-comment":{begin:/#\|/dgv,contentName:"comment",end:/\|#/dgv,name:"comment",patterns:[{include:"#block-comment",name:"comment"}]},comment:{begin:/(^[ \t]+)?(?=;)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.scheme"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/;/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scheme"}},end:/\n/dgv,name:"comment.line.semicolon.scheme"}]},constants:{patterns:[{match:/#[t\|f]/dgv,name:"constant.language.boolean.scheme"},{match:/(?<=[\(\p{space}])((#e|#i)?[0-9]+(\.[0-9]+)?|(#x)[0-9a-fA-F]+|(#o)[0-7]+|(#b)[01]+)(?=[\p{space}\;\(\)'"\,\[\]])/dgv,name:"constant.numeric.scheme"}]},illegal:{match:/[\(\)\[\]]/dgv,name:"invalid.illegal.parenthesis.scheme"},"language-functions":{patterns:[{match:/(?<=(\p{space}|\(|\[))(do|or|and|else|quasiquote|begin|if|case|set!|cond|let|unquote|define|let\*|unquote-splicing|delay|letrec)(?=(\p{space}|\())/dgv,name:"keyword.control.scheme"},{comment:"\n\t\t\t\t\t\tThese functions run a test, and return a boolean\n\t\t\t\t\t\tanswer.\n\t\t\t\t\t",match:/(?<=(\p{space}|\())(char-alphabetic|char-lower-case|char-numeric|char-ready|char-upper-case|char-whitespace|(?:char|string)(?:-ci)?(?:=|<=?|>=?)|atom|boolean|bound-identifier=|char|complex|identifier|integer|symbol|free-identifier=|inexact|eof-object|exact|list|(?:input|output)-port|pair|real|rational|zero|vector|negative|odd|null|string|eq|equal|eqv|even|number|positive|procedure)(\?)(?=(\p{space}|\())/dgv,name:"support.function.boolean-test.scheme"},{comment:"\n\t\t\t\t\t\tThese functions change one type into another.\n\t\t\t\t\t",match:/(?<=(\p{space}|\())(char->integer|exact->inexact|inexact->exact|integer->char|symbol->string|list->vector|list->string|identifier->symbol|vector->list|string->list|string->number|string->symbol|number->string)(?=(\p{space}|\())/dgv,name:"support.function.convert-type.scheme"},{comment:"\n\t\t\t\t\t\tThese functions are potentially dangerous because\n\t\t\t\t\t\tthey have side-effects which could affect other\n\t\t\t\t\t\tparts of the program.\n\t\t\t\t\t",match:/(?<=(\p{space}|\())(set-(?:car|cdr)|(?:vector|string)-(?:fill|set))(!)(?=(\p{space}|\())/dgv,name:"support.function.with-side-effects.scheme"},{comment:"\n\t\t\t\t\t\t+, -, *, /, =, >, etc. \n\t\t\t\t\t",match:/(?<=(\p{space}|\())(>=?|<=?|=|[\*\/\+\-])(?=(\p{space}|\())/dgv,name:"keyword.operator.arithmetic.scheme"},{match:/(?<=(\p{space}|\())(append|apply|approximate|call-with-current-continuation|call\/cc|catch|construct-identifier|define-syntax|display|foo|for-each|force|format|cd|gen-counter|gen-loser|generate-identifier|last-pair|length|let-syntax|letrec-syntax|list|list-ref|list-tail|load|log|macro|magnitude|map|map-streams|max|member|memq|memv|min|newline|nil|not|peek-char|rationalize|read|read-char|return|reverse|sequence|substring|syntax|syntax-rules|transcript-off|transcript-on|truncate|unwrap-syntax|values-list|write|write-char|cons|c(a|d){1,4}r|abs|acos|angle|asin|assoc|assq|assv|atan|ceiling|cos|floor|round|sin|sqrt|tan|(?:real|imag)-part|numerator|denominatormodulo|exp|expt|remainder|quotient|lcm|call-with-(?:input|output)-file|(?:close|current)-(?:input|output)-port|with-(?:input|output)-from-file|open-(?:input|output)-file|char-(?:downcase|upcase|ready)|make-(?:polar|promise|rectangular|string|vector)string(?:-(?:append|copy|length|ref))?|vector(?:-length|-ref))(?=(\p{space}|\())/dgv,name:"support.function.general.scheme"}]},quote:{comment:"\n\t\t\t\tWe need to be able to quote any kind of item, which creates\n\t\t\t\ta tiny bit of complexity in our grammar. It is hopefully\n\t\t\t\tnot overwhelming complexity.\n\t\t\t\t\n\t\t\t\tNote: the first two matches are special cases. quoted\n\t\t\t\tsymbols, and quoted empty lists are considered constant.other\n\t\t\t\t\n\t\t\t",patterns:[{captures:{"1":{name:"punctuation.section.quoted.symbol.scheme"}},match:/(')\p{space}*([\p{Alpha}\p{Nd}][\p{Alpha}\p{Nd}\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*)/dgv,name:"constant.other.symbol.scheme"},{captures:{"1":{name:"punctuation.section.quoted.empty-list.scheme"},"2":{name:"meta.expression.scheme"},"3":{name:"punctuation.section.expression.begin.scheme"},"4":{name:"punctuation.section.expression.end.scheme"}},match:/(')\p{space}*((\()\p{space}*(\)))/dgv,name:"constant.other.empty-list.schem"},{begin:/(')\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.section.quoted.scheme"}},comment:"quoted double-quoted string or s-expression",end:/(?=[\p{space}\(\)])|(?<=\n)/dgv,name:"string.other.quoted-object.scheme",patterns:[{include:"#quoted"}]}]},"quote-sexp":{begin:/(?<=\()\p{space}*(quote)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.control.quote.scheme"}},comment:"\n\t\t\t\tSomething quoted with (quote «thing»). In this case «thing»\n\t\t\t\twill not be evaluated, so we are considering it a string.\n\t\t\t",contentName:"string.other.quote.scheme",end:/(?=[\p{space}\)])|(?<=\n)/dgv,patterns:[{include:"#quoted"}]},quoted:{patterns:[{include:"#string"},{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.section.expression.begin.scheme"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.expression.end.scheme"}},name:"meta.expression.scheme",patterns:[{include:"#quoted"}]},{include:"#quote"},{include:"#illegal"}]},sexp:{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.section.expression.begin.scheme"}},end:/(\))(\n)?/dgv,endCaptures:{"1":{name:"punctuation.section.expression.end.scheme"},"2":{name:"meta.after-expression.scheme"}},name:"meta.expression.scheme",patterns:[{include:"#comment"},{begin:/(?<=\()(define)\p{space}+(\()([\p{Alpha}\p{Nd}][\p{Alpha}\p{Nd}\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*)((\p{space}+([\p{Alpha}\p{Nd}][\p{Alpha}\p{Nd}\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*|[\._]))*)\p{space}*(\))/dgv,captures:{"1":{name:"keyword.control.scheme"},"2":{name:"punctuation.definition.function.scheme"},"3":{name:"entity.name.function.scheme"},"4":{name:"variable.parameter.function.scheme"},"7":{name:"punctuation.definition.function.scheme"}},end:/(?=\))/dgv,name:"meta.declaration.procedure.scheme",patterns:[{include:"#comment"},{include:"#sexp"},{include:"#illegal"}]},{begin:/(?<=\()(lambda)\p{space}+(\()((?:([\p{Alpha}\p{Nd}][\p{Alpha}\p{Nd}\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*|[\._])\p{space}+)*(?:([\p{Alpha}\p{Nd}][\p{Alpha}\p{Nd}\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*|[\._]))?)(\))/dgv,captures:{"1":{name:"keyword.control.scheme"},"2":{name:"punctuation.definition.variable.scheme"},"3":{name:"variable.parameter.scheme"},"6":{name:"punctuation.definition.variable.scheme"}},comment:"\n\t\t\t\t\t\tNot sure this one is quite correct. That \\s* is\n\t\t\t\t\t\tparticularly troubling\n\t\t\t\t\t",end:/(?=\))/dgv,name:"meta.declaration.procedure.scheme",patterns:[{include:"#comment"},{include:"#sexp"},{include:"#illegal"}]},{begin:/(?<=\()(define)\p{space}([\p{Alpha}\p{Nd}][\p{Alpha}\p{Nd}\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*)\p{space}*[^\n]*?/dgv,captures:{"1":{name:"keyword.control.scheme"},"2":{name:"variable.other.scheme"}},end:/(?=\))/dgv,name:"meta.declaration.variable.scheme",patterns:[{include:"#comment"},{include:"#sexp"},{include:"#illegal"}]},{include:"#quote-sexp"},{include:"#quote"},{include:"#language-functions"},{include:"#string"},{include:"#constants"},{match:/(?<=[\(\p{space}])(#\\)(space|newline|tab)(?=[\p{space}\)])/dgv,name:"constant.character.named.scheme"},{match:/(?<=[\(\p{space}])(#\\)x[0-9A-F]{2,4}(?=[\p{space}\)])/dgv,name:"constant.character.hex-literal.scheme"},{match:/(?<=[\(\p{space}])(#\\)[^\n](?=[\p{space}\)])/dgv,name:"constant.character.escape.scheme"},{comment:"\n\t\t\t\t\t\tthe . in (a . b) which conses together two elements\n\t\t\t\t\t\ta and b. (a b c) == (a . (b . (c . nil)))\n\t\t\t\t\t",match:/(?<=[ \(\)])\.(?=[ \(\)])/dgv,name:"punctuation.separator.cons.scheme"},{include:"#sexp"},{include:"#illegal"}]},string:{begin:/(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.scheme"}},end:/(")/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.scheme"}},name:"string.quoted.double.scheme",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.scheme"}]}},scopeName:"source.scheme",embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/scss.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
import css from './css.mjs'
|
|
3
3
|
|
|
4
|
-
const lang = Object.freeze({displayName:"SCSS",name:"scss",patterns:[{include:"#variable_setting"},{include:"#at_rule_forward"},{include:"#at_rule_use"},{include:"#at_rule_include"},{include:"#at_rule_import"},{include:"#general"},{include:"#flow_control"},{include:"#rules"},{include:"#property_list"},{include:"#at_rule_mixin"},{include:"#at_rule_media"},{include:"#at_rule_function"},{include:"#at_rule_charset"},{include:"#at_rule_option"},{include:"#at_rule_namespace"},{include:"#at_rule_fontface"},{include:"#at_rule_page"},{include:"#at_rule_keyframes"},{include:"#at_rule_at_root"},{include:"#at_rule_supports"},{match:/;/dgv,name:"punctuation.terminator.rule.css"}],repository:{at_rule_at_root:{begin:/\p{space}*((@)(at-root))(\p{space}+|(?=\n?$))/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.at-root.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.at-root.scss",patterns:[{include:"#function_attributes"},{include:"#functions"},{include:"#selectors"}]},at_rule_charset:{begin:/\p{space}*((@)charset\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.charset.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=;|(?=\n?$)))/dgv,name:"meta.at-rule.charset.scss",patterns:[{include:"#variable"},{include:"#string_single"},{include:"#string_double"}]},at_rule_content:{begin:/\p{space}*((@)content\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.content.scss"}},end:/\p{space}*((?=;))/dgv,name:"meta.content.scss",patterns:[{include:"#variable"},{include:"#selectors"},{include:"#property_values"}]},at_rule_each:{begin:/\p{space}*((@)each\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.each.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=\}))/dgv,name:"meta.at-rule.each.scss",patterns:[{match:/\b(in|,)\b/dgv,name:"keyword.control.operator"},{include:"#variable"},{include:"#property_values"},{include:"$self"}]},at_rule_else:{begin:/\p{space}*((@)else(\p{space}*(if)?))\p{space}*/dgv,captures:{"1":{name:"keyword.control.else.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.else.scss",patterns:[{include:"#conditional_operators"},{include:"#variable"},{include:"#property_values"}]},at_rule_extend:{begin:/\p{space}*((@)extend\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.extend.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.extend.scss",patterns:[{include:"#variable"},{include:"#selectors"},{include:"#property_values"}]},at_rule_fontface:{patterns:[{begin:/^\p{space}*((@)font-face\b)/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.fontface.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.fontface.scss",patterns:[{include:"#function_attributes"}]}]},at_rule_for:{begin:/\p{space}*((@)for\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.for.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.for.scss",patterns:[{match:/(==|!=|<=|>=|<|>|from|to|through)/dgv,name:"keyword.control.operator"},{include:"#variable"},{include:"#property_values"},{include:"$self"}]},at_rule_forward:{begin:/\p{space}*((@)forward\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.forward.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.forward.scss",patterns:[{match:/\b(as|hide|show)\b/dgv,name:"keyword.control.operator"},{captures:{"1":{name:"entity.other.attribute-name.module.scss"},"2":{name:"punctuation.definition.wildcard.scss"}},match:/\b([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\*)/dgv},{match:/\b[\p{L}\p{M}\p{N}\p{Pc}\-]+\b/dgv,name:"entity.name.function.scss"},{include:"#variable"},{include:"#string_single"},{include:"#string_double"},{include:"#comment_line"},{include:"#comment_block"}]},at_rule_function:{patterns:[{begin:/\p{space}*((@)function\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.function.scss"},"2":{name:"punctuation.definition.keyword.scss"},"3":{name:"entity.name.function.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.function.scss",patterns:[{include:"#function_attributes"}]},{captures:{"1":{name:"keyword.control.at-rule.function.scss"},"2":{name:"punctuation.definition.keyword.scss"},"3":{name:"entity.name.function.scss"}},match:/\p{space}*((@)function\b)\p{space}*/dgv,name:"meta.at-rule.function.scss"}]},at_rule_if:{begin:/\p{space}*((@)if\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.if.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.if.scss",patterns:[{include:"#conditional_operators"},{include:"#variable"},{include:"#property_values"}]},at_rule_import:{begin:/\p{space}*((@)import\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.import.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=;)|(?=\}))/dgv,name:"meta.at-rule.import.scss",patterns:[{include:"#variable"},{include:"#string_single"},{include:"#string_double"},{include:"#functions"},{include:"#comment_line"}]},at_rule_include:{patterns:[{begin:/(?<=@include)\p{space}+(?:([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\.))?([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"entity.name.function.scss"},"4":{name:"punctuation.definition.parameters.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.bracket.round.scss"}},name:"meta.at-rule.include.scss",patterns:[{include:"#function_attributes"}]},{captures:{"0":{name:"meta.at-rule.include.scss"},"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"entity.name.function.scss"}},match:/(?<=@include)\p{space}+(?:([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\.))?([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgv},{captures:{"0":{name:"meta.at-rule.include.scss"},"1":{name:"keyword.control.at-rule.include.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/((@)include)\b/dgv}]},at_rule_keyframes:{begin:/(?<=^|\p{space})(@)(?:-(?:webkit|moz)-)?keyframes\b/dgv,beginCaptures:{"0":{name:"keyword.control.at-rule.keyframes.scss"},"1":{name:"punctuation.definition.keyword.scss"}},end:/(?<=\})/dgv,name:"meta.at-rule.keyframes.scss",patterns:[{captures:{"1":{name:"entity.name.function.scss"}},match:/(?<=@keyframes)\p{space}+((?:[_A-Za-z][\-\p{L}\p{M}\p{N}\p{Pc}]|-[_A-Za-z])[\-\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{begin:/(?<=@keyframes)\p{space}+(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.scss"}},contentName:"entity.name.function.scss",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.double.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},{begin:/(?<=@keyframes)\p{space}+(')/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.scss"}},contentName:"entity.name.function.scss",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.single.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.keyframes.begin.scss"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.keyframes.end.scss"}},patterns:[{match:/\b(?:(?:100|[1-9]\p{Nd}|\p{Nd})%|from|to)(?=\p{space}*\{)/dgv,name:"entity.other.attribute-name.scss"},{include:"#flow_control"},{include:"#interpolation"},{include:"#property_list"},{include:"#rules"}]}]},at_rule_media:{patterns:[{begin:/^\p{space}*((@)media)\b/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.media.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.media.scss",patterns:[{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"},{match:/\b(only)\b/dgv,name:"keyword.control.operator.css.scss"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.media-query.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.media-query.end.bracket.round.scss"}},name:"meta.property-list.media-query.scss",patterns:[{begin:/(?<![\-a-z])(?=[\-a-z])/dgv,end:/(?=\n?$)|(?![\-a-z])/dgv,name:"meta.property-name.media-query.scss",patterns:[{include:"source.css#media-features"},{include:"source.css#property-names"}]},{begin:/(:)\p{space}*(?!(\p{space}*\{))/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.scss"}},contentName:"meta.property-value.media-query.scss",end:/\p{space}*(;|(?=\}|\)))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.scss"}},patterns:[{include:"#general"},{include:"#property_values"}]}]},{include:"#variable"},{include:"#conditional_operators"},{include:"source.css#media-types"}]}]},at_rule_mixin:{patterns:[{begin:/(?<=@mixin)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.scss"},"2":{name:"punctuation.definition.parameters.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.bracket.round.scss"}},name:"meta.at-rule.mixin.scss",patterns:[{include:"#function_attributes"}]},{captures:{"1":{name:"entity.name.function.scss"}},match:/(?<=@mixin)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgv,name:"meta.at-rule.mixin.scss"},{captures:{"1":{name:"keyword.control.at-rule.mixin.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/((@)mixin)\b/dgv,name:"meta.at-rule.mixin.scss"}]},at_rule_namespace:{patterns:[{begin:/(?<=@namespace)\p{space}+(?=url)/dgv,end:/(?=;|(?=\n?$))/dgv,name:"meta.at-rule.namespace.scss",patterns:[{include:"#property_values"},{include:"#string_single"},{include:"#string_double"}]},{begin:/(?<=@namespace)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]*)/dgv,captures:{"1":{name:"entity.name.namespace-prefix.scss"}},end:/(?=;|(?=\n?$))/dgv,name:"meta.at-rule.namespace.scss",patterns:[{include:"#variables"},{include:"#property_values"},{include:"#string_single"},{include:"#string_double"}]},{captures:{"1":{name:"keyword.control.at-rule.namespace.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/((@)namespace)\b/dgv,name:"meta.at-rule.namespace.scss"}]},at_rule_option:{captures:{"1":{name:"keyword.control.at-rule.charset.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/^\p{space}*((@)option\b)\p{space}*/dgv,name:"meta.at-rule.option.scss"},at_rule_page:{patterns:[{begin:/^\p{space}*((@)page)(?=:|\p{space})\p{space}*([\-\:\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,captures:{"1":{name:"keyword.control.at-rule.page.scss"},"2":{name:"punctuation.definition.keyword.scss"},"3":{name:"entity.name.function.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.page.scss"}]},at_rule_return:{begin:/\p{space}*((@)(return)\b)/dgv,captures:{"1":{name:"keyword.control.return.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=;))/dgv,name:"meta.at-rule.return.scss",patterns:[{include:"#variable"},{include:"#property_values"}]},at_rule_supports:{begin:/(?<=^|\p{space})(@)supports\b/dgv,captures:{"0":{name:"keyword.control.at-rule.supports.scss"},"1":{name:"punctuation.definition.keyword.scss"}},end:/(?=\{)|(?=\n?$)/dgv,name:"meta.at-rule.supports.scss",patterns:[{include:"#logical_operators"},{include:"#properties"},{match:/\(/dgv,name:"punctuation.definition.condition.begin.bracket.round.scss"},{match:/\)/dgv,name:"punctuation.definition.condition.end.bracket.round.scss"}]},at_rule_use:{begin:/\p{space}*((@)use\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.use.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.use.scss",patterns:[{match:/\b(as|with)\b/dgv,name:"keyword.control.operator"},{match:/\b[\p{L}\p{M}\p{N}\p{Pc}\-]+\b/dgv,name:"variable.scss"},{match:/\*/dgv,name:"variable.language.expanded-namespace.scss"},{include:"#string_single"},{include:"#string_double"},{include:"#comment_line"},{include:"#comment_block"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.bracket.round.scss"}},patterns:[{include:"#function_attributes"}]}]},at_rule_warn:{begin:/\p{space}*((@)(warn|debug|error)\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.warn.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.warn.scss",patterns:[{include:"#variable"},{include:"#string_double"},{include:"#string_single"}]},at_rule_while:{begin:/\p{space}*((@)while\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.while.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\})/dgv,name:"meta.at-rule.while.scss",patterns:[{include:"#conditional_operators"},{include:"#variable"},{include:"#property_values"},{include:"$self"}]},comment_block:{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scss"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.scss"}},name:"comment.block.scss"},comment_docblock:{begin:/\/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scss"}},end:/(?=(?=\n?$))/dgv,name:"comment.block.documentation.scss",patterns:[{include:"source.sassdoc"}]},comment_line:{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scss"}},end:/\n/dgv,name:"comment.line.scss"},comparison_operators:{match:/==|!=|<=|>=|<|>/dgv,name:"keyword.operator.comparison.scss"},conditional_operators:{patterns:[{include:"#comparison_operators"},{include:"#logical_operators"}]},constant_default:{match:/!default/dgv,name:"keyword.other.default.scss"},constant_functions:{begin:/(?:([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\.))?([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\()/dgv,beginCaptures:{"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"support.function.misc.scss"},"4":{name:"punctuation.section.function.scss"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.scss"}},patterns:[{include:"#parameters"}]},constant_important:{match:/!important/dgv,name:"keyword.other.important.scss"},constant_mathematical_symbols:{match:/\b(\+|-|\*|\/)\b/dgv,name:"support.constant.mathematical-symbols.scss"},constant_optional:{match:/!optional/dgv,name:"keyword.other.optional.scss"},constant_sass_functions:{begin:/(headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:gradient|svg-gradient)|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi|translate(?:X|Y))(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.scss"},"2":{name:"punctuation.section.function.scss"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.scss"}},patterns:[{include:"#parameters"}]},flow_control:{patterns:[{include:"#at_rule_if"},{include:"#at_rule_else"},{include:"#at_rule_warn"},{include:"#at_rule_for"},{include:"#at_rule_while"},{include:"#at_rule_each"},{include:"#at_rule_return"}]},function_attributes:{patterns:[{match:/:/dgv,name:"punctuation.separator.key-value.scss"},{include:"#general"},{include:"#property_values"},{match:/[\=\{\}\?\;\@]/dgv,name:"invalid.illegal.scss"}]},functions:{patterns:[{begin:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\()\p{space}*/dgv,beginCaptures:{"1":{name:"support.function.misc.scss"},"2":{name:"punctuation.section.function.scss"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.scss"}},patterns:[{include:"#parameters"}]},{match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgv,name:"support.function.misc.scss"}]},general:{patterns:[{include:"#variable"},{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"}]},interpolation:{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.interpolation.begin.bracket.curly.scss"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.interpolation.end.bracket.curly.scss"}},name:"variable.interpolation.scss",patterns:[{include:"#variable"},{include:"#property_values"}]},logical_operators:{match:/\b(not|or|and)\b/dgv,name:"keyword.operator.logical.scss"},map:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.map.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.map.end.bracket.round.scss"}},name:"meta.definition.variable.map.scss",patterns:[{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"},{captures:{"1":{name:"support.type.map.key.scss"},"2":{name:"punctuation.separator.key-value.scss"}},match:/\b([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(:)/dgv},{match:/,/dgv,name:"punctuation.separator.delimiter.scss"},{include:"#map"},{include:"#variable"},{include:"#property_values"}]},operators:{match:/[\-\+\*\/](?!\p{space}*[\-\+\*\/])/dgv,name:"keyword.operator.css"},parameters:{patterns:[{include:"#variable"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.scss"}},patterns:[{include:"#function_attributes"}]},{include:"#property_values"},{include:"#comment_block"},{match:/[^'"\,\) \t]+/dgv,name:"variable.parameter.url.scss"},{match:/,/dgv,name:"punctuation.separator.delimiter.scss"}]},parent_selector_suffix:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(?<=&)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\$|\})+)(?=(?=\n?$)|[\p{space}\,\.\#\)\[\:\{\>\+\~\|]|\/\*)/dgv,name:"entity.other.attribute-name.parent-selector-suffix.css"},properties:{patterns:[{begin:/(?<![\-a-z])(?=[\-a-z])/dgv,end:/(?=\n?$)|(?![\-a-z])/dgv,name:"meta.property-name.scss",patterns:[{include:"source.css#property-names"},{include:"#at_rule_include"}]},{begin:/(:)\p{space}*(?!(\p{space}*\{))/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.scss"}},contentName:"meta.property-value.scss",end:/\p{space}*(;|(?=\}|\)))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.scss"}},patterns:[{include:"#general"},{include:"#property_values"}]}]},property_list:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.property-list.begin.bracket.curly.scss"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.property-list.end.bracket.curly.scss"}},name:"meta.property-list.scss",patterns:[{include:"#flow_control"},{include:"#rules"},{include:"#properties"},{include:"$self"}]},property_values:{patterns:[{include:"#string_single"},{include:"#string_double"},{include:"#constant_functions"},{include:"#constant_sass_functions"},{include:"#constant_important"},{include:"#constant_default"},{include:"#constant_optional"},{include:"source.css#numeric-values"},{include:"source.css#property-keywords"},{include:"source.css#color-keywords"},{include:"source.css#property-names"},{include:"#constant_mathematical_symbols"},{include:"#operators"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.scss"}},patterns:[{include:"#general"},{include:"#property_values"}]}]},rules:{patterns:[{include:"#general"},{include:"#at_rule_extend"},{include:"#at_rule_content"},{include:"#at_rule_include"},{include:"#at_rule_media"},{include:"#selectors"}]},selector_attribute:{captures:{"1":{name:"punctuation.definition.attribute-selector.begin.bracket.square.scss"},"2":{name:"entity.other.attribute-name.attribute.scss",patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"3":{name:"keyword.operator.scss"},"4":{name:"string.unquoted.attribute-value.scss",patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"5":{name:"string.quoted.double.attribute-value.scss"},"6":{name:"punctuation.definition.string.begin.scss"},"7":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"8":{name:"punctuation.definition.string.end.scss"},"9":{name:"string.quoted.single.attribute-value.scss"},"10":{name:"punctuation.definition.string.begin.scss"},"11":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"12":{name:"punctuation.definition.string.end.scss"},"13":{name:"punctuation.definition.attribute-selector.end.bracket.square.scss"}},match:/(\[)\p{space}*((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+?)(?:\p{space}*([\~\|\^\$\*]?=)\p{space}*(?:((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+)|((")([^\n]*?)("))|((')([^\n]*?)('))))?\p{space}*(\])/dgiv,name:"meta.attribute-selector.scss"},selector_class:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]}},match:/(\.)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+)(?=(?=\n?$)|[\p{space}\,\#\)\[\:\{\>\+\~\|]|\.[^\$]|\/\*|;)/dgv,name:"entity.other.attribute-name.class.css"},selector_custom:{match:/*@__PURE__*/ new EmulatedRegExp("\\b([a-zA-Z0-9]+(-[a-zA-Z0-9]+)+)(?=\\.|(?:(?=($E$\\p{space}+))\\3)[^\\:]|\\p{space}*[\\,\\[\\{]|:(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-(child|last-child|of-type|last-of-type)|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)(\\([0-9A-Za-z]*\\))?)","dgv",{"useEmulationGroups":true}),name:"entity.name.tag.custom.scss"},selector_id:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(#)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+)(?=(?=\n?$)|[\p{space}\,\#\)\[\:\{\>\+\~\|]|\.[^\$]|\/\*)/dgv,name:"entity.other.attribute-name.id.css"},selector_placeholder:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(%)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.\$|\$|\})+)(?=;|(?=\n?$)|[\p{space}\,\#\)\[\:\{\>\+\~\|]|\.[^\$]|\/\*)/dgv,name:"entity.other.attribute-name.placeholder.css"},selector_pseudo_class:{patterns:[{begin:/((:)\bnth-(?:child|last-child|of-type|last-of-type))(\()/dgv,beginCaptures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.definition.pseudo-class.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.pseudo-class.end.bracket.round.css"}},patterns:[{include:"#interpolation"},{match:/\p{Nd}+/dgv,name:"constant.numeric.css"},{match:/(?<=\p{Nd})n\b|\b(n|even|odd)\b/dgv,name:"constant.other.scss"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"invalid.illegal.scss"}]},{include:"source.css#pseudo-classes"},{include:"source.css#pseudo-elements"},{include:"source.css#functional-pseudo-classes"}]},selectors:{patterns:[{include:"source.css#tag-names"},{include:"#selector_custom"},{include:"#selector_class"},{include:"#selector_id"},{include:"#selector_pseudo_class"},{include:"#tag_wildcard"},{include:"#tag_parent_reference"},{include:"source.css#pseudo-elements"},{include:"#selector_attribute"},{include:"#selector_placeholder"},{include:"#parent_selector_suffix"}]},string_double:{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scss"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.double.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},string_single:{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scss"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.single.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},tag_parent_reference:{match:/&/dgv,name:"entity.name.tag.reference.scss"},tag_wildcard:{match:/\*/dgv,name:"entity.name.tag.wildcard.scss"},variable:{patterns:[{include:"#variables"},{include:"#interpolation"}]},variable_setting:{begin:/(?=\$[\p{L}\p{M}\p{N}\p{Pc}\-]+\p{space}*:)/dgv,contentName:"meta.definition.variable.scss",end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.rule.scss"}},patterns:[{match:/\$[\p{L}\p{M}\p{N}\p{Pc}\-]+(?=\p{space}*:)/dgv,name:"variable.scss"},{begin:/:/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.scss"}},end:/(?=;)/dgv,patterns:[{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"},{include:"#map"},{include:"#property_values"},{include:"#variable"},{match:/,/dgv,name:"punctuation.separator.delimiter.scss"}]}]},variables:{patterns:[{captures:{"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"variable.scss"}},match:/\b([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\.)(\$[\p{L}\p{M}\p{N}\p{Pc}\-]+)\b/dgv},{match:/(\$|--)[A-Za-z0-9_\-]+\b/dgv,name:"variable.scss"}]}},scopeName:"source.css.scss",embeddedLangs:["css"],aliases:undefined})
|
|
4
|
+
const lang = Object.freeze({displayName:"SCSS",name:"scss",patterns:[{include:"#variable_setting"},{include:"#at_rule_forward"},{include:"#at_rule_use"},{include:"#at_rule_include"},{include:"#at_rule_import"},{include:"#general"},{include:"#flow_control"},{include:"#rules"},{include:"#property_list"},{include:"#at_rule_mixin"},{include:"#at_rule_media"},{include:"#at_rule_function"},{include:"#at_rule_charset"},{include:"#at_rule_option"},{include:"#at_rule_namespace"},{include:"#at_rule_fontface"},{include:"#at_rule_page"},{include:"#at_rule_keyframes"},{include:"#at_rule_at_root"},{include:"#at_rule_supports"},{match:/;/dgv,name:"punctuation.terminator.rule.css"}],repository:{at_rule_at_root:{begin:/\p{space}*((@)(at-root))(\p{space}+|(?=\n?$))/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.at-root.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.at-root.scss",patterns:[{include:"#function_attributes"},{include:"#functions"},{include:"#selectors"}]},at_rule_charset:{begin:/\p{space}*((@)charset\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.charset.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=;|(?=\n?$)))/dgv,name:"meta.at-rule.charset.scss",patterns:[{include:"#variable"},{include:"#string_single"},{include:"#string_double"}]},at_rule_content:{begin:/\p{space}*((@)content\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.content.scss"}},end:/\p{space}*((?=;))/dgv,name:"meta.content.scss",patterns:[{include:"#variable"},{include:"#selectors"},{include:"#property_values"}]},at_rule_each:{begin:/\p{space}*((@)each\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.each.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=\}))/dgv,name:"meta.at-rule.each.scss",patterns:[{match:/\b(in|,)\b/dgv,name:"keyword.control.operator"},{include:"#variable"},{include:"#property_values"},{include:"$self"}]},at_rule_else:{begin:/\p{space}*((@)else(\p{space}*(if)?))\p{space}*/dgv,captures:{"1":{name:"keyword.control.else.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.else.scss",patterns:[{include:"#conditional_operators"},{include:"#variable"},{include:"#property_values"}]},at_rule_extend:{begin:/\p{space}*((@)extend\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.extend.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.extend.scss",patterns:[{include:"#variable"},{include:"#selectors"},{include:"#property_values"}]},at_rule_fontface:{patterns:[{begin:/^\p{space}*((@)font-face\b)/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.fontface.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.fontface.scss",patterns:[{include:"#function_attributes"}]}]},at_rule_for:{begin:/\p{space}*((@)for\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.for.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.for.scss",patterns:[{match:/(==|!=|<=|>=|<|>|from|to|through)/dgv,name:"keyword.control.operator"},{include:"#variable"},{include:"#property_values"},{include:"$self"}]},at_rule_forward:{begin:/\p{space}*((@)forward\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.forward.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.forward.scss",patterns:[{match:/\b(as|hide|show)\b/dgv,name:"keyword.control.operator"},{captures:{"1":{name:"entity.other.attribute-name.module.scss"},"2":{name:"punctuation.definition.wildcard.scss"}},match:/\b([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\*)/dgv},{match:/\b[\p{L}\p{M}\p{N}\p{Pc}\-]+\b/dgv,name:"entity.name.function.scss"},{include:"#variable"},{include:"#string_single"},{include:"#string_double"},{include:"#comment_line"},{include:"#comment_block"}]},at_rule_function:{patterns:[{begin:/\p{space}*((@)function\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.function.scss"},"2":{name:"punctuation.definition.keyword.scss"},"3":{name:"entity.name.function.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.function.scss",patterns:[{include:"#function_attributes"}]},{captures:{"1":{name:"keyword.control.at-rule.function.scss"},"2":{name:"punctuation.definition.keyword.scss"},"3":{name:"entity.name.function.scss"}},match:/\p{space}*((@)function\b)\p{space}*/dgv,name:"meta.at-rule.function.scss"}]},at_rule_if:{begin:/\p{space}*((@)if\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.if.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.if.scss",patterns:[{include:"#conditional_operators"},{include:"#variable"},{include:"#property_values"}]},at_rule_import:{begin:/\p{space}*((@)import\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.import.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=;)|(?=\}))/dgv,name:"meta.at-rule.import.scss",patterns:[{include:"#variable"},{include:"#string_single"},{include:"#string_double"},{include:"#functions"},{include:"#comment_line"}]},at_rule_include:{patterns:[{begin:/(?<=@include)\p{space}+(?:([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\.))?([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"entity.name.function.scss"},"4":{name:"punctuation.definition.parameters.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.bracket.round.scss"}},name:"meta.at-rule.include.scss",patterns:[{include:"#function_attributes"}]},{captures:{"0":{name:"meta.at-rule.include.scss"},"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"entity.name.function.scss"}},match:/(?<=@include)\p{space}+(?:([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\.))?([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgv},{captures:{"0":{name:"meta.at-rule.include.scss"},"1":{name:"keyword.control.at-rule.include.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/((@)include)\b/dgv}]},at_rule_keyframes:{begin:/(?<=^|\p{space})(@)(?:-(?:webkit|moz)-)?keyframes\b/dgv,beginCaptures:{"0":{name:"keyword.control.at-rule.keyframes.scss"},"1":{name:"punctuation.definition.keyword.scss"}},end:/(?<=\})/dgv,name:"meta.at-rule.keyframes.scss",patterns:[{captures:{"1":{name:"entity.name.function.scss"}},match:/(?<=@keyframes)\p{space}+((?:[_A-Za-z][\-\p{L}\p{M}\p{N}\p{Pc}]|-[_A-Za-z])[\-\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{begin:/(?<=@keyframes)\p{space}+(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.scss"}},contentName:"entity.name.function.scss",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.double.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},{begin:/(?<=@keyframes)\p{space}+(')/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.scss"}},contentName:"entity.name.function.scss",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.single.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.keyframes.begin.scss"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.keyframes.end.scss"}},patterns:[{match:/\b(?:(?:100|[1-9]\p{Nd}|\p{Nd})%|from|to)(?=\p{space}*\{)/dgv,name:"entity.other.attribute-name.scss"},{include:"#flow_control"},{include:"#interpolation"},{include:"#property_list"},{include:"#rules"}]}]},at_rule_media:{patterns:[{begin:/^\p{space}*((@)media)\b/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.media.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.media.scss",patterns:[{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"},{match:/\b(only)\b/dgv,name:"keyword.control.operator.css.scss"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.media-query.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.media-query.end.bracket.round.scss"}},name:"meta.property-list.media-query.scss",patterns:[{begin:/(?<![\-a-z])(?=[\-a-z])/dgv,end:/(?=\n?$)|(?![\-a-z])/dgv,name:"meta.property-name.media-query.scss",patterns:[{include:"source.css#media-features"},{include:"source.css#property-names"}]},{begin:/(:)\p{space}*(?!(\p{space}*\{))/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.scss"}},contentName:"meta.property-value.media-query.scss",end:/\p{space}*(;|(?=\}|\)))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.scss"}},patterns:[{include:"#general"},{include:"#property_values"}]}]},{include:"#variable"},{include:"#conditional_operators"},{include:"source.css#media-types"}]}]},at_rule_mixin:{patterns:[{begin:/(?<=@mixin)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.scss"},"2":{name:"punctuation.definition.parameters.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.bracket.round.scss"}},name:"meta.at-rule.mixin.scss",patterns:[{include:"#function_attributes"}]},{captures:{"1":{name:"entity.name.function.scss"}},match:/(?<=@mixin)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgv,name:"meta.at-rule.mixin.scss"},{captures:{"1":{name:"keyword.control.at-rule.mixin.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/((@)mixin)\b/dgv,name:"meta.at-rule.mixin.scss"}]},at_rule_namespace:{patterns:[{begin:/(?<=@namespace)\p{space}+(?=url)/dgv,end:/(?=;|(?=\n?$))/dgv,name:"meta.at-rule.namespace.scss",patterns:[{include:"#property_values"},{include:"#string_single"},{include:"#string_double"}]},{begin:/(?<=@namespace)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]*)/dgv,captures:{"1":{name:"entity.name.namespace-prefix.scss"}},end:/(?=;|(?=\n?$))/dgv,name:"meta.at-rule.namespace.scss",patterns:[{include:"#variables"},{include:"#property_values"},{include:"#string_single"},{include:"#string_double"}]},{captures:{"1":{name:"keyword.control.at-rule.namespace.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/((@)namespace)\b/dgv,name:"meta.at-rule.namespace.scss"}]},at_rule_option:{captures:{"1":{name:"keyword.control.at-rule.charset.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/^\p{space}*((@)option\b)\p{space}*/dgv,name:"meta.at-rule.option.scss"},at_rule_page:{patterns:[{begin:/^\p{space}*((@)page)(?=:|\p{space})\p{space}*([\-\:\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,captures:{"1":{name:"keyword.control.at-rule.page.scss"},"2":{name:"punctuation.definition.keyword.scss"},"3":{name:"entity.name.function.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.page.scss"}]},at_rule_return:{begin:/\p{space}*((@)(return)\b)/dgv,captures:{"1":{name:"keyword.control.return.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=;))/dgv,name:"meta.at-rule.return.scss",patterns:[{include:"#variable"},{include:"#property_values"}]},at_rule_supports:{begin:/(?<=^|\p{space})(@)supports\b/dgv,captures:{"0":{name:"keyword.control.at-rule.supports.scss"},"1":{name:"punctuation.definition.keyword.scss"}},end:/(?=\{)|(?=\n?$)/dgv,name:"meta.at-rule.supports.scss",patterns:[{include:"#logical_operators"},{include:"#properties"},{match:/\(/dgv,name:"punctuation.definition.condition.begin.bracket.round.scss"},{match:/\)/dgv,name:"punctuation.definition.condition.end.bracket.round.scss"}]},at_rule_use:{begin:/\p{space}*((@)use\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.use.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.use.scss",patterns:[{match:/\b(as|with)\b/dgv,name:"keyword.control.operator"},{match:/\b[\p{L}\p{M}\p{N}\p{Pc}\-]+\b/dgv,name:"variable.scss"},{match:/\*/dgv,name:"variable.language.expanded-namespace.scss"},{include:"#string_single"},{include:"#string_double"},{include:"#comment_line"},{include:"#comment_block"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.bracket.round.scss"}},patterns:[{include:"#function_attributes"}]}]},at_rule_warn:{begin:/\p{space}*((@)(warn|debug|error)\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.warn.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.warn.scss",patterns:[{include:"#variable"},{include:"#string_double"},{include:"#string_single"}]},at_rule_while:{begin:/\p{space}*((@)while\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.while.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\})/dgv,name:"meta.at-rule.while.scss",patterns:[{include:"#conditional_operators"},{include:"#variable"},{include:"#property_values"},{include:"$self"}]},comment_block:{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scss"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.scss"}},name:"comment.block.scss"},comment_docblock:{begin:/\/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scss"}},end:/(?=(?=\n?$))/dgv,name:"comment.block.documentation.scss",patterns:[{include:"source.sassdoc"}]},comment_line:{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scss"}},end:/\n/dgv,name:"comment.line.scss"},comparison_operators:{match:/==|!=|<=|>=|<|>/dgv,name:"keyword.operator.comparison.scss"},conditional_operators:{patterns:[{include:"#comparison_operators"},{include:"#logical_operators"}]},constant_default:{match:/!default/dgv,name:"keyword.other.default.scss"},constant_functions:{begin:/(?:([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\.))?([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\()/dgv,beginCaptures:{"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"support.function.misc.scss"},"4":{name:"punctuation.section.function.scss"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.scss"}},patterns:[{include:"#parameters"}]},constant_important:{match:/!important/dgv,name:"keyword.other.important.scss"},constant_mathematical_symbols:{match:/\b(\+|-|\*|\/)\b/dgv,name:"support.constant.mathematical-symbols.scss"},constant_optional:{match:/!optional/dgv,name:"keyword.other.optional.scss"},constant_sass_functions:{begin:/(headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:gradient|svg-gradient)|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi|translate(?:X|Y))(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.scss"},"2":{name:"punctuation.section.function.scss"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.scss"}},patterns:[{include:"#parameters"}]},flow_control:{patterns:[{include:"#at_rule_if"},{include:"#at_rule_else"},{include:"#at_rule_warn"},{include:"#at_rule_for"},{include:"#at_rule_while"},{include:"#at_rule_each"},{include:"#at_rule_return"}]},function_attributes:{patterns:[{match:/:/dgv,name:"punctuation.separator.key-value.scss"},{include:"#general"},{include:"#property_values"},{match:/[\=\{\}\?\;\@]/dgv,name:"invalid.illegal.scss"}]},functions:{patterns:[{begin:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\()\p{space}*/dgv,beginCaptures:{"1":{name:"support.function.misc.scss"},"2":{name:"punctuation.section.function.scss"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.scss"}},patterns:[{include:"#parameters"}]},{match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgv,name:"support.function.misc.scss"}]},general:{patterns:[{include:"#variable"},{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"}]},interpolation:{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.interpolation.begin.bracket.curly.scss"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.interpolation.end.bracket.curly.scss"}},name:"variable.interpolation.scss",patterns:[{include:"#variable"},{include:"#property_values"}]},logical_operators:{match:/\b(not|or|and)\b/dgv,name:"keyword.operator.logical.scss"},map:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.map.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.map.end.bracket.round.scss"}},name:"meta.definition.variable.map.scss",patterns:[{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"},{captures:{"1":{name:"support.type.map.key.scss"},"2":{name:"punctuation.separator.key-value.scss"}},match:/\b([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(:)/dgv},{match:/,/dgv,name:"punctuation.separator.delimiter.scss"},{include:"#map"},{include:"#variable"},{include:"#property_values"}]},operators:{match:/[\-\+\*\/](?!\p{space}*[\-\+\*\/])/dgv,name:"keyword.operator.css"},parameters:{patterns:[{include:"#variable"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.scss"}},patterns:[{include:"#function_attributes"}]},{include:"#property_values"},{include:"#comment_block"},{match:/[^'"\,\) \t]+/dgv,name:"variable.parameter.url.scss"},{match:/,/dgv,name:"punctuation.separator.delimiter.scss"}]},parent_selector_suffix:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(?<=&)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\$|\})+)(?=(?=\n?$)|[\p{space}\,\.\#\)\[\:\{\>\+\~\|]|\/\*)/dgv,name:"entity.other.attribute-name.parent-selector-suffix.css"},properties:{patterns:[{begin:/(?<![\-a-z])(?=[\-a-z])/dgv,end:/(?=\n?$)|(?![\-a-z])/dgv,name:"meta.property-name.scss",patterns:[{include:"source.css#property-names"},{include:"#at_rule_include"}]},{begin:/(:)\p{space}*(?!(\p{space}*\{))/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.scss"}},contentName:"meta.property-value.scss",end:/\p{space}*(;|(?=\}|\)))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.scss"}},patterns:[{include:"#general"},{include:"#property_values"}]}]},property_list:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.property-list.begin.bracket.curly.scss"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.property-list.end.bracket.curly.scss"}},name:"meta.property-list.scss",patterns:[{include:"#flow_control"},{include:"#rules"},{include:"#properties"},{include:"$self"}]},property_values:{patterns:[{include:"#string_single"},{include:"#string_double"},{include:"#constant_functions"},{include:"#constant_sass_functions"},{include:"#constant_important"},{include:"#constant_default"},{include:"#constant_optional"},{include:"source.css#numeric-values"},{include:"source.css#property-keywords"},{include:"source.css#color-keywords"},{include:"source.css#property-names"},{include:"#constant_mathematical_symbols"},{include:"#operators"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.scss"}},patterns:[{include:"#general"},{include:"#property_values"}]}]},rules:{patterns:[{include:"#general"},{include:"#at_rule_extend"},{include:"#at_rule_content"},{include:"#at_rule_include"},{include:"#at_rule_media"},{include:"#selectors"}]},selector_attribute:{captures:{"1":{name:"punctuation.definition.attribute-selector.begin.bracket.square.scss"},"2":{name:"entity.other.attribute-name.attribute.scss",patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"3":{name:"keyword.operator.scss"},"4":{name:"string.unquoted.attribute-value.scss",patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"5":{name:"string.quoted.double.attribute-value.scss"},"6":{name:"punctuation.definition.string.begin.scss"},"7":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"8":{name:"punctuation.definition.string.end.scss"},"9":{name:"string.quoted.single.attribute-value.scss"},"10":{name:"punctuation.definition.string.begin.scss"},"11":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"12":{name:"punctuation.definition.string.end.scss"},"13":{name:"punctuation.definition.attribute-selector.end.bracket.square.scss"}},match:/(\[)\p{space}*((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+?)(?:\p{space}*([\~\|\^\$\*]?=)\p{space}*(?:((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+)|((")([^\n]*?)("))|((')([^\n]*?)('))))?\p{space}*(\])/dgiv,name:"meta.attribute-selector.scss"},selector_class:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]}},match:/(\.)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+)(?=(?=\n?$)|[\p{space}\,\#\)\[\:\{\>\+\~\|]|\.[^\$]|\/\*|;)/dgv,name:"entity.other.attribute-name.class.css"},selector_custom:{match:/*@__PURE__*/ new EmulatedRegExp("\\b([a-zA-Z0-9]+(-[a-zA-Z0-9]+)+)(?=\\.|(?:(?=(\\p{space}+))\\3)[^\\:]|\\p{space}*[\\,\\[\\{]|:(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-(child|last-child|of-type|last-of-type)|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)(\\([0-9A-Za-z]*\\))?)","dgv",{"hiddenCaptures":[3]}),name:"entity.name.tag.custom.scss"},selector_id:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(#)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+)(?=(?=\n?$)|[\p{space}\,\#\)\[\:\{\>\+\~\|]|\.[^\$]|\/\*)/dgv,name:"entity.other.attribute-name.id.css"},selector_placeholder:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(%)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.\$|\$|\})+)(?=;|(?=\n?$)|[\p{space}\,\#\)\[\:\{\>\+\~\|]|\.[^\$]|\/\*)/dgv,name:"entity.other.attribute-name.placeholder.css"},selector_pseudo_class:{patterns:[{begin:/((:)\bnth-(?:child|last-child|of-type|last-of-type))(\()/dgv,beginCaptures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.definition.pseudo-class.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.pseudo-class.end.bracket.round.css"}},patterns:[{include:"#interpolation"},{match:/\p{Nd}+/dgv,name:"constant.numeric.css"},{match:/(?<=\p{Nd})n\b|\b(n|even|odd)\b/dgv,name:"constant.other.scss"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"invalid.illegal.scss"}]},{include:"source.css#pseudo-classes"},{include:"source.css#pseudo-elements"},{include:"source.css#functional-pseudo-classes"}]},selectors:{patterns:[{include:"source.css#tag-names"},{include:"#selector_custom"},{include:"#selector_class"},{include:"#selector_id"},{include:"#selector_pseudo_class"},{include:"#tag_wildcard"},{include:"#tag_parent_reference"},{include:"source.css#pseudo-elements"},{include:"#selector_attribute"},{include:"#selector_placeholder"},{include:"#parent_selector_suffix"}]},string_double:{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scss"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.double.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},string_single:{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scss"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.single.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},tag_parent_reference:{match:/&/dgv,name:"entity.name.tag.reference.scss"},tag_wildcard:{match:/\*/dgv,name:"entity.name.tag.wildcard.scss"},variable:{patterns:[{include:"#variables"},{include:"#interpolation"}]},variable_setting:{begin:/(?=\$[\p{L}\p{M}\p{N}\p{Pc}\-]+\p{space}*:)/dgv,contentName:"meta.definition.variable.scss",end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.rule.scss"}},patterns:[{match:/\$[\p{L}\p{M}\p{N}\p{Pc}\-]+(?=\p{space}*:)/dgv,name:"variable.scss"},{begin:/:/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.scss"}},end:/(?=;)/dgv,patterns:[{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"},{include:"#map"},{include:"#property_values"},{include:"#variable"},{match:/,/dgv,name:"punctuation.separator.delimiter.scss"}]}]},variables:{patterns:[{captures:{"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"variable.scss"}},match:/\b([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\.)(\$[\p{L}\p{M}\p{N}\p{Pc}\-]+)\b/dgv},{match:/(\$|--)[A-Za-z0-9_\-]+\b/dgv,name:"variable.scss"}]}},scopeName:"source.css.scss",embeddedLangs:["css"],aliases:undefined})
|
|
5
5
|
|
|
6
6
|
export default [
|
|
7
7
|
...css,
|