@shikijs/langs-precompiled 3.0.0 → 3.2.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.
Files changed (217) hide show
  1. package/dist/abap.mjs +1 -1
  2. package/dist/actionscript-3.mjs +1 -1
  3. package/dist/ada.mjs +1 -1
  4. package/dist/angular-expression.mjs +1 -1
  5. package/dist/angular-html.mjs +1 -1
  6. package/dist/angular-inline-style.mjs +1 -1
  7. package/dist/angular-inline-template.mjs +1 -1
  8. package/dist/angular-ts.mjs +1 -1
  9. package/dist/apache.mjs +1 -1
  10. package/dist/apex.mjs +1 -1
  11. package/dist/apl.mjs +1 -1
  12. package/dist/applescript.mjs +1 -1
  13. package/dist/ara.mjs +1 -1
  14. package/dist/asciidoc.mjs +1 -1
  15. package/dist/asm.mjs +1 -1
  16. package/dist/astro.mjs +1 -1
  17. package/dist/awk.mjs +1 -1
  18. package/dist/ballerina.mjs +1 -1
  19. package/dist/bat.mjs +1 -1
  20. package/dist/beancount.mjs +1 -1
  21. package/dist/berry.mjs +1 -1
  22. package/dist/bicep.mjs +1 -1
  23. package/dist/blade.mjs +3 -1
  24. package/dist/bsl.mjs +1 -1
  25. package/dist/c.mjs +1 -1
  26. package/dist/cadence.mjs +1 -1
  27. package/dist/cairo.mjs +1 -1
  28. package/dist/clarity.mjs +1 -1
  29. package/dist/clojure.mjs +1 -1
  30. package/dist/cmake.mjs +1 -1
  31. package/dist/cobol.mjs +1 -1
  32. package/dist/codeql.mjs +1 -1
  33. package/dist/coffee.mjs +1 -1
  34. package/dist/common-lisp.mjs +1 -1
  35. package/dist/coq.mjs +1 -1
  36. package/dist/cpp-macro.mjs +1 -1
  37. package/dist/cpp.mjs +1 -1
  38. package/dist/crystal.mjs +1 -1
  39. package/dist/csharp.mjs +1 -1
  40. package/dist/css.mjs +1 -1
  41. package/dist/cue.mjs +1 -1
  42. package/dist/cypher.mjs +1 -1
  43. package/dist/d.mjs +1 -1
  44. package/dist/dart.mjs +1 -1
  45. package/dist/dax.mjs +1 -1
  46. package/dist/desktop.mjs +1 -1
  47. package/dist/diff.mjs +1 -1
  48. package/dist/dotenv.mjs +1 -1
  49. package/dist/dream-maker.mjs +1 -1
  50. package/dist/elixir.mjs +1 -1
  51. package/dist/elm.mjs +1 -1
  52. package/dist/emacs-lisp.mjs +1 -1
  53. package/dist/erlang.mjs +1 -1
  54. package/dist/es-tag-css.mjs +1 -1
  55. package/dist/es-tag-glsl.mjs +1 -1
  56. package/dist/es-tag-html.mjs +1 -1
  57. package/dist/es-tag-sql.mjs +1 -1
  58. package/dist/es-tag-xml.mjs +1 -1
  59. package/dist/fennel.mjs +1 -1
  60. package/dist/fish.mjs +1 -1
  61. package/dist/fluent.mjs +1 -1
  62. package/dist/fortran-free-form.mjs +1 -1
  63. package/dist/fsharp.mjs +1 -1
  64. package/dist/gdresource.mjs +1 -1
  65. package/dist/gdscript.mjs +1 -1
  66. package/dist/gdshader.mjs +1 -1
  67. package/dist/genie.mjs +1 -1
  68. package/dist/git-rebase.mjs +1 -1
  69. package/dist/gleam.mjs +1 -1
  70. package/dist/glimmer-js.mjs +1 -1
  71. package/dist/glimmer-ts.mjs +1 -1
  72. package/dist/glsl.mjs +1 -1
  73. package/dist/gnuplot.mjs +1 -1
  74. package/dist/go.mjs +1 -1
  75. package/dist/graphql.mjs +1 -1
  76. package/dist/groovy.mjs +1 -1
  77. package/dist/hack.mjs +1 -1
  78. package/dist/haml.mjs +1 -1
  79. package/dist/handlebars.mjs +1 -1
  80. package/dist/haskell.mjs +1 -1
  81. package/dist/haxe.mjs +1 -1
  82. package/dist/hcl.mjs +1 -1
  83. package/dist/hjson.mjs +1 -1
  84. package/dist/hlsl.mjs +1 -1
  85. package/dist/html-derivative.mjs +1 -1
  86. package/dist/html.mjs +1 -1
  87. package/dist/http.mjs +1 -1
  88. package/dist/hxml.mjs +1 -1
  89. package/dist/hy.mjs +1 -1
  90. package/dist/imba.mjs +1 -3
  91. package/dist/index.mjs +2 -0
  92. package/dist/java.mjs +1 -1
  93. package/dist/javascript.mjs +1 -1
  94. package/dist/jinja-html.mjs +1 -1
  95. package/dist/jinja.mjs +1 -1
  96. package/dist/jison.mjs +1 -1
  97. package/dist/json.mjs +1 -1
  98. package/dist/json5.mjs +1 -1
  99. package/dist/jsonc.mjs +1 -1
  100. package/dist/jsonl.mjs +1 -1
  101. package/dist/jsonnet.mjs +1 -1
  102. package/dist/jsx.mjs +1 -1
  103. package/dist/julia.mjs +1 -2
  104. package/dist/kotlin.mjs +1 -1
  105. package/dist/kusto.mjs +1 -1
  106. package/dist/latex.mjs +1 -1
  107. package/dist/lean.mjs +1 -1
  108. package/dist/less.mjs +1 -1
  109. package/dist/liquid.mjs +1 -1
  110. package/dist/llvm.d.mts +3 -0
  111. package/dist/llvm.mjs +5 -0
  112. package/dist/log.mjs +1 -1
  113. package/dist/lua.mjs +1 -1
  114. package/dist/luau.mjs +1 -1
  115. package/dist/make.mjs +1 -1
  116. package/dist/markdown-vue.mjs +1 -1
  117. package/dist/markdown.mjs +1 -1
  118. package/dist/marko.mjs +1 -1
  119. package/dist/matlab.mjs +1 -1
  120. package/dist/mdc.mjs +1 -1
  121. package/dist/mdx.mjs +1 -1
  122. package/dist/mermaid.mjs +1 -1
  123. package/dist/mipsasm.mjs +1 -1
  124. package/dist/mojo.mjs +1 -1
  125. package/dist/move.mjs +1 -1
  126. package/dist/narrat.mjs +1 -1
  127. package/dist/nextflow.mjs +1 -1
  128. package/dist/nginx.mjs +1 -1
  129. package/dist/nim.mjs +1 -1
  130. package/dist/nix.mjs +1 -1
  131. package/dist/nushell.mjs +1 -1
  132. package/dist/objective-c.mjs +1 -1
  133. package/dist/objective-cpp.mjs +1 -1
  134. package/dist/ocaml.mjs +1 -1
  135. package/dist/pascal.mjs +1 -1
  136. package/dist/perl.mjs +1 -1
  137. package/dist/php.mjs +1 -1
  138. package/dist/plsql.mjs +1 -1
  139. package/dist/po.mjs +1 -1
  140. package/dist/polar.mjs +1 -1
  141. package/dist/postcss.mjs +1 -1
  142. package/dist/powerquery.mjs +1 -1
  143. package/dist/powershell.mjs +1 -1
  144. package/dist/prisma.mjs +1 -1
  145. package/dist/prolog.mjs +1 -1
  146. package/dist/proto.mjs +1 -1
  147. package/dist/pug.mjs +1 -1
  148. package/dist/puppet.mjs +1 -1
  149. package/dist/purescript.mjs +6 -2
  150. package/dist/python.mjs +1 -1
  151. package/dist/qss.mjs +1 -1
  152. package/dist/r.mjs +1 -1
  153. package/dist/racket.mjs +1 -1
  154. package/dist/raku.mjs +1 -1
  155. package/dist/razor.mjs +1 -1
  156. package/dist/reg.mjs +1 -1
  157. package/dist/regexp.mjs +1 -1
  158. package/dist/rel.mjs +1 -1
  159. package/dist/riscv.mjs +1 -1
  160. package/dist/rst.mjs +1 -1
  161. package/dist/ruby.mjs +1 -1
  162. package/dist/rust.mjs +1 -1
  163. package/dist/sas.mjs +1 -1
  164. package/dist/sass.mjs +1 -1
  165. package/dist/scala.mjs +1 -1
  166. package/dist/scheme.mjs +1 -1
  167. package/dist/scss.mjs +1 -1
  168. package/dist/sdbl.mjs +1 -1
  169. package/dist/shaderlab.mjs +1 -1
  170. package/dist/shellscript.mjs +1 -1
  171. package/dist/shellsession.mjs +1 -1
  172. package/dist/smalltalk.mjs +1 -1
  173. package/dist/solidity.mjs +1 -1
  174. package/dist/soy.mjs +1 -1
  175. package/dist/sparql.mjs +1 -1
  176. package/dist/splunk.mjs +1 -1
  177. package/dist/sql.mjs +1 -1
  178. package/dist/ssh-config.mjs +1 -1
  179. package/dist/stata.mjs +1 -1
  180. package/dist/stylus.mjs +1 -1
  181. package/dist/svelte.mjs +1 -1
  182. package/dist/system-verilog.mjs +1 -1
  183. package/dist/systemd.mjs +1 -1
  184. package/dist/talonscript.mjs +1 -1
  185. package/dist/tasl.mjs +1 -1
  186. package/dist/tcl.mjs +1 -1
  187. package/dist/templ.mjs +1 -1
  188. package/dist/terraform.mjs +1 -1
  189. package/dist/tex.mjs +1 -1
  190. package/dist/toml.mjs +1 -1
  191. package/dist/tsx.mjs +1 -1
  192. package/dist/twig.mjs +1 -1
  193. package/dist/typescript.mjs +1 -1
  194. package/dist/typespec.mjs +1 -1
  195. package/dist/typst.mjs +1 -1
  196. package/dist/v.mjs +1 -1
  197. package/dist/vala.mjs +1 -1
  198. package/dist/vb.mjs +1 -1
  199. package/dist/verilog.mjs +1 -1
  200. package/dist/vhdl.mjs +1 -1
  201. package/dist/viml.mjs +1 -1
  202. package/dist/vue-html.mjs +1 -1
  203. package/dist/vue-sfc-style-variable-injection.mjs +1 -1
  204. package/dist/vue.mjs +1 -1
  205. package/dist/vyper.mjs +1 -1
  206. package/dist/wasm.mjs +1 -1
  207. package/dist/wenyan.mjs +1 -1
  208. package/dist/wgsl.mjs +1 -1
  209. package/dist/wikitext.mjs +1 -1
  210. package/dist/wit.d.mts +3 -0
  211. package/dist/wit.mjs +5 -0
  212. package/dist/wolfram.mjs +1 -1
  213. package/dist/xml.mjs +1 -1
  214. package/dist/yaml.mjs +1 -1
  215. package/dist/zenscript.mjs +1 -1
  216. package/dist/zig.mjs +1 -1
  217. package/package.json +6 -4
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":"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":{match:/<%|=:=|<:<|<%<|>:|<:/dgv,name:"meta.bounds.scala"},"meta-brackets":{patterns:[{match:/\{/dgv,name:"punctuation.section.block.begin.scala"},{match:/\}/dgv,name:"punctuation.section.block.end.scala"},{match:/\{|\}|\(|\)|\[|\]/dgv,name:"meta.bracket.scala"}]},"meta-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"}},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:/(@t(?:param|hrows))\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\p{AHex}{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][_\p{AHex}]*)\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":{match:/<%|=:=|<:<|<%<|>:|<:/dgv,name:"meta.bounds.scala"},"meta-brackets":{patterns:[{match:/\{/dgv,name:"punctuation.section.block.begin.scala"},{match:/\}/dgv,name:"punctuation.section.block.end.scala"},{match:/[\{\}\(\)\[\]]/dgv,name:"meta.bracket.scala"}]},"meta-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(pr(?:ivate\[\P{space}+\]|otected\[\P{space}+\]|ivate|otected))\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\p{AHex}{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\p{AHex}{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\p{AHex}{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\p{AHex}{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\p{AHex}+)(;)/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"}},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":"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"},{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"},{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"},{match:/(?<=(\p{space}|\())(set-(?:car|cdr)|(?:vector|string)-(?:fill|set))(!)(?=(\p{space}|\())/dgv,name:"support.function.with-side-effects.scheme"},{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:{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"}},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"}},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"}},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"},{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})
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}])((#[ei])?[0-9]+(\.[0-9]+)?|(#x)\p{AHex}+|(#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"},{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"},{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"},{match:/(?<=([\p{space}\(]))(set-c(?:ar|dr)|(?:vector|string)-(?:fill|set))(!)(?=([\p{space}\(]))/dgv,name:"support.function.with-side-effects.scheme"},{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([ad]){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|c(?:lose|urrent)-(?: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:{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"}},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"}},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"}},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"},{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]+)+)(?=\\.|(?:(?=(\\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})
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[XY])(\()/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:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/[\$\}]/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(?<=&)((?:[\-a-zA-Z_0-9[^\x00-\x7F]]|\\(?:\p{AHex}{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:/\\(\p{AHex}{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:/\\(\p{AHex}{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:/\\(\p{AHex}{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:/\\(\p{AHex}{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]]|\\(?:\p{AHex}{1,6}|[^\n])|#\{|\.?\$|\})+?)(?:\p{space}*([\~\|\^\$\*]?=)\p{space}*(?:((?:[\-a-zA-Z_0-9[^\x00-\x7F]]|\\(?:\p{AHex}{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:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/[\$\}]/dgv,name:"invalid.illegal.scss"}]}},match:/(\.)((?:[\-a-zA-Z_0-9[^\x00-\x7F]]|\\(?:\p{AHex}{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-((?:|last-)(?:child|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:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/[\$\}]/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(#)((?:[\-a-zA-Z_0-9[^\x00-\x7F]]|\\(?:\p{AHex}{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:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/[\$\}]/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(%)((?:[\-a-zA-Z_0-9[^\x00-\x7F]]|\\(?:\p{AHex}{1,6}|[^\n])|#\{|\.\$|[\$\}])+)(?=;|(?=\n?$)|[\p{space}\,\#\)\[\:\{\>\+\~\|]|\.[^\$]|\/\*)/dgv,name:"entity.other.attribute-name.placeholder.css"},selector_pseudo_class:{patterns:[{begin:/((:)\bnth-(?:|last-)(?:child|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,
package/dist/sdbl.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze({displayName:"1C (Query)",fileTypes:["sdbl","query"],firstLineMatch:/Выбрать|Select(\p{space}+Разрешенные|\p{space}+Allowed)?(\p{space}+Различные|\p{space}+Distinct)?(\p{space}+Первые|\p{space}+Top)?[^\n]*/dgiv,name:"sdbl",patterns:[{match:/(^\p{space}*\/\/[^\n]*(?=\n?$))/dgv,name:"comment.line.double-slash.sdbl"},{begin:/\/\//dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-slash.sdbl"},{begin:/"/dgv,end:/"(?!["])/dgv,name:"string.quoted.double.sdbl",patterns:[{match:/""/dgv,name:"constant.character.escape.sdbl"},{match:/(^\p{space}*\/\/[^\n]*(?=\n?$))/dgv,name:"comment.line.double-slash.sdbl"}]},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Неопределено|Undefined|Истина|True|Ложь|False|NULL)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgiv,name:"constant.language.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(\p{Nd}+\.?\p{Nd}*)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgv,name:"constant.numeric.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Выбор|Case|Когда|When|Тогда|Then|Иначе|Else|Конец|End)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgiv,name:"keyword.control.conditional.sdbl"},{match:/(?<!КАК\p{space}|AS\p{space})(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(НЕ|NOT|И|AND|ИЛИ|OR|В\p{space}+ИЕРАРХИИ|IN\p{space}+HIERARCHY|В|In|Между|Between|Есть(\p{space}+НЕ)?\p{space}+NULL|Is(\p{space}+NOT)?\p{space}+NULL|Ссылка|Refs|Подобно|Like)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgiv,name:"keyword.operator.logical.sdbl"},{match:/<=|>=|=|<|>/dgv,name:"keyword.operator.comparison.sdbl"},{match:/(\+|-|\*|\/|%)/dgv,name:"keyword.operator.arithmetic.sdbl"},{match:/(,|;)/dgv,name:"keyword.operator.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Выбрать|Select|Разрешенные|Allowed|Различные|Distinct|Первые|Top|Как|As|ПустаяТаблица|EmptyTable|Поместить|Into|Уничтожить|Drop|Из|From|((Левое|Left|Правое|Right|Полное|Full)\p{space}+(Внешнее\p{space}+|Outer\p{space}+)?Соединение|Join)|((Внутреннее|Inner)\p{space}+Соединение|Join)|Где|Where|(Сгруппировать\p{space}+По(\p{space}+Группирующим\p{space}+Наборам)?)|(Group\p{space}+By(\p{space}+Grouping\p{space}+Set)?)|Имеющие|Having|Объединить(\p{space}+Все)?|Union(\p{space}+All)?|(Упорядочить\p{space}+По)|(Order\p{space}+By)|Автоупорядочивание|Autoorder|Итоги|Totals|По(\p{space}+Общие)?|By(\p{space}+Overall)?|(Только\p{space}+)?Иерархия|(Only\p{space}+)?Hierarchy|Периодами|Periods|Индексировать|Index|Выразить|Cast|Возр|Asc|Убыв|Desc|Для\p{space}+Изменения|(For\p{space}+Update(\p{space}+Of)?)|Спецсимвол|Escape|СгруппированоПо|GroupedBy)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgiv,name:"keyword.control.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Значение|Value|ДатаВремя|DateTime|Тип|Type)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Подстрока|Substring|НРег|Lower|ВРег|Upper|Лев|Left|Прав|Right|ДлинаСтроки|StringLength|СтрНайти|StrFind|СтрЗаменить|StrReplace|СокрЛП|TrimAll|СокрЛ|TrimL|СокрП|TrimR)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Год|Year|Квартал|Quarter|Месяц|Month|ДеньГода|DayOfYear|День|Day|Неделя|Week|ДеньНедели|Weekday|Час|Hour|Минута|Minute|Секунда|Second|НачалоПериода|BeginOfPeriod|КонецПериода|EndOfPeriod|ДобавитьКДате|DateAdd|РазностьДат|DateDiff|Полугодие|HalfYear|Декада|TenDays)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(ACOS|COS|ASIN|SIN|ATAN|TAN|EXP|POW|LOG|LOG10|Цел|Int|Окр|Round|SQRT)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Сумма|Sum|Среднее|Avg|Минимум|Min|Максимум|Max|Количество|Count)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(ЕстьNULL|IsNULL|Представление|Presentation|ПредставлениеСсылки|RefPresentation|ТипЗначения|ValueType|АвтономерЗаписи|RecordAutoNumber|РазмерХранимыхДанных|StoredDataSize|УникальныйИдентификатор|UUID)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.])(Число|Number|Строка|String|Дата|Date|Булево|Boolean)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgiv,name:"support.type.sdbl"},{match:/(&[\p{L}\p{M}\p{N}\p{Pc}а-яё]+)/dgv,name:"variable.parameter.sdbl"}],scopeName:"source.sdbl",embeddedLangs:undefined,aliases:["1c-query"]})
1
+ const lang = Object.freeze({displayName:"1C (Query)",fileTypes:["sdbl","query"],firstLineMatch:/Выбрать|Select(\p{space}+Разрешенные|\p{space}+Allowed)?(\p{space}+Различные|\p{space}+Distinct)?(\p{space}+Первые|\p{space}+Top)?[^\n]*/dgiv,name:"sdbl",patterns:[{match:/(^\p{space}*\/\/[^\n]*(?=\n?$))/dgv,name:"comment.line.double-slash.sdbl"},{begin:/\/\//dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-slash.sdbl"},{begin:/"/dgv,end:/"(?!")/dgv,name:"string.quoted.double.sdbl",patterns:[{match:/""/dgv,name:"constant.character.escape.sdbl"},{match:/(^\p{space}*\/\/[^\n]*(?=\n?$))/dgv,name:"comment.line.double-slash.sdbl"}]},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Неопределено|Undefined|Истина|True|Ложь|False|NULL)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgiv,name:"constant.language.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(\p{Nd}+\.?\p{Nd}*)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgv,name:"constant.numeric.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Выбор|Case|Когда|When|Тогда|Then|Иначе|Else|Конец|End)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgiv,name:"keyword.control.conditional.sdbl"},{match:/(?<!КАК\p{space}|AS\p{space})(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(НЕ|NOT|И|AND|ИЛИ|OR|В\p{space}+ИЕРАРХИИ|IN\p{space}+HIERARCHY|В|In|Между|Between|Есть(\p{space}+НЕ)?\p{space}+NULL|Is(\p{space}+NOT)?\p{space}+NULL|Ссылка|Refs|Подобно|Like)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgiv,name:"keyword.operator.logical.sdbl"},{match:/<=|>=|[\=\<\>]/dgv,name:"keyword.operator.comparison.sdbl"},{match:/([\+\-\*\/\%])/dgv,name:"keyword.operator.arithmetic.sdbl"},{match:/([\,\;])/dgv,name:"keyword.operator.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Выбрать|Select|Разрешенные|Allowed|Различные|Distinct|Первые|Top|Как|As|ПустаяТаблица|EmptyTable|Поместить|Into|Уничтожить|Drop|Из|From|((Левое|Left|Правое|Right|Полное|Full)\p{space}+(Внешнее\p{space}+|Outer\p{space}+)?Соединение|Join)|((Внутреннее|Inner)\p{space}+Соединение|Join)|Где|Where|(Сгруппировать\p{space}+По(\p{space}+Группирующим\p{space}+Наборам)?)|(Group\p{space}+By(\p{space}+Grouping\p{space}+Set)?)|Имеющие|Having|Объединить(\p{space}+Все)?|Union(\p{space}+All)?|(Упорядочить\p{space}+По)|(Order\p{space}+By)|Автоупорядочивание|Autoorder|Итоги|Totals|По(\p{space}+Общие)?|By(\p{space}+Overall)?|(Только\p{space}+)?Иерархия|(Only\p{space}+)?Hierarchy|Периодами|Periods|Индексировать|Index|Выразить|Cast|Возр|Asc|Убыв|Desc|Для\p{space}+Изменения|(For\p{space}+Update(\p{space}+Of)?)|Спецсимвол|Escape|СгруппированоПо|GroupedBy)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgiv,name:"keyword.control.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Значение|Value|ДатаВремя|DateTime|Тип|Type)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Подстрока|Substring|НРег|Lower|ВРег|Upper|Лев|Left|Прав|Right|ДлинаСтроки|StringLength|СтрНайти|StrFind|СтрЗаменить|StrReplace|СокрЛП|TrimAll|СокрЛ|TrimL|СокрП|TrimR)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Год|Year|Квартал|Quarter|Месяц|Month|ДеньГода|DayOfYear|День|Day|Неделя|Week|ДеньНедели|Weekday|Час|Hour|Минута|Minute|Секунда|Second|НачалоПериода|BeginOfPeriod|КонецПериода|EndOfPeriod|ДобавитьКДате|DateAdd|РазностьДат|DateDiff|Полугодие|HalfYear|Декада|TenDays)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(ACOS|COS|ASIN|SIN|ATAN|TAN|EXP|POW|LOG|LOG10|Цел|Int|Окр|Round|SQRT)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(Сумма|Sum|Среднее|Avg|Минимум|Min|Максимум|Max|Количество|Count)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|^)(ЕстьNULL|IsNULL|Представление|Presentation|ПредставлениеСсылки|RefPresentation|ТипЗначения|ValueType|АвтономерЗаписи|RecordAutoNumber|РазмерХранимыхДанных|StoredDataSize|УникальныйИдентификатор|UUID)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.])(Число|Number|Строка|String|Дата|Date|Булево|Boolean)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=\n?$))/dgiv,name:"support.type.sdbl"},{match:/(&[\p{L}\p{M}\p{N}\p{Pc}а-яё]+)/dgv,name:"variable.parameter.sdbl"}],scopeName:"source.sdbl",embeddedLangs:undefined,aliases:["1c-query"]})
2
2
 
3
3
  export default [
4
4
  lang
@@ -1,6 +1,6 @@
1
1
  import hlsl from './hlsl.mjs'
2
2
 
3
- const lang = Object.freeze({displayName:"ShaderLab",name:"shaderlab",patterns:[{begin:/\/\//dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-slash.shaderlab"},{match:/\b(?:Range|Float|Int|Color|Vector|2D|3D|Cube|Any)\b/dgiv,name:"support.type.basic.shaderlab"},{include:"#numbers"},{match:/\b(?:Shader|Properties|SubShader|Pass|Category)\b/dgiv,name:"storage.type.structure.shaderlab"},{match:/\b(?:Name|Tags|Fallback|CustomEditor|Cull|ZWrite|ZTest|Offset|Blend|BlendOp|ColorMask|AlphaToMask|LOD|Lighting|Stencil|Ref|ReadMask|WriteMask|Comp|CompBack|CompFront|Fail|ZFail|UsePass|GrabPass|Dependency|Material|Diffuse|Ambient|Shininess|Specular|Emission|Fog|Mode|Density|SeparateSpecular|SetTexture|Combine|ConstantColor|Matrix|AlphaTest|ColorMaterial|BindChannels|Bind)\b/dgiv,name:"support.type.propertyname.shaderlab"},{match:/\b(?:Back|Front|On|Off|[RGBA]{1,3}|AmbientAndDiffuse|Emission)\b/dgiv,name:"support.constant.property-value.shaderlab"},{match:/\b(?:Less|Greater|LEqual|GEqual|Equal|NotEqual|Always|Never)\b/dgiv,name:"support.constant.property-value.comparisonfunction.shaderlab"},{match:/\b(?:Keep|Zero|Replace|IncrSat|DecrSat|Invert|IncrWrap|DecrWrap)\b/dgiv,name:"support.constant.property-value.stenciloperation.shaderlab"},{match:/\b(?:Previous|Primary|Texture|Constant|Lerp|Double|Quad|Alpha)\b/dgiv,name:"support.constant.property-value.texturecombiners.shaderlab"},{match:/\b(?:Global|Linear|Exp2|Exp)\b/dgiv,name:"support.constant.property-value.fog.shaderlab"},{match:/\b(?:Vertex|Normal|Tangent|TexCoord0|TexCoord1)\b/dgiv,name:"support.constant.property-value.bindchannels.shaderlab"},{match:/\b(?:Add|Sub|RevSub|Min|Max|LogicalClear|LogicalSet|LogicalCopyInverted|LogicalCopy|LogicalNoop|LogicalInvert|LogicalAnd|LogicalNand|LogicalOr|LogicalNor|LogicalXor|LogicalEquiv|LogicalAndReverse|LogicalAndInverted|LogicalOrReverse|LogicalOrInverted)\b/dgiv,name:"support.constant.property-value.blendoperations.shaderlab"},{match:/\b(?:One|Zero|SrcColor|SrcAlpha|DstColor|DstAlpha|OneMinusSrcColor|OneMinusSrcAlpha|OneMinusDstColor|OneMinusDstAlpha)\b/dgiv,name:"support.constant.property-value.blendfactors.shaderlab"},{match:/\[([a-zA-Z_][a-zA-Z0-9_]*)\](?!\p{space}*[a-zA-Z_][a-zA-Z0-9_]*\p{space}*\(")/dgv,name:"support.variable.reference.shaderlab"},{begin:/(\[)/dgv,end:/(\])/dgv,name:"meta.attribute.shaderlab",patterns:[{match:/([a-zA-Z]+)\b/dgvy,name:"support.type.attributename.shaderlab"},{include:"#numbers"}]},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\p{space}*\(/dgv,name:"support.variable.declaration.shaderlab"},{begin:/\b(CGPROGRAM|CGINCLUDE)\b/dgv,beginCaptures:{"1":{name:"keyword.other"}},end:/\b(ENDCG)\b/dgv,endCaptures:{"1":{name:"keyword.other"}},name:"meta.cgblock",patterns:[{include:"#hlsl-embedded"}]},{begin:/\b(HLSLPROGRAM|HLSLINCLUDE)\b/dgv,beginCaptures:{"1":{name:"keyword.other"}},end:/\b(ENDHLSL)\b/dgv,endCaptures:{"1":{name:"keyword.other"}},name:"meta.hlslblock",patterns:[{include:"#hlsl-embedded"}]},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.shaderlab"}],repository:{"hlsl-embedded":{patterns:[{include:"source.hlsl"},{match:/\b(fixed([1-4](x[1-4])?)?)\b/dgv,name:"storage.type.basic.shaderlab"},{match:/\b(UNITY_MATRIX_MVP|UNITY_MATRIX_MV|UNITY_MATRIX_M|UNITY_MATRIX_V|UNITY_MATRIX_P|UNITY_MATRIX_VP|UNITY_MATRIX_T_MV|UNITY_MATRIX_I_V|UNITY_MATRIX_IT_MV|_Object2World|_World2Object|unity_ObjectToWorld|unity_WorldToObject)\b/dgv,name:"support.variable.transformations.shaderlab"},{match:/\b(_WorldSpaceCameraPos|_ProjectionParams|_ScreenParams|_ZBufferParams|unity_OrthoParams|unity_CameraProjection|unity_CameraInvProjection|unity_CameraWorldClipPlanes)\b/dgv,name:"support.variable.camera.shaderlab"},{match:/\b(_Time|_SinTime|_CosTime|unity_DeltaTime)\b/dgv,name:"support.variable.time.shaderlab"},{match:/\b(_LightColor0|_WorldSpaceLightPos0|_LightMatrix0|unity_4LightPosX0|unity_4LightPosY0|unity_4LightPosZ0|unity_4LightAtten0|unity_LightColor|_LightColor|unity_LightPosition|unity_LightAtten|unity_SpotDirection)\b/dgv,name:"support.variable.lighting.shaderlab"},{match:/\b(unity_AmbientSky|unity_AmbientEquator|unity_AmbientGround|UNITY_LIGHTMODEL_AMBIENT|unity_FogColor|unity_FogParams)\b/dgv,name:"support.variable.fog.shaderlab"},{match:/\b(unity_LODFade)\b/dgv,name:"support.variable.various.shaderlab"},{match:/\b(SHADER_API_D3D9|SHADER_API_D3D11|SHADER_API_GLCORE|SHADER_API_OPENGL|SHADER_API_GLES|SHADER_API_GLES3|SHADER_API_METAL|SHADER_API_D3D11_9X|SHADER_API_PSSL|SHADER_API_XBOXONE|SHADER_API_PSP2|SHADER_API_WIIU|SHADER_API_MOBILE|SHADER_API_GLSL)\b/dgv,name:"support.variable.preprocessor.targetplatform.shaderlab"},{match:/\b(SHADER_TARGET)\b/dgv,name:"support.variable.preprocessor.targetmodel.shaderlab"},{match:/\b(UNITY_VERSION)\b/dgv,name:"support.variable.preprocessor.unityversion.shaderlab"},{match:/\b(UNITY_BRANCH|UNITY_FLATTEN|UNITY_NO_SCREENSPACE_SHADOWS|UNITY_NO_LINEAR_COLORSPACE|UNITY_NO_RGBM|UNITY_NO_DXT5nm|UNITY_FRAMEBUFFER_FETCH_AVAILABLE|UNITY_USE_RGBA_FOR_POINT_SHADOWS|UNITY_ATTEN_CHANNEL|UNITY_HALF_TEXEL_OFFSET|UNITY_UV_STARTS_AT_TOP|UNITY_MIGHT_NOT_HAVE_DEPTH_Texture|UNITY_NEAR_CLIP_VALUE|UNITY_VPOS_TYPE|UNITY_CAN_COMPILE_TESSELLATION|UNITY_COMPILER_HLSL|UNITY_COMPILER_HLSL2GLSL|UNITY_COMPILER_CG|UNITY_REVERSED_Z)\b/dgv,name:"support.variable.preprocessor.platformdifference.shaderlab"},{match:/\b(UNITY_PASS_FORWARDBASE|UNITY_PASS_FORWARDADD|UNITY_PASS_DEFERRED|UNITY_PASS_SHADOWCASTER|UNITY_PASS_PREPASSBASE|UNITY_PASS_PREPASSFINAL)\b/dgv,name:"support.variable.preprocessor.texture2D.shaderlab"},{match:/\b(appdata_base|appdata_tan|appdata_full|appdata_img)\b/dgv,name:"support.class.structures.shaderlab"},{match:/\b(SurfaceOutputStandardSpecular|SurfaceOutputStandard|SurfaceOutput|Input)\b/dgv,name:"support.class.surface.shaderlab"}]},numbers:{patterns:[{match:/\b([0-9]+\.?[0-9]*)\b/dgv,name:"constant.numeric.shaderlab"}]}},scopeName:"source.shaderlab",embeddedLangs:["hlsl"],aliases:["shader"]})
3
+ const lang = Object.freeze({displayName:"ShaderLab",name:"shaderlab",patterns:[{begin:/\/\//dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-slash.shaderlab"},{match:/\b(?:Range|Float|Int|Color|Vector|2D|3D|Cube|Any)\b/dgiv,name:"support.type.basic.shaderlab"},{include:"#numbers"},{match:/\b(?:Shader|Properties|SubShader|Pass|Category)\b/dgiv,name:"storage.type.structure.shaderlab"},{match:/\b(?:Name|Tags|Fallback|CustomEditor|Cull|ZWrite|ZTest|Offset|Blend|BlendOp|ColorMask|AlphaToMask|LOD|Lighting|Stencil|Ref|ReadMask|WriteMask|Comp|CompBack|CompFront|Fail|ZFail|UsePass|GrabPass|Dependency|Material|Diffuse|Ambient|Shininess|Specular|Emission|Fog|Mode|Density|SeparateSpecular|SetTexture|Combine|ConstantColor|Matrix|AlphaTest|ColorMaterial|BindChannels|Bind)\b/dgiv,name:"support.type.propertyname.shaderlab"},{match:/\b(?:Back|Front|On|Off|[RGBA]{1,3}|AmbientAndDiffuse|Emission)\b/dgiv,name:"support.constant.property-value.shaderlab"},{match:/\b(?:Less|Greater|LEqual|GEqual|Equal|NotEqual|Always|Never)\b/dgiv,name:"support.constant.property-value.comparisonfunction.shaderlab"},{match:/\b(?:Keep|Zero|Replace|IncrSat|DecrSat|Invert|IncrWrap|DecrWrap)\b/dgiv,name:"support.constant.property-value.stenciloperation.shaderlab"},{match:/\b(?:Previous|Primary|Texture|Constant|Lerp|Double|Quad|Alpha)\b/dgiv,name:"support.constant.property-value.texturecombiners.shaderlab"},{match:/\b(?:Global|Linear|Exp2|Exp)\b/dgiv,name:"support.constant.property-value.fog.shaderlab"},{match:/\b(?:Vertex|Normal|Tangent|TexCoord0|TexCoord1)\b/dgiv,name:"support.constant.property-value.bindchannels.shaderlab"},{match:/\b(?:Add|Sub|RevSub|Min|Max|LogicalClear|LogicalSet|LogicalCopyInverted|LogicalCopy|LogicalNoop|LogicalInvert|LogicalAnd|LogicalNand|LogicalOr|LogicalNor|LogicalXor|LogicalEquiv|LogicalAndReverse|LogicalAndInverted|LogicalOrReverse|LogicalOrInverted)\b/dgiv,name:"support.constant.property-value.blendoperations.shaderlab"},{match:/\b(?:One|Zero|SrcColor|SrcAlpha|DstColor|DstAlpha|OneMinusSrcColor|OneMinusSrcAlpha|OneMinusDstColor|OneMinusDstAlpha)\b/dgiv,name:"support.constant.property-value.blendfactors.shaderlab"},{match:/\[([a-zA-Z_][a-zA-Z0-9_]*)\](?!\p{space}*[a-zA-Z_][a-zA-Z0-9_]*\p{space}*\(")/dgv,name:"support.variable.reference.shaderlab"},{begin:/(\[)/dgv,end:/(\])/dgv,name:"meta.attribute.shaderlab",patterns:[{match:/([a-zA-Z]+)\b/dgvy,name:"support.type.attributename.shaderlab"},{include:"#numbers"}]},{match:/\b([a-zA-Z_][a-zA-Z0-9_]*)\p{space}*\(/dgv,name:"support.variable.declaration.shaderlab"},{begin:/\b(CG(?:PROGRAM|INCLUDE))\b/dgv,beginCaptures:{"1":{name:"keyword.other"}},end:/\b(ENDCG)\b/dgv,endCaptures:{"1":{name:"keyword.other"}},name:"meta.cgblock",patterns:[{include:"#hlsl-embedded"}]},{begin:/\b(HLSL(?:PROGRAM|INCLUDE))\b/dgv,beginCaptures:{"1":{name:"keyword.other"}},end:/\b(ENDHLSL)\b/dgv,endCaptures:{"1":{name:"keyword.other"}},name:"meta.hlslblock",patterns:[{include:"#hlsl-embedded"}]},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.shaderlab"}],repository:{"hlsl-embedded":{patterns:[{include:"source.hlsl"},{match:/\b(fixed([1-4](x[1-4])?)?)\b/dgv,name:"storage.type.basic.shaderlab"},{match:/\b(UNITY_MATRIX_MVP|UNITY_MATRIX_MV|UNITY_MATRIX_M|UNITY_MATRIX_V|UNITY_MATRIX_P|UNITY_MATRIX_VP|UNITY_MATRIX_T_MV|UNITY_MATRIX_I_V|UNITY_MATRIX_IT_MV|_Object2World|_World2Object|unity_ObjectToWorld|unity_WorldToObject)\b/dgv,name:"support.variable.transformations.shaderlab"},{match:/\b(_WorldSpaceCameraPos|_ProjectionParams|_ScreenParams|_ZBufferParams|unity_OrthoParams|unity_CameraProjection|unity_CameraInvProjection|unity_CameraWorldClipPlanes)\b/dgv,name:"support.variable.camera.shaderlab"},{match:/\b(_Time|_SinTime|_CosTime|unity_DeltaTime)\b/dgv,name:"support.variable.time.shaderlab"},{match:/\b(_LightColor0|_WorldSpaceLightPos0|_LightMatrix0|unity_4LightPosX0|unity_4LightPosY0|unity_4LightPosZ0|unity_4LightAtten0|unity_LightColor|_LightColor|unity_LightPosition|unity_LightAtten|unity_SpotDirection)\b/dgv,name:"support.variable.lighting.shaderlab"},{match:/\b(unity_AmbientSky|unity_AmbientEquator|unity_AmbientGround|UNITY_LIGHTMODEL_AMBIENT|unity_FogColor|unity_FogParams)\b/dgv,name:"support.variable.fog.shaderlab"},{match:/\b(unity_LODFade)\b/dgv,name:"support.variable.various.shaderlab"},{match:/\b(SHADER_API_(?:D3D9|D3D11|GLCORE|OPENGL|GLES|GLES3|METAL|D3D11_9X|PSSL|XBOXONE|PSP2|WIIU|MOBILE|GLSL))\b/dgv,name:"support.variable.preprocessor.targetplatform.shaderlab"},{match:/\b(SHADER_TARGET)\b/dgv,name:"support.variable.preprocessor.targetmodel.shaderlab"},{match:/\b(UNITY_VERSION)\b/dgv,name:"support.variable.preprocessor.unityversion.shaderlab"},{match:/\b(UNITY_(?:BRANCH|FLATTEN|NO_SCREENSPACE_SHADOWS|NO_LINEAR_COLORSPACE|NO_RGBM|NO_DXT5nm|FRAMEBUFFER_FETCH_AVAILABLE|USE_RGBA_FOR_POINT_SHADOWS|ATTEN_CHANNEL|HALF_TEXEL_OFFSET|UV_STARTS_AT_TOP|MIGHT_NOT_HAVE_DEPTH_Texture|NEAR_CLIP_VALUE|VPOS_TYPE|CAN_COMPILE_TESSELLATION|COMPILER_HLSL|COMPILER_HLSL2GLSL|COMPILER_CG|REVERSED_Z))\b/dgv,name:"support.variable.preprocessor.platformdifference.shaderlab"},{match:/\b(UNITY_PASS_(?:FORWARDBASE|FORWARDADD|DEFERRED|SHADOWCASTER|PREPASSBASE|PREPASSFINAL))\b/dgv,name:"support.variable.preprocessor.texture2D.shaderlab"},{match:/\b(appdata_(?:base|tan|full|img))\b/dgv,name:"support.class.structures.shaderlab"},{match:/\b(SurfaceOutputStandardSpecular|SurfaceOutputStandard|SurfaceOutput|Input)\b/dgv,name:"support.class.surface.shaderlab"}]},numbers:{patterns:[{match:/\b([0-9]+\.?[0-9]*)\b/dgv,name:"constant.numeric.shaderlab"}]}},scopeName:"source.shaderlab",embeddedLangs:["hlsl"],aliases:["shader"]})
4
4
 
5
5
  export default [
6
6
  ...hlsl,