@shikijs/langs-precompiled 3.3.0 → 3.4.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 (127) hide show
  1. package/dist/abap.mjs +1 -1
  2. package/dist/ada.mjs +1 -1
  3. package/dist/angular-expression.mjs +1 -1
  4. package/dist/angular-ts.mjs +1 -1
  5. package/dist/applescript.mjs +1 -1
  6. package/dist/ara.mjs +1 -1
  7. package/dist/asciidoc.mjs +1 -1
  8. package/dist/astro.mjs +1 -1
  9. package/dist/awk.mjs +1 -1
  10. package/dist/ballerina.mjs +1 -1
  11. package/dist/bat.mjs +1 -1
  12. package/dist/blade.mjs +1 -1
  13. package/dist/c.mjs +1 -1
  14. package/dist/cadence.mjs +1 -1
  15. package/dist/clarity.mjs +1 -1
  16. package/dist/cmake.mjs +1 -1
  17. package/dist/cobol.mjs +1 -1
  18. package/dist/codeql.mjs +1 -1
  19. package/dist/coffee.mjs +1 -1
  20. package/dist/common-lisp.mjs +1 -1
  21. package/dist/coq.mjs +1 -1
  22. package/dist/cpp-macro.mjs +1 -1
  23. package/dist/cpp.mjs +1 -1
  24. package/dist/crystal.mjs +1 -1
  25. package/dist/css.mjs +1 -1
  26. package/dist/cypher.mjs +1 -1
  27. package/dist/d.mjs +1 -1
  28. package/dist/dax.mjs +1 -1
  29. package/dist/dream-maker.mjs +1 -1
  30. package/dist/elixir.mjs +1 -1
  31. package/dist/elm.mjs +1 -1
  32. package/dist/emacs-lisp.mjs +1 -1
  33. package/dist/erlang.mjs +1 -1
  34. package/dist/fennel.mjs +1 -1
  35. package/dist/fortran-free-form.mjs +1 -1
  36. package/dist/fsharp.mjs +1 -1
  37. package/dist/gdresource.mjs +1 -1
  38. package/dist/gdscript.mjs +1 -1
  39. package/dist/gherkin.mjs +1 -1
  40. package/dist/gleam.mjs +1 -1
  41. package/dist/glimmer-js.mjs +1 -1
  42. package/dist/glimmer-ts.mjs +1 -1
  43. package/dist/glsl.mjs +1 -1
  44. package/dist/gnuplot.mjs +1 -1
  45. package/dist/go.mjs +1 -1
  46. package/dist/groovy.mjs +1 -1
  47. package/dist/hack.mjs +1 -1
  48. package/dist/handlebars.mjs +1 -1
  49. package/dist/haxe.mjs +1 -1
  50. package/dist/hlsl.mjs +1 -1
  51. package/dist/html.mjs +1 -1
  52. package/dist/imba.mjs +1 -1
  53. package/dist/java.mjs +1 -1
  54. package/dist/javascript.mjs +1 -1
  55. package/dist/jinja.mjs +1 -1
  56. package/dist/jsonnet.mjs +1 -1
  57. package/dist/jsx.mjs +1 -1
  58. package/dist/julia.mjs +1 -1
  59. package/dist/kusto.mjs +1 -1
  60. package/dist/latex.mjs +1 -1
  61. package/dist/lean.mjs +1 -1
  62. package/dist/less.mjs +1 -1
  63. package/dist/liquid.mjs +1 -1
  64. package/dist/llvm.mjs +1 -1
  65. package/dist/log.mjs +1 -1
  66. package/dist/logo.mjs +1 -1
  67. package/dist/luau.mjs +1 -1
  68. package/dist/make.mjs +1 -1
  69. package/dist/markdown.mjs +1 -1
  70. package/dist/marko.mjs +1 -1
  71. package/dist/matlab.mjs +1 -1
  72. package/dist/mdc.mjs +1 -1
  73. package/dist/mdx.mjs +1 -1
  74. package/dist/mermaid.mjs +1 -1
  75. package/dist/mipsasm.mjs +1 -1
  76. package/dist/mojo.mjs +1 -1
  77. package/dist/nginx.mjs +1 -1
  78. package/dist/nim.mjs +1 -1
  79. package/dist/nix.mjs +1 -1
  80. package/dist/nushell.mjs +1 -1
  81. package/dist/objective-c.mjs +1 -1
  82. package/dist/objective-cpp.mjs +1 -1
  83. package/dist/ocaml.mjs +1 -1
  84. package/dist/pascal.mjs +1 -1
  85. package/dist/perl.mjs +1 -1
  86. package/dist/php.mjs +1 -1
  87. package/dist/plsql.mjs +1 -1
  88. package/dist/powershell.mjs +1 -1
  89. package/dist/prolog.mjs +1 -1
  90. package/dist/python.mjs +1 -1
  91. package/dist/qss.mjs +1 -1
  92. package/dist/r.mjs +1 -1
  93. package/dist/racket.mjs +1 -1
  94. package/dist/raku.mjs +1 -1
  95. package/dist/riscv.mjs +1 -1
  96. package/dist/ruby.mjs +1 -1
  97. package/dist/sas.mjs +1 -1
  98. package/dist/scheme.mjs +1 -1
  99. package/dist/shaderlab.mjs +1 -1
  100. package/dist/shellscript.mjs +1 -1
  101. package/dist/smalltalk.mjs +1 -3
  102. package/dist/splunk.mjs +1 -1
  103. package/dist/sql.mjs +1 -1
  104. package/dist/stata.mjs +1 -1
  105. package/dist/stylus.mjs +1 -1
  106. package/dist/svelte.mjs +1 -1
  107. package/dist/system-verilog.mjs +1 -1
  108. package/dist/systemd.mjs +1 -1
  109. package/dist/talonscript.mjs +1 -1
  110. package/dist/templ.mjs +1 -1
  111. package/dist/terraform.mjs +1 -1
  112. package/dist/tex.mjs +1 -1
  113. package/dist/toml.mjs +1 -1
  114. package/dist/tsx.mjs +1 -1
  115. package/dist/typescript.mjs +1 -1
  116. package/dist/typst.mjs +1 -1
  117. package/dist/v.mjs +1 -1
  118. package/dist/vala.mjs +1 -1
  119. package/dist/vb.mjs +1 -1
  120. package/dist/vhdl.mjs +1 -1
  121. package/dist/viml.mjs +1 -1
  122. package/dist/vyper.mjs +1 -1
  123. package/dist/wasm.mjs +1 -1
  124. package/dist/wikitext.mjs +1 -1
  125. package/dist/wolfram.mjs +1 -1
  126. package/dist/zenscript.mjs +1 -1
  127. package/package.json +4 -4
@@ -3,7 +3,7 @@ import css from './css.mjs'
3
3
  import javascript from './javascript.mjs'
4
4
  import yaml from './yaml.mjs'
5
5
 
6
- const lang = Object.freeze({displayName:"Handlebars",name:"handlebars",patterns:[{include:"#yfm"},{include:"#extends"},{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#end_block"},{include:"#else_token"},{include:"#partial_and_var"},{include:"#inline_script"},{include:"#html_tags"},{include:"text.html.basic"}],repository:{block_comments:{patterns:[{begin:/\{\{!--/dgv,end:/--\}\}/dgv,name:"comment.block.handlebars",patterns:[{match:/@[\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"keyword.annotation.handlebars"},{include:"#comments"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/-{2,3}\p{space}*>/dgv,name:"comment.block.html",patterns:[{match:/--/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]}]},block_helper:{begin:/(\{\{)(~?#)([\--9\>A-Z_a-z]+)\p{space}?(@?[\--9A-Z_a-z]+)*\p{space}?(@?[\--9A-Z_a-z]+)*\p{space}?(@?[\--9A-Z_a-z]+)*/dgv,beginCaptures:{"1":{name:"support.constant.handlebars"},"2":{name:"support.constant.handlebars keyword.control"},"3":{name:"support.constant.handlebars keyword.control"},"4":{name:"variable.parameter.handlebars"},"5":{name:"support.constant.handlebars"},"6":{name:"variable.parameter.handlebars"},"7":{name:"support.constant.handlebars"}},end:/(~?\}\})/dgv,endCaptures:{"1":{name:"support.constant.handlebars"}},name:"meta.function.block.start.handlebars",patterns:[{include:"#string"},{include:"#handlebars_attribute"}]},comments:{patterns:[{begin:/\{\{!/dgv,end:/\}\}/dgv,name:"comment.block.handlebars",patterns:[{match:/@[\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"keyword.annotation.handlebars"},{include:"#comments"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/-{2,3}\p{space}*>/dgv,name:"comment.block.html",patterns:[{match:/--/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]}]},else_token:{begin:/(\{\{)(~?else)(@?\p{space}(if)\p{space}([\(\)\--9A-Z_a-z\p{space}]+))?/dgv,beginCaptures:{"1":{name:"support.constant.handlebars"},"2":{name:"support.constant.handlebars keyword.control"},"3":{name:"support.constant.handlebars"},"4":{name:"variable.parameter.handlebars"}},end:/(~?\}\}\}*)/dgv,endCaptures:{"1":{name:"support.constant.handlebars"}},name:"meta.function.inline.else.handlebars"},end_block:{begin:/(\{\{)(~?\/)([\--9A-Z_a-z]+)\p{space}*/dgv,beginCaptures:{"1":{name:"support.constant.handlebars"},"2":{name:"support.constant.handlebars keyword.control"},"3":{name:"support.constant.handlebars keyword.control"}},end:/(~?\}\})/dgv,endCaptures:{"1":{name:"support.constant.handlebars"}},name:"meta.function.block.end.handlebars",patterns:[]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([0-9A-Za-z]+|#[0-9]+|#x\p{AHex}+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},"escaped-double-quote":{match:/\\"/dgv,name:"constant.character.escape.js"},"escaped-single-quote":{match:/\\'/dgv,name:"constant.character.escape.js"},extends:{patterns:[{begin:/(\{\{!<)\p{space}([\--9A-Z_a-z]+)/dgv,beginCaptures:{"1":{name:"support.function.handlebars"},"2":{name:"support.class.handlebars"}},end:/(\}\})/dgv,endCaptures:{"1":{name:"support.function.handlebars"}},name:"meta.preprocessor.handlebars"}]},handlebars_attribute:{patterns:[{include:"#handlebars_attribute_name"},{include:"#handlebars_attribute_value"}]},handlebars_attribute_name:{begin:/\b([\-\.0-9A-Z_a-z]+)\b=/dgv,captures:{"1":{name:"variable.parameter.handlebars"}},end:/(?=["']|)/dgv,name:"entity.other.attribute-name.handlebars"},handlebars_attribute_value:{begin:/([\--9A-Z_a-z]+)\b/dgv,captures:{"1":{name:"variable.parameter.handlebars"}},end:/(["']|)/dgv,name:"entity.other.attribute-value.handlebars",patterns:[{include:"#string"}]},html_tags:{patterns:[{begin:/(<)([\-0-\:A-Za-z]+)(?=[^\>]*><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"}},end:/(>(<)\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"meta.scope.between-tag-pair.html"},"3":{name:"entity.name.tag.html"},"4":{name:"punctuation.definition.tag.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\?)(xml)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.xml.html"}},end:/(\?>)/dgv,name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag_generic_attribute"},{include:"#string"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/--\p{space}*>/dgv,name:"comment.block.html",patterns:[{match:/--/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:/<!/dgv,captures:{"0":{name:"punctuation.definition.tag.html"}},end:/>/dgv,name:"meta.tag.sgml.html",patterns:[{begin:/(DOCTYPE|doctype)/dgv,captures:{"1":{name:"entity.name.tag.doctype.html"}},end:/(?=>)/dgv,name:"meta.tag.sgml.doctype.html",patterns:[{match:/"[^"\>]*"/dgv,name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:/\[CDATA\[/dgv,end:/\]\](?=>)/dgv,name:"constant.other.inline-data.html"},{match:/(\p{space}*)(?!--|>)\P{space}(\p{space}*)/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:/(?:^\p{space}+)?(<)(style)\b(?![^\>]*\/>)/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.style.html"},"3":{name:"punctuation.definition.tag.html"}},end:/(<\/)(style)(>)(?:\p{space}*\n)?/dgiv,name:"source.css.embedded.html",patterns:[{include:"#tag-stuff"},{begin:/(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"}},end:/(?=<\/style)/dgiv,patterns:[{include:"source.css"}]}]},{begin:/(?:^\p{space}+)?(<)(script)\b(?![^\>]*\/>)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"}},end:/(?<=<\/(script|SCRIPT))(>)(?:\p{space}*\n)?/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.html"}},name:"source.js.embedded.html",patterns:[{include:"#tag-stuff"},{begin:/(?<!<\/(?:script|SCRIPT))(>)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"}},end:/(<\/)(script)/dgiv,patterns:[{captures:{"1":{name:"punctuation.definition.comment.js"}},match:/(\/\/)[^\n]*?((?=<\/script)|(?=\n?$)\n?)/dgv,name:"comment.line.double-slash.js"},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.js"}},end:/\*\/|(?=<\/script)/dgv,name:"comment.block.js"},{include:"source.js"}]}]},{begin:/(<\/?)((?:body|head|html))\b/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.structure.any.html"}},end:/(>)/dgv,name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:address|blockquote|dd|div|header|section|footer|aside|nav|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre))\b/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|[qs]|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var))\b/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/((?: ?\/)?>)/dgv,name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([\-0-\:A-Za-z]+)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.other.html"}},end:/(>)/dgv,name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([\-0-\:A-Za-\{\}]+)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.tokenised.html"}},end:/(>)/dgv,name:"meta.tag.tokenised.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:/<>/dgv,name:"invalid.illegal.incomplete.html"},{match:/</dgv,name:"invalid.illegal.bad-angle-bracket.html"}]},inline_script:{begin:/(?:^\p{space}+)?(<)([Ssſ][Cc][Rr][Ii][Pp][Tt])\b[^\n]*(type)=(["'](?:text\/x-handlebars-template|text\/x-handlebars|text\/template|x-tmpl-handlebars)["'])(?![^\>]*\/>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"},"3":{name:"entity.other.attribute-name.html"},"4":{name:"string.quoted.double.html"}},end:/(?<=<\/(script|SCRIPT))(>)(?:\p{space}*\n)?/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.html"}},name:"source.handlebars.embedded.html",patterns:[{include:"#tag-stuff"},{begin:/(?<!<\/(?:script|SCRIPT))(>)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"}},end:/(<\/)(script)/dgiv,patterns:[{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#end_block"},{include:"#else_token"},{include:"#partial_and_var"},{include:"#html_tags"},{include:"text.html.basic"}]}]},partial_and_var:{begin:/(\{\{~?\{*(>|!<)*)\p{space}*(@?[\$\--9A-Z_a-z]+)*/dgv,beginCaptures:{"1":{name:"support.constant.handlebars"},"3":{name:"variable.parameter.handlebars"}},end:/(~?\}\}\}*)/dgv,endCaptures:{"1":{name:"support.constant.handlebars"}},name:"meta.function.inline.other.handlebars",patterns:[{include:"#string"},{include:"#handlebars_attribute"}]},string:{patterns:[{include:"#string-single-quoted"},{include:"#string-double-quoted"}]},"string-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.handlebars",patterns:[{include:"#escaped-double-quote"},{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#else_token"},{include:"#end_block"},{include:"#partial_and_var"}]},"string-single-quoted":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.handlebars",patterns:[{include:"#escaped-single-quote"},{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#else_token"},{include:"#end_block"},{include:"#partial_and_var"}]},"tag-stuff":{patterns:[{include:"#tag_id_attribute"},{include:"#tag_generic_attribute"},{include:"#string"},{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#end_block"},{include:"#else_token"},{include:"#partial_and_var"}]},tag_generic_attribute:{begin:/\b([\-0-9A-Z_a-z]+)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.generic.html"},"2":{name:"punctuation.separator.key-value.html"}},end:/(?<=["']|)/dgv,name:"entity.other.attribute-name.html",patterns:[{include:"#string"}]},tag_id_attribute:{begin:/\b(id)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.id.html"},"2":{name:"punctuation.separator.key-value.html"}},end:/(?<=["']|)/dgv,name:"meta.attribute-with-value.id.html",patterns:[{include:"#string"}]},yfm:{patterns:[{begin:/(?<!\p{space})---\n(?=\n?$)/dgv,end:/^---\p{space}/dgv,name:"markup.raw.yaml.front-matter",patterns:[{include:"source.yaml"}]}]}},scopeName:"text.html.handlebars",embeddedLangs:["html","css","javascript","yaml"],aliases:["hbs"]})
6
+ const lang = Object.freeze({displayName:"Handlebars",name:"handlebars",patterns:[{include:"#yfm"},{include:"#extends"},{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#end_block"},{include:"#else_token"},{include:"#partial_and_var"},{include:"#inline_script"},{include:"#html_tags"},{include:"text.html.basic"}],repository:{block_comments:{patterns:[{begin:/\{\{!--/dgv,end:/--\}\}/dgv,name:"comment.block.handlebars",patterns:[{match:/@[\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"keyword.annotation.handlebars"},{include:"#comments"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/-{2,3}\p{space}*>/dgv,name:"comment.block.html",patterns:[{match:/--/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]}]},block_helper:{begin:/(\{\{)(~?#)([\--9\>A-Z_a-z]+)\p{space}?(@?[\--9A-Z_a-z]+)*\p{space}?(@?[\--9A-Z_a-z]+)*\p{space}?(@?[\--9A-Z_a-z]+)*/dgv,beginCaptures:{"1":{name:"support.constant.handlebars"},"2":{name:"support.constant.handlebars keyword.control"},"3":{name:"support.constant.handlebars keyword.control"},"4":{name:"variable.parameter.handlebars"},"5":{name:"support.constant.handlebars"},"6":{name:"variable.parameter.handlebars"},"7":{name:"support.constant.handlebars"}},end:/(~?\}\})/dgv,endCaptures:{"1":{name:"support.constant.handlebars"}},name:"meta.function.block.start.handlebars",patterns:[{include:"#string"},{include:"#handlebars_attribute"}]},comments:{patterns:[{begin:/\{\{!/dgv,end:/\}\}/dgv,name:"comment.block.handlebars",patterns:[{match:/@[\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"keyword.annotation.handlebars"},{include:"#comments"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/-{2,3}\p{space}*>/dgv,name:"comment.block.html",patterns:[{match:/--/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]}]},else_token:{begin:/(\{\{)(~?else)(@?\p{space}(if)\p{space}([\(\)\--9A-Z_a-z\p{space}]+))?/dgv,beginCaptures:{"1":{name:"support.constant.handlebars"},"2":{name:"support.constant.handlebars keyword.control"},"3":{name:"support.constant.handlebars"},"4":{name:"variable.parameter.handlebars"}},end:/(~?\}\}\}*)/dgv,endCaptures:{"1":{name:"support.constant.handlebars"}},name:"meta.function.inline.else.handlebars"},end_block:{begin:/(\{\{)(~?\/)([\--9A-Z_a-z]+)\p{space}*/dgv,beginCaptures:{"1":{name:"support.constant.handlebars"},"2":{name:"support.constant.handlebars keyword.control"},"3":{name:"support.constant.handlebars keyword.control"}},end:/(~?\}\})/dgv,endCaptures:{"1":{name:"support.constant.handlebars"}},name:"meta.function.block.end.handlebars",patterns:[]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([0-9A-Za-z]+|#[0-9]+|#x\p{AHex}+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},"escaped-double-quote":{match:/\\"/dgv,name:"constant.character.escape.js"},"escaped-single-quote":{match:/\\'/dgv,name:"constant.character.escape.js"},extends:{patterns:[{begin:/(\{\{!<)\p{space}([\--9A-Z_a-z]+)/dgv,beginCaptures:{"1":{name:"support.function.handlebars"},"2":{name:"support.class.handlebars"}},end:/(\}\})/dgv,endCaptures:{"1":{name:"support.function.handlebars"}},name:"meta.preprocessor.handlebars"}]},handlebars_attribute:{patterns:[{include:"#handlebars_attribute_name"},{include:"#handlebars_attribute_value"}]},handlebars_attribute_name:{begin:/\b([\-\.0-9A-Z_a-z]+)\b=/dgv,captures:{"1":{name:"variable.parameter.handlebars"}},end:/(?=["']?)/dgv,name:"entity.other.attribute-name.handlebars"},handlebars_attribute_value:{begin:/([\--9A-Z_a-z]+)\b/dgv,captures:{"1":{name:"variable.parameter.handlebars"}},end:/(["']?)/dgv,name:"entity.other.attribute-value.handlebars",patterns:[{include:"#string"}]},html_tags:{patterns:[{begin:/(<)([\-0-\:A-Za-z]+)(?=[^\>]*><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"}},end:/(>(<)\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"meta.scope.between-tag-pair.html"},"3":{name:"entity.name.tag.html"},"4":{name:"punctuation.definition.tag.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\?)(xml)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.xml.html"}},end:/(\?>)/dgv,name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag_generic_attribute"},{include:"#string"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/--\p{space}*>/dgv,name:"comment.block.html",patterns:[{match:/--/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:/<!/dgv,captures:{"0":{name:"punctuation.definition.tag.html"}},end:/>/dgv,name:"meta.tag.sgml.html",patterns:[{begin:/(DOCTYPE|doctype)/dgv,captures:{"1":{name:"entity.name.tag.doctype.html"}},end:/(?=>)/dgv,name:"meta.tag.sgml.doctype.html",patterns:[{match:/"[^"\>]*"/dgv,name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:/\[CDATA\[/dgv,end:/\]\](?=>)/dgv,name:"constant.other.inline-data.html"},{match:/(\p{space}*)(?!--|>)\P{space}(\p{space}*)/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:/(?:^\p{space}+)?(<)(style)\b(?![^\>]*\/>)/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.style.html"},"3":{name:"punctuation.definition.tag.html"}},end:/(<\/)(style)(>)(?:\p{space}*\n)?/dgiv,name:"source.css.embedded.html",patterns:[{include:"#tag-stuff"},{begin:/(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"}},end:/(?=<\/style)/dgiv,patterns:[{include:"source.css"}]}]},{begin:/(?:^\p{space}+)?(<)(script)\b(?![^\>]*\/>)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"}},end:/(?<=<\/(script|SCRIPT))(>)(?:\p{space}*\n)?/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.html"}},name:"source.js.embedded.html",patterns:[{include:"#tag-stuff"},{begin:/(?<!<\/(?:script|SCRIPT))(>)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"}},end:/(<\/)(script)/dgiv,patterns:[{captures:{"1":{name:"punctuation.definition.comment.js"}},match:/(\/\/)[^\n]*?((?=<\/script)|(?=\n?$)\n?)/dgv,name:"comment.line.double-slash.js"},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.js"}},end:/\*\/|(?=<\/script)/dgv,name:"comment.block.js"},{include:"source.js"}]}]},{begin:/(<\/?)((?:body|head|html))\b/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.structure.any.html"}},end:/(>)/dgv,name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:address|blockquote|dd|div|header|section|footer|aside|nav|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre))\b/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|[qs]|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var))\b/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/((?: ?\/)?>)/dgv,name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([\-0-\:A-Za-z]+)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.other.html"}},end:/(>)/dgv,name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([\-0-\:A-Za-\{\}]+)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.tokenised.html"}},end:/(>)/dgv,name:"meta.tag.tokenised.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:/<>/dgv,name:"invalid.illegal.incomplete.html"},{match:/</dgv,name:"invalid.illegal.bad-angle-bracket.html"}]},inline_script:{begin:/(?:^\p{space}+)?(<)([Ssſ][Cc][Rr][Ii][Pp][Tt])\b[^\n]*(type)=(["'](?:text\/x-handlebars-template|text\/x-handlebars|text\/template|x-tmpl-handlebars)["'])(?![^\>]*\/>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"},"3":{name:"entity.other.attribute-name.html"},"4":{name:"string.quoted.double.html"}},end:/(?<=<\/(script|SCRIPT))(>)(?:\p{space}*\n)?/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.html"}},name:"source.handlebars.embedded.html",patterns:[{include:"#tag-stuff"},{begin:/(?<!<\/(?:script|SCRIPT))(>)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"}},end:/(<\/)(script)/dgiv,patterns:[{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#end_block"},{include:"#else_token"},{include:"#partial_and_var"},{include:"#html_tags"},{include:"text.html.basic"}]}]},partial_and_var:{begin:/(\{\{~?\{*(>|!<)*)\p{space}*(@?[\$\--9A-Z_a-z]+)*/dgv,beginCaptures:{"1":{name:"support.constant.handlebars"},"3":{name:"variable.parameter.handlebars"}},end:/(~?\}\}\}*)/dgv,endCaptures:{"1":{name:"support.constant.handlebars"}},name:"meta.function.inline.other.handlebars",patterns:[{include:"#string"},{include:"#handlebars_attribute"}]},string:{patterns:[{include:"#string-single-quoted"},{include:"#string-double-quoted"}]},"string-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.handlebars",patterns:[{include:"#escaped-double-quote"},{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#else_token"},{include:"#end_block"},{include:"#partial_and_var"}]},"string-single-quoted":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.handlebars",patterns:[{include:"#escaped-single-quote"},{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#else_token"},{include:"#end_block"},{include:"#partial_and_var"}]},"tag-stuff":{patterns:[{include:"#tag_id_attribute"},{include:"#tag_generic_attribute"},{include:"#string"},{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#end_block"},{include:"#else_token"},{include:"#partial_and_var"}]},tag_generic_attribute:{begin:/\b([\-0-9A-Z_a-z]+)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.generic.html"},"2":{name:"punctuation.separator.key-value.html"}},end:/(?<=["']?)/dgv,name:"entity.other.attribute-name.html",patterns:[{include:"#string"}]},tag_id_attribute:{begin:/\b(id)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.id.html"},"2":{name:"punctuation.separator.key-value.html"}},end:/(?<=["']?)/dgv,name:"meta.attribute-with-value.id.html",patterns:[{include:"#string"}]},yfm:{patterns:[{begin:/(?<!\p{space})---\n(?=\n?$)/dgv,end:/^---\p{space}/dgv,name:"markup.raw.yaml.front-matter",patterns:[{include:"source.yaml"}]}]}},scopeName:"text.html.handlebars",embeddedLangs:["html","css","javascript","yaml"],aliases:["hbs"]})
7
7
 
8
8
  export default [
9
9
  ...html,
package/dist/haxe.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze({displayName:"Haxe",fileTypes:["hx","dump"],name:"haxe",patterns:[{include:"#all"}],repository:{abstract:{begin:/(?=abstract\p{space}+[A-Z])/dgv,end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},name:"meta.abstract.hx",patterns:[{include:"#abstract-name"},{include:"#abstract-name-post"},{include:"#abstract-block"}]},"abstract-block":{begin:/(?<=\{)/dgv,end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.block.hx",patterns:[{include:"#method"},{include:"#modifiers"},{include:"#variable"},{include:"#block"},{include:"#block-contents"}]},"abstract-name":{begin:/\b(abstract)\b/dgv,beginCaptures:{"1":{name:"storage.type.class.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"entity.name.type.class.hx"}},patterns:[{include:"#global"}]},"abstract-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/([\;\{])/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},patterns:[{include:"#global"},{match:/\b(from|to)\b/dgv,name:"keyword.other.hx"},{include:"#type"},{match:/[\(\)]/dgv,name:"punctuation.definition.other.hx"}]},"accessor-method":{patterns:[{match:/\b([gs]et)_[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.name.function.hx"}]},all:{patterns:[{include:"#global"},{include:"#package"},{include:"#import"},{include:"#using"},{match:/\b(final)\b(?=\p{space}+(class|interface|extern|private)\b)/dgv,name:"storage.modifier.hx"},{include:"#abstract"},{include:"#class"},{include:"#enum"},{include:"#interface"},{include:"#typedef"},{include:"#block"},{include:"#block-contents"}]},array:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.array.begin.hx"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.array.end.hx"}},name:"meta.array.literal.hx",patterns:[{include:"#block"},{include:"#block-contents"}]},"arrow-function":{begin:/(\()(?=[^\(]*?\)\p{space}*->)/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.hx"}},end:/(\))\p{space}*(->)/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.hx"},"2":{name:"storage.type.function.arrow.hx"}},name:"meta.method.arrow.hx",patterns:[{include:"#arrow-function-parameter"}]},"arrow-function-parameter":{begin:/(?<=[\(\,])/dgv,end:/(?=[\)\,])/dgv,patterns:[{include:"#parameter-name"},{include:"#arrow-function-parameter-type-hint"},{include:"#parameter-assign"},{include:"#punctuation-comma"},{include:"#global"}]},"arrow-function-parameter-type-hint":{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.annotation.hx"}},end:/(?=[\)\,\=])/dgv,patterns:[{include:"#type"}]},block:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.begin.hx"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.block.end.hx"}},patterns:[{include:"#block"},{include:"#block-contents"}]},"block-contents":{patterns:[{include:"#global"},{include:"#regex"},{include:"#array"},{include:"#constants"},{include:"#strings"},{include:"#metadata"},{include:"#method"},{include:"#variable"},{include:"#modifiers"},{include:"#new-expr"},{include:"#for-loop"},{include:"#keywords"},{include:"#arrow-function"},{include:"#method-call"},{include:"#enum-constructor-call"},{include:"#punctuation-braces"},{include:"#macro-reification"},{include:"#operators"},{include:"#operator-assignment"},{include:"#punctuation-terminator"},{include:"#punctuation-comma"},{include:"#punctuation-accessor"},{include:"#identifiers"}]},class:{begin:/(?=class)/dgv,end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},name:"meta.class.hx",patterns:[{include:"#class-name"},{include:"#class-name-post"},{include:"#class-block"}]},"class-block":{begin:/(?<=\{)/dgv,end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.block.hx",patterns:[{include:"#method"},{include:"#modifiers"},{include:"#variable"},{include:"#block"},{include:"#block-contents"}]},"class-name":{begin:/\b(class)\b/dgv,beginCaptures:{"1":{name:"storage.type.class.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"entity.name.type.class.hx"}},name:"meta.class.identifier.hx",patterns:[{include:"#global"}]},"class-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/([\;\{])/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},patterns:[{include:"#modifiers-inheritance"},{include:"#type"}]},comments:{patterns:[{begin:/\/\*\*(?!\/)/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.hx"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.hx"}},name:"comment.block.documentation.hx",patterns:[{include:"#javadoc-tags"}]},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.hx"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.hx"}},name:"comment.block.hx",patterns:[{include:"#javadoc-tags"}]},{captures:{"1":{name:"punctuation.definition.comment.hx"}},match:/(\/\/)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.double-slash.hx"}]},"conditional-compilation":{patterns:[{captures:{"0":{name:"punctuation.definition.tag"}},match:/((#(if|elseif))[\!\p{space}]+([A-Z_a-z][0-9A-Z_a-z]*(\.[A-Z_a-z][0-9A-Z_a-z]*)*)(?=\p{space}|\/\*|\/\/))/dgv},{begin:/((#(if|elseif))[\!\p{space}]*)(?=\()/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag"}},end:/(?<=[\n\)])/dgv,endCaptures:{"0":{name:"punctuation.definition.tag"}},name:"punctuation.definition.tag",patterns:[{include:"#conditional-compilation-parens"}]},{match:/(#(end|else|error|line))/dgv,name:"punctuation.definition.tag"},{match:/(#([0-9A-Z_a-z]*))\p{space}/dgv,name:"punctuation.definition.tag"}]},"conditional-compilation-parens":{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"#conditional-compilation-parens"}]},"constant-name":{match:/\b([A-Z_][0-9A-Z_]*)\b/dgv,name:"variable.other.hx"},constants:{patterns:[{match:/\b(true|false|null)\b/dgv,name:"constant.language.hx"},{captures:{"0":{name:"constant.numeric.hex.hx"},"1":{name:"constant.numeric.suffix.hx"}},match:/\b0[Xx]\p{AHex}[_\p{AHex}]*([iu][0-9][0-9_]*)?\b/dgv},{captures:{"0":{name:"constant.numeric.bin.hx"},"1":{name:"constant.numeric.suffix.hx"}},match:/\b0[Bb][01][01_]*([iu][0-9][0-9_]*)?\b/dgv},{captures:{"0":{name:"constant.numeric.decimal.hx"},"1":{name:"meta.delimiter.decimal.period.hx"},"2":{name:"constant.numeric.suffix.hx"},"3":{name:"meta.delimiter.decimal.period.hx"},"4":{name:"constant.numeric.suffix.hx"},"5":{name:"meta.delimiter.decimal.period.hx"},"6":{name:"constant.numeric.suffix.hx"},"7":{name:"constant.numeric.suffix.hx"},"8":{name:"meta.delimiter.decimal.period.hx"},"9":{name:"constant.numeric.suffix.hx"},"10":{name:"meta.delimiter.decimal.period.hx"},"11":{name:"constant.numeric.suffix.hx"},"12":{name:"meta.delimiter.decimal.period.hx"},"13":{name:"constant.numeric.suffix.hx"},"14":{name:"constant.numeric.suffix.hx"}},match:/(?<!\$)(?:\b[0-9][0-9_]*(\.)[0-9_]+[Ee][\-\+]?[0-9_]+([fiu][0-9][0-9_]*)?\b|\b[0-9][0-9_]*(\.)[Ee][\-\+]?[0-9_]+([fiu][0-9][0-9_]*)?\b|\B(\.)[0-9][0-9_]*[Ee][\-\+]?[0-9_]+([fiu][0-9][0-9_]*)?\b|\b[0-9][0-9_]*[Ee][\-\+]?[0-9][0-9_]*([fiu][0-9][0-9_]*)?\b|\b[0-9][0-9_]*(\.)[0-9_]+([fiu][0-9][0-9_]*)?\b|\b[0-9][0-9_]*(\.)(?!\.)(?:\B|([fiu][0-9][0-9_]*)\b)|\B(\.)[0-9][0-9_]*([fiu][0-9][0-9_]*)?\b|\b[0-9][0-9_]*([fiu][0-9][0-9_]*)?\b)(?!\$)/dgv}]},enum:{begin:/(?=enum\p{space}+[A-Z])/dgv,end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},name:"meta.enum.hx",patterns:[{include:"#enum-name"},{include:"#enum-name-post"},{include:"#enum-block"}]},"enum-block":{begin:/(?<=\{)/dgv,end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.block.hx",patterns:[{include:"#global"},{include:"#metadata"},{include:"#parameters"},{include:"#identifiers"}]},"enum-constructor-call":{begin:/\b(?<!\.)((_*[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*)(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)(?:(\.)(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*[a-z][\p{L}\p{M}\p{N}\p{Pc}]*))*\p{space}*(\()/dgv,beginCaptures:{"1":{name:"support.package.hx"},"3":{name:"entity.name.type.hx"},"4":{name:"support.package.hx"},"5":{name:"entity.name.type.hx"},"6":{name:"meta.brace.round.hx"}},end:/(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.hx"}},patterns:[{include:"#block"},{include:"#block-contents"}]},"enum-name":{begin:/\b(enum)\b/dgv,beginCaptures:{"1":{name:"storage.type.class.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"entity.name.type.class.hx"}},patterns:[{include:"#global"}]},"enum-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/([\;\{])/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},patterns:[{include:"#type"}]},"for-loop":{begin:/\b(for)\b\p{space}*(\()/dgv,beginCaptures:{"1":{name:"keyword.control.flow-control.hx"},"2":{name:"meta.brace.round.hx"}},end:/(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.hx"}},patterns:[{match:/\b(in)\b/dgv,name:"keyword.other.in.hx"},{include:"#block"},{include:"#block-contents"}]},"function-type":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.hx"}},patterns:[{include:"#function-type-parameter"}]},"function-type-parameter":{begin:/(?<=[\(\,])/dgv,end:/(?=[\)\,])/dgv,patterns:[{include:"#global"},{include:"#metadata"},{include:"#operator-optional"},{include:"#punctuation-comma"},{include:"#function-type-parameter-name"},{include:"#function-type-parameter-type-hint"},{include:"#parameter-assign"},{include:"#type"},{include:"#global"}]},"function-type-parameter-name":{captures:{"1":{name:"variable.parameter.hx"}},match:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)(?=\p{space}*:)/dgv},"function-type-parameter-type-hint":{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.annotation.hx"}},end:/(?=[\)\,\=])/dgv,patterns:[{include:"#type"}]},global:{patterns:[{include:"#comments"},{include:"#conditional-compilation"}]},"identifier-name":{match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"variable.other.hx"},identifiers:{patterns:[{include:"#constant-name"},{include:"#type-name"},{include:"#identifier-name"}]},import:{begin:/import\b/dgv,beginCaptures:{"0":{name:"keyword.control.import.hx"}},end:/(?=\n?$)|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},patterns:[{include:"#type-path"},{match:/\b(as)\b/dgv,name:"keyword.control.as.hx"},{match:/\b(in)\b/dgv,name:"keyword.control.in.hx"},{match:/\*/dgv,name:"constant.language.import-all.hx"},{match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b(?=\p{space}*(as|in|(?=\n?$)|(;)))/dgv,name:"variable.other.hxt"},{include:"#type-path-package-name"}]},interface:{begin:/(?=interface)/dgv,end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},name:"meta.interface.hx",patterns:[{include:"#interface-name"},{include:"#interface-name-post"},{include:"#interface-block"}]},"interface-block":{begin:/(?<=\{)/dgv,end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.block.hx",patterns:[{include:"#method"},{include:"#variable"},{include:"#block"},{include:"#block-contents"}]},"interface-name":{begin:/\b(interface)\b/dgv,beginCaptures:{"1":{name:"storage.type.class.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"entity.name.type.class.hx"}},patterns:[{include:"#global"}]},"interface-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/([\;\{])/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},patterns:[{include:"#global"},{include:"#modifiers-inheritance"},{include:"#type"}]},"javadoc-tags":{patterns:[{captures:{"1":{name:"storage.type.class.javadoc"},"2":{name:"variable.other.javadoc"}},match:/(@(?:param|exception|throws|event))\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}+/dgv},{captures:{"1":{name:"storage.type.class.javadoc"},"2":{name:"constant.numeric.javadoc"}},match:/(@since)\p{space}+([\-\.\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+/dgv},{captures:{"0":{name:"storage.type.class.javadoc"}},match:/@(param|exception|throws|deprecated|returns?|since|default|see|event)/dgv}]},keywords:{patterns:[{begin:/(?<=trace|(?=\n?$)type|if|while|for|super)\p{space}*(\()/dgv,beginCaptures:{"2":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{include:"#block-contents"}]},{begin:/(?<=catch)\p{space}*(\()/dgv,beginCaptures:{"2":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{include:"#block-contents"},{include:"#type-check"}]},{begin:/(?<=cast)\p{space}*(\()/dgv,beginCaptures:{"2":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{begin:/(?=,)/dgv,end:/(?=\))/dgv,patterns:[{include:"#type"}]},{include:"#block-contents"}]},{match:/\b(try|catch|throw)\b/dgv,name:"keyword.control.catch-exception.hx"},{begin:/\b(case|default)\b/dgv,beginCaptures:{"1":{name:"keyword.control.flow-control.hx"}},end:/:|(?=if)|(?=\n?$)/dgv,patterns:[{include:"#global"},{include:"#metadata"},{captures:{"1":{name:"storage.type.variable.hx"},"2":{name:"variable.other.hx"}},match:/\b(var|final)\b\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv},{include:"#array"},{include:"#constants"},{include:"#strings"},{match:/\(/dgv,name:"meta.brace.round.hx"},{match:/\)/dgv,name:"meta.brace.round.hx"},{include:"#macro-reification"},{match:/=>/dgv,name:"keyword.operator.extractor.hx"},{include:"#operator-assignment"},{include:"#punctuation-comma"},{include:"#keywords"},{include:"#method-call"},{include:"#identifiers"}]},{match:/\b(if|else|return|do|while|for|break|continue|switch|case|default)\b/dgv,name:"keyword.control.flow-control.hx"},{match:/\b(cast|untyped)\b/dgv,name:"keyword.other.untyped.hx"},{match:/\btrace\b/dgv,name:"keyword.other.trace.hx"},{match:/\$type\b/dgv,name:"keyword.other.type.hx"},{match:/__(global|this)__\b/dgv,name:"keyword.other.untyped-property.hx"},{match:/\b(this|super)\b/dgv,name:"variable.language.hx"},{match:/\bnew\b/dgv,name:"keyword.operator.new.hx"},{match:/\b(abstract|class|enum|interface|typedef)\b/dgv,name:"storage.type.hx"},{match:/->/dgv,name:"storage.type.function.arrow.hx"},{include:"#modifiers"},{include:"#modifiers-inheritance"}]},"keywords-accessor":{match:/\b(default|get|set|dynamic|never|null)\b/dgv,name:"storage.type.property.hx"},"macro-reification":{patterns:[{captures:{"1":{name:"punctuation.definition.reification.hx"},"2":{name:"keyword.reification.hx"}},match:/(\$)([abeipv])\{/dgv},{captures:{"2":{name:"punctuation.definition.reification.hx"},"3":{name:"variable.reification.hx"}},match:/((\$)([A-Za-z]*))/dgv}]},metadata:{patterns:[{begin:/(@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs[^\n]assemblyMeta|cs[^\n]assemblyStrict|cs[^\n]using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash[^\n]property|font|forward[^\n]new|forward[^\n]variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java[^\n]native|javaCanonical|jsRequire|jvm[^\n]synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile))\b\p{space}*(\()/dgv,beginCaptures:{"1":{name:"punctuation.metadata.hx"},"2":{name:"storage.modifier.metadata.hx"},"3":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{include:"#block-contents"}]},{captures:{"2":{name:"punctuation.metadata.hx"},"3":{name:"storage.modifier.metadata.hx"}},match:/((@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs[^\n]assemblyMeta|cs[^\n]assemblyStrict|cs[^\n]using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash[^\n]property|font|forward[^\n]new|forward[^\n]variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java[^\n]native|javaCanonical|jsRequire|jvm[^\n]synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile)))\b/dgv},{begin:/(@)(:?[A-Z_a-z]*)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"punctuation.metadata.hx"},"2":{name:"variable.metadata.hx"},"3":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{include:"#block-contents"}]},{captures:{"1":{name:"punctuation.metadata.hx"},"2":{name:"variable.metadata.hx"},"3":{name:"variable.metadata.hx"},"4":{name:"punctuation.accessor.hx"},"5":{name:"variable.metadata.hx"}},match:/(@)(:?)([A-Z_a-z]*(\.))*([A-Z_a-z]*)?/dgv}]},method:{begin:/(?=\bfunction\b)/dgv,end:/(?<=[\;\}])/dgv,name:"meta.method.hx",patterns:[{include:"#macro-reification"},{include:"#method-name"},{include:"#method-name-post"},{include:"#method-block"}]},"method-block":{begin:/(?<=\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.method.block.hx",patterns:[{include:"#block"},{include:"#block-contents"}]},"method-call":{begin:/\b(?:(__(?:addressOf|as|call|checked|cpp|cs|define_feature|delete|feature|field|fixed|foreach|forin|has_next|hkeys|in|int|is|java|js|keys|lock|lua|lua_table|new|php|physeq|prefix|ptr|resources|rethrow|set|setfield|sizeof|type|typeof|unprotect|unsafe|valueOf|var|vector|vmem_get|vmem_set|vmem_sign|instanceof|strict_eq|strict_neq)__)|([_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))\p{space}*(\()/dgv,beginCaptures:{"1":{name:"keyword.other.untyped-function.hx"},"2":{name:"entity.name.function.hx"},"3":{name:"meta.brace.round.hx"}},end:/(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.hx"}},patterns:[{include:"#block"},{include:"#block-contents"}]},"method-name":{begin:/\b(function)\b\p{space}*\b(?:(new)|([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))?\b/dgv,beginCaptures:{"1":{name:"storage.type.function.hx"},"2":{name:"storage.type.hx"},"3":{name:"entity.name.function.hx"}},end:/(?=(?=\n?$)|\()/dgv,patterns:[{include:"#macro-reification"},{include:"#type-parameters"}]},"method-name-post":{begin:/(?<=[\>\p{L}\p{M}\p{N}\p{Pc}\p{space}])/dgv,end:/(\{)|(;)/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"},"2":{name:"punctuation.terminator.hx"}},patterns:[{include:"#parameters"},{include:"#method-return-type-hint"},{include:"#block"},{include:"#block-contents"}]},"method-return-type-hint":{begin:/(?<=\))\p{space}*(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.annotation.hx"}},end:/(?=[0-9\;a-\{])/dgv,patterns:[{include:"#type"}]},modifiers:{patterns:[{match:/\b(enum)\b/dgv,name:"storage.type.class"},{match:/\b(public|private|static|dynamic|inline|macro|extern|override|overload|abstract)\b/dgv,name:"storage.modifier.hx"},{match:/\b(final)\b(?=\p{space}+(public|private|static|dynamic|inline|macro|extern|override|overload|abstract|function))/dgv,name:"storage.modifier.hx"}]},"modifiers-inheritance":{match:/\b(implements|extends)\b/dgv,name:"storage.modifier.hx"},"new-expr":{begin:/(?<!\.)\b(new)\b/dgv,beginCaptures:{"1":{name:"keyword.operator.new.hx"}},end:/(?=(?=\n?$)|\()/dgv,name:"new.expr.hx",patterns:[{include:"#type"}]},"operator-assignment":{match:/(=)/dgv,name:"keyword.operator.assignment.hx"},"operator-optional":{match:/(\?)(?!\p{space})/dgv,name:"keyword.operator.optional.hx"},"operator-rest":{match:/\.\.\./dgv,name:"keyword.operator.rest.hx"},"operator-type-hint":{match:/(:)/dgv,name:"keyword.operator.type.annotation.hx"},operators:{patterns:[{match:/(&&|\|\|)/dgv,name:"keyword.operator.logical.hx"},{match:/([\&\^\|\~]|>>>|<<|>>)/dgv,name:"keyword.operator.bitwise.hx"},{match:/(==|!=|<=|>=|[\<\>])/dgv,name:"keyword.operator.comparison.hx"},{match:/(!)/dgv,name:"keyword.operator.logical.hx"},{match:/(--|\+\+)/dgv,name:"keyword.operator.increment-decrement.hx"},{match:/([\-\%\*\+\/])/dgv,name:"keyword.operator.arithmetic.hx"},{match:/\.\.\./dgv,name:"keyword.operator.intiterator.hx"},{match:/=>/dgv,name:"keyword.operator.arrow.hx"},{match:/\?\?/dgv,name:"keyword.operator.nullcoalescing.hx"},{match:/\?\./dgv,name:"keyword.operator.safenavigation.hx"},{match:/\bis\b(?!\()/dgv,name:"keyword.other.hx"},{begin:/\?/dgv,beginCaptures:{"0":{name:"keyword.operator.ternary.hx"}},end:/:/dgv,endCaptures:{"0":{name:"keyword.operator.ternary.hx"}},patterns:[{include:"#block"},{include:"#block-contents"}]}]},package:{begin:/package\b/dgv,beginCaptures:{"0":{name:"keyword.other.package.hx"}},end:/(?=\n?$)|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},patterns:[{include:"#type-path"},{include:"#type-path-package-name"}]},parameter:{begin:/(?<=[\(\,])/dgv,end:/(?=\)(?!\p{space}*->)|,)/dgv,patterns:[{include:"#parameter-name"},{include:"#parameter-type-hint"},{include:"#parameter-assign"},{include:"#global"}]},"parameter-assign":{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.hx"}},end:/(?=[\)\,])/dgv,patterns:[{include:"#block"},{include:"#block-contents"}]},"parameter-name":{patterns:[{captures:{"1":{name:"variable.parameter.hx"}},match:/\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{include:"#global"},{include:"#metadata"},{include:"#operator-optional"},{include:"#operator-rest"}]},"parameter-type-hint":{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.annotation.hx"}},end:/(?=\)(?!\p{space}*->)|[\,\=])/dgv,patterns:[{include:"#type"}]},parameters:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.hx"}},end:/\p{space}*(\)(?!\p{space}*->))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.hx"}},name:"meta.parameters.hx",patterns:[{include:"#parameter"},{include:"#punctuation-comma"}]},"punctuation-accessor":{match:/\./dgv,name:"punctuation.accessor.hx"},"punctuation-braces":{begin:/\(/dgv,beginCaptures:{"0":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{include:"#keywords"},{include:"#block"},{include:"#block-contents"},{include:"#type-check"}]},"punctuation-comma":{match:/,/dgv,name:"punctuation.separator.comma.hx"},"punctuation-terminator":{match:/;/dgv,name:"punctuation.terminator.hx"},regex:{begin:/(~\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.hx"}},end:/(\/)([gimsu]*)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.hx"},"2":{name:"keyword.other.hx"}},name:"string.regexp.hx",patterns:[{include:"#regexp"}]},"regex-character-class":{patterns:[{match:/\\[DSWdfnrstvw]|\./dgv,name:"constant.other.character-class.regexp"},{match:/\\([0-7]{3}|x\p{AHex}\p{AHex}|u\p{AHex}\p{AHex}\p{AHex}\p{AHex})/dgv,name:"constant.character.numeric.regexp"},{match:/\\c[A-Z]/dgv,name:"constant.character.control.regexp"},{match:/\\[^\n]/dgv,name:"constant.character.escape.backslash.regexp"}]},regexp:{patterns:[{match:/\\[Bb]|[\$\^]/dgv,name:"keyword.control.anchor.regexp"},{match:/\\[1-9]\p{Nd}*/dgv,name:"keyword.other.back-reference.regexp"},{match:/[\*\+\?]|\{(\p{Nd}+,\p{Nd}+|\p{Nd}+,|,\p{Nd}+|\p{Nd}+)\}\??/dgv,name:"keyword.operator.quantifier.regexp"},{match:/\|/dgv,name:"keyword.operator.or.regexp"},{begin:/(\()((\?=)|(\?!))/dgv,beginCaptures:{"1":{name:"punctuation.definition.group.regexp"},"2":{name:"punctuation.definition.group.assertion.regexp"},"3":{name:"meta.assertion.look-ahead.regexp"},"4":{name:"meta.assertion.negative-look-ahead.regexp"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.group.regexp"}},name:"meta.group.assertion.regexp",patterns:[{include:"#regexp"}]},{begin:/\((\?:)?/dgv,beginCaptures:{"0":{name:"punctuation.definition.group.regexp"},"1":{name:"punctuation.definition.group.capture.regexp"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.group.regexp"}},name:"meta.group.regexp",patterns:[{include:"#regexp"}]},{begin:/(\[)(\^)?/dgv,beginCaptures:{"1":{name:"punctuation.definition.character-class.regexp"},"2":{name:"keyword.operator.negation.regexp"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.character-class.regexp"}},name:"constant.other.character-class.set.regexp",patterns:[{captures:{"1":{name:"constant.character.numeric.regexp"},"2":{name:"constant.character.control.regexp"},"3":{name:"constant.character.escape.backslash.regexp"},"4":{name:"constant.character.numeric.regexp"},"5":{name:"constant.character.control.regexp"},"6":{name:"constant.character.escape.backslash.regexp"}},match:/(?:[^\n]|(\\(?:[0-7]{3}|x\p{AHex}\p{AHex}|u\p{AHex}\p{AHex}\p{AHex}\p{AHex}))|(\\c[A-Z])|(\\[^\n]))-(?:[^\]\\]|(\\(?:[0-7]{3}|x\p{AHex}\p{AHex}|u\p{AHex}\p{AHex}\p{AHex}\p{AHex}))|(\\c[A-Z])|(\\[^\n]))/dgv,name:"constant.other.character-class.range.regexp"},{include:"#regex-character-class"}]},{include:"#regex-character-class"}]},"string-escape-sequences":{patterns:[{match:/\\[0-3][0-9]{2}/dgv,name:"constant.character.escape.hx"},{match:/\\x\p{AHex}{2}/dgv,name:"constant.character.escape.hx"},{match:/\\u[0-9]{4}/dgv,name:"constant.character.escape.hx"},{match:/\\u\{\p{AHex}+\}/dgv,name:"constant.character.escape.hx"},{match:/\\["'\\nrt]/dgv,name:"constant.character.escape.hx"},{match:/\\[^\n]/dgv,name:"invalid.escape.sequence.hx"}]},strings:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.hx"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.hx"}},name:"string.quoted.double.hx",patterns:[{include:"#string-escape-sequences"}]},{begin:/(')/dgv,beginCaptures:{"0":{name:"string.quoted.single.hx"},"1":{name:"punctuation.definition.string.begin.hx"}},end:/(')/dgv,endCaptures:{"0":{name:"string.quoted.single.hx"},"1":{name:"punctuation.definition.string.end.hx"}},patterns:[{begin:/\$(?=\$)/dgv,beginCaptures:{"0":{name:"constant.character.escape.hx"}},end:/\$/dgv,endCaptures:{"0":{name:"constant.character.escape.hx"}},name:"string.quoted.single.hx"},{include:"#string-escape-sequences"},{begin:/(\$\{)/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.begin.hx"}},end:/(\})/dgv,endCaptures:{"0":{name:"punctuation.definition.block.end.hx"}},patterns:[{include:"#block-contents"}]},{captures:{"1":{name:"punctuation.definition.block.begin.hx"},"2":{name:"variable.other.hx"}},match:/(\$)([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{match:"",name:"constant.character.escape.hx"},{match:/[^\n]/dgv,name:"string.quoted.single.hx"}]}]},type:{patterns:[{include:"#global"},{include:"#macro-reification"},{include:"#type-name"},{include:"#type-parameters"},{match:/->/dgv,name:"keyword.operator.type.function.hx"},{match:/&/dgv,name:"keyword.operator.type.intersection.hx"},{match:/\?(?=\p{space}*[A-Z_])/dgv,name:"keyword.operator.optional"},{match:/\?(?!\p{space}*[A-Z_])/dgv,name:"punctuation.definition.tag"},{begin:/(\{)/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.begin.hx"}},end:/(?<=\})/dgv,patterns:[{include:"#typedef-block"}]},{include:"#function-type"}]},"type-check":{begin:/(?<!macro)(?=:)/dgv,end:/(?=\))/dgv,patterns:[{include:"#operator-type-hint"},{include:"#type"}]},"type-name":{patterns:[{captures:{"1":{name:"support.class.builtin.hx"},"2":{name:"support.package.hx"},"3":{name:"entity.name.type.hx"}},match:/\b(Any|Array|ArrayAccess|Bool|Class|Date|DateTools|Dynamic|Enum|EnumValue|EReg|Float|IMap|Int|IntIterator|Iterable|Iterator|KeyValueIterator|KeyValueIterable|Lambda|List|ListIterator|ListNode|Map|Math|Null|Reflect|Single|Std|String|StringBuf|StringTools|Sys|Type|UInt|UnicodeString|ValueType|Void|Xml|XmlType)(?:(\.)(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*[a-z][\p{L}\p{M}\p{N}\p{Pc}]*))*\b/dgv},{captures:{"1":{name:"support.package.hx"},"3":{name:"entity.name.type.hx"},"4":{name:"support.package.hx"},"5":{name:"entity.name.type.hx"}},match:/\b(?<![^\.]\.)((_*[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*)(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)(?:(\.)(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*[a-z][\p{L}\p{M}\p{N}\p{Pc}]*))*\b/dgv}]},"type-parameter-constraint-new":{match:/:/dgv,name:"keyword.operator.type.annotation.hxt"},"type-parameter-constraint-old":{begin:/(:)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"keyword.operator.type.annotation.hx"},"2":{name:"punctuation.definition.constraint.begin.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.constraint.end.hx"}},patterns:[{include:"#type"},{include:"#punctuation-comma"}]},"type-parameters":{begin:/(<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.typeparameters.begin.hx"}},end:/(?=(?=\n?$))|(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.typeparameters.end.hx"}},name:"meta.type-parameters.hx",patterns:[{include:"#type"},{include:"#type-parameter-constraint-old"},{include:"#type-parameter-constraint-new"},{include:"#global"},{include:"#regex"},{include:"#array"},{include:"#constants"},{include:"#strings"},{include:"#metadata"},{include:"#punctuation-comma"}]},"type-path":{patterns:[{include:"#global"},{include:"#punctuation-accessor"},{include:"#type-path-type-name"}]},"type-path-package-name":{match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"support.package.hx"},"type-path-type-name":{match:/\b(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"entity.name.type.hx"},typedef:{begin:/(?=typedef)/dgv,end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},name:"meta.typedef.hx",patterns:[{include:"#typedef-name"},{include:"#typedef-name-post"},{include:"#typedef-block"}]},"typedef-block":{begin:/(?<=\{)/dgv,end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.block.hx",patterns:[{include:"#global"},{include:"#metadata"},{include:"#method"},{include:"#variable"},{include:"#modifiers"},{include:"#punctuation-comma"},{include:"#operator-optional"},{include:"#typedef-extension"},{include:"#typedef-simple-field-type-hint"},{include:"#identifier-name"},{include:"#strings"}]},"typedef-extension":{begin:/>/dgv,end:/,|(?=\n?$)/dgv,patterns:[{include:"#type"}]},"typedef-name":{begin:/\b(typedef)\b/dgv,beginCaptures:{"1":{name:"storage.type.class.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"entity.name.type.class.hx"}},patterns:[{include:"#global"}]},"typedef-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/(\{)|(?=;)/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},patterns:[{include:"#global"},{include:"#punctuation-brackets"},{include:"#punctuation-separator"},{include:"#operator-assignment"},{include:"#type"}]},"typedef-simple-field-type-hint":{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.annotation.hx"}},end:/(?=[\,\;\}])/dgv,patterns:[{include:"#type"}]},using:{begin:/using\b/dgv,beginCaptures:{"0":{name:"keyword.other.using.hx"}},end:/(?=\n?$)|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},patterns:[{include:"#type-path"},{include:"#type-path-package-name"}]},variable:{begin:/(?=\b(var|final)\b)/dgv,end:/(?=(?=\n?$))|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},patterns:[{include:"#variable-name"},{include:"#variable-name-next"},{include:"#variable-assign"},{include:"#variable-name-post"}]},"variable-accessors":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.hx"}},name:"meta.parameters.hx",patterns:[{include:"#global"},{include:"#keywords-accessor"},{include:"#accessor-method"},{include:"#punctuation-comma"}]},"variable-assign":{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.hx"}},end:/(?=[\,\;])/dgv,patterns:[{include:"#block"},{include:"#block-contents"}]},"variable-name":{begin:/\b(var|final)\b/dgv,beginCaptures:{"1":{name:"storage.type.variable.hx"}},end:/(?=(?=\n?$))|([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"variable.other.hx"}},patterns:[{include:"#operator-optional"}]},"variable-name-next":{begin:/,/dgv,beginCaptures:{"0":{name:"punctuation.separator.comma.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"variable.other.hx"}},patterns:[{include:"#global"}]},"variable-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/(?=;)|(?==)/dgv,patterns:[{include:"#variable-accessors"},{include:"#variable-type-hint"},{include:"#block-contents"}]},"variable-type-hint":{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.annotation.hx"}},end:/(?=(?=\n?$)|[\,\;\=])/dgv,patterns:[{include:"#type"}]}},scopeName:"source.hx",embeddedLangs:undefined,aliases:undefined})
1
+ const lang = Object.freeze({displayName:"Haxe",fileTypes:["hx","dump"],name:"haxe",patterns:[{include:"#all"}],repository:{abstract:{begin:/(?=abstract\p{space}+[A-Z])/dgv,end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},name:"meta.abstract.hx",patterns:[{include:"#abstract-name"},{include:"#abstract-name-post"},{include:"#abstract-block"}]},"abstract-block":{begin:/(?<=\{)/dgv,end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.block.hx",patterns:[{include:"#method"},{include:"#modifiers"},{include:"#variable"},{include:"#block"},{include:"#block-contents"}]},"abstract-name":{begin:/\b(abstract)\b/dgv,beginCaptures:{"1":{name:"storage.type.class.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"entity.name.type.class.hx"}},patterns:[{include:"#global"}]},"abstract-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/([\;\{])/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},patterns:[{include:"#global"},{match:/\b(from|to)\b/dgv,name:"keyword.other.hx"},{include:"#type"},{match:/[\(\)]/dgv,name:"punctuation.definition.other.hx"}]},"accessor-method":{patterns:[{match:/\b([gs]et)_[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.name.function.hx"}]},all:{patterns:[{include:"#global"},{include:"#package"},{include:"#import"},{include:"#using"},{match:/\b(final)\b(?=\p{space}+(class|interface|extern|private)\b)/dgv,name:"storage.modifier.hx"},{include:"#abstract"},{include:"#class"},{include:"#enum"},{include:"#interface"},{include:"#typedef"},{include:"#block"},{include:"#block-contents"}]},array:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.array.begin.hx"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.array.end.hx"}},name:"meta.array.literal.hx",patterns:[{include:"#block"},{include:"#block-contents"}]},"arrow-function":{begin:/(\()(?=[^\(]*?\)\p{space}*->)/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.hx"}},end:/(\))\p{space}*(->)/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.hx"},"2":{name:"storage.type.function.arrow.hx"}},name:"meta.method.arrow.hx",patterns:[{include:"#arrow-function-parameter"}]},"arrow-function-parameter":{begin:/(?<=[\(\,])/dgv,end:/(?=[\)\,])/dgv,patterns:[{include:"#parameter-name"},{include:"#arrow-function-parameter-type-hint"},{include:"#parameter-assign"},{include:"#punctuation-comma"},{include:"#global"}]},"arrow-function-parameter-type-hint":{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.annotation.hx"}},end:/(?=[\)\,\=])/dgv,patterns:[{include:"#type"}]},block:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.begin.hx"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.block.end.hx"}},patterns:[{include:"#block"},{include:"#block-contents"}]},"block-contents":{patterns:[{include:"#global"},{include:"#regex"},{include:"#array"},{include:"#constants"},{include:"#strings"},{include:"#metadata"},{include:"#method"},{include:"#variable"},{include:"#modifiers"},{include:"#new-expr"},{include:"#for-loop"},{include:"#keywords"},{include:"#arrow-function"},{include:"#method-call"},{include:"#enum-constructor-call"},{include:"#punctuation-braces"},{include:"#macro-reification"},{include:"#operators"},{include:"#operator-assignment"},{include:"#punctuation-terminator"},{include:"#punctuation-comma"},{include:"#punctuation-accessor"},{include:"#identifiers"}]},class:{begin:/(?=class)/dgv,end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},name:"meta.class.hx",patterns:[{include:"#class-name"},{include:"#class-name-post"},{include:"#class-block"}]},"class-block":{begin:/(?<=\{)/dgv,end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.block.hx",patterns:[{include:"#method"},{include:"#modifiers"},{include:"#variable"},{include:"#block"},{include:"#block-contents"}]},"class-name":{begin:/\b(class)\b/dgv,beginCaptures:{"1":{name:"storage.type.class.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"entity.name.type.class.hx"}},name:"meta.class.identifier.hx",patterns:[{include:"#global"}]},"class-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/([\;\{])/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},patterns:[{include:"#modifiers-inheritance"},{include:"#type"}]},comments:{patterns:[{begin:/\/\*\*(?!\/)/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.hx"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.hx"}},name:"comment.block.documentation.hx",patterns:[{include:"#javadoc-tags"}]},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.hx"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.hx"}},name:"comment.block.hx",patterns:[{include:"#javadoc-tags"}]},{captures:{"1":{name:"punctuation.definition.comment.hx"}},match:/(\/\/)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.double-slash.hx"}]},"conditional-compilation":{patterns:[{captures:{"0":{name:"punctuation.definition.tag"}},match:/((#(if|elseif))[\!\p{space}]+([A-Z_a-z][0-9A-Z_a-z]*(\.[A-Z_a-z][0-9A-Z_a-z]*)*)(?=\p{space}|\/\*|\/\/))/dgv},{begin:/((#(if|elseif))[\!\p{space}]*)(?=\()/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag"}},end:/(?<=[\n\)])/dgv,endCaptures:{"0":{name:"punctuation.definition.tag"}},name:"punctuation.definition.tag",patterns:[{include:"#conditional-compilation-parens"}]},{match:/(#(end|else|error|line))/dgv,name:"punctuation.definition.tag"},{match:/(#([0-9A-Z_a-z]*))\p{space}/dgv,name:"punctuation.definition.tag"}]},"conditional-compilation-parens":{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"#conditional-compilation-parens"}]},"constant-name":{match:/\b([A-Z_][0-9A-Z_]*)\b/dgv,name:"variable.other.hx"},constants:{patterns:[{match:/\b(true|false|null)\b/dgv,name:"constant.language.hx"},{captures:{"0":{name:"constant.numeric.hex.hx"},"1":{name:"constant.numeric.suffix.hx"}},match:/\b0[Xx]\p{AHex}[_\p{AHex}]*([iu][0-9][0-9_]*)?\b/dgv},{captures:{"0":{name:"constant.numeric.bin.hx"},"1":{name:"constant.numeric.suffix.hx"}},match:/\b0[Bb][01][01_]*([iu][0-9][0-9_]*)?\b/dgv},{captures:{"0":{name:"constant.numeric.decimal.hx"},"1":{name:"meta.delimiter.decimal.period.hx"},"2":{name:"constant.numeric.suffix.hx"},"3":{name:"meta.delimiter.decimal.period.hx"},"4":{name:"constant.numeric.suffix.hx"},"5":{name:"meta.delimiter.decimal.period.hx"},"6":{name:"constant.numeric.suffix.hx"},"7":{name:"constant.numeric.suffix.hx"},"8":{name:"meta.delimiter.decimal.period.hx"},"9":{name:"constant.numeric.suffix.hx"},"10":{name:"meta.delimiter.decimal.period.hx"},"11":{name:"constant.numeric.suffix.hx"},"12":{name:"meta.delimiter.decimal.period.hx"},"13":{name:"constant.numeric.suffix.hx"},"14":{name:"constant.numeric.suffix.hx"}},match:/(?<!\$)(?:\b[0-9][0-9_]*(\.)[0-9_]+[Ee][\-\+]?[0-9_]+([fiu][0-9][0-9_]*)?\b|\b[0-9][0-9_]*(\.)[Ee][\-\+]?[0-9_]+([fiu][0-9][0-9_]*)?\b|\B(\.)[0-9][0-9_]*[Ee][\-\+]?[0-9_]+([fiu][0-9][0-9_]*)?\b|\b[0-9][0-9_]*[Ee][\-\+]?[0-9][0-9_]*([fiu][0-9][0-9_]*)?\b|\b[0-9][0-9_]*(\.)[0-9_]+([fiu][0-9][0-9_]*)?\b|\b[0-9][0-9_]*(\.)(?!\.)(?:\B|([fiu][0-9][0-9_]*)\b)|\B(\.)[0-9][0-9_]*([fiu][0-9][0-9_]*)?\b|\b[0-9][0-9_]*([fiu][0-9][0-9_]*)?\b)(?!\$)/dgv}]},enum:{begin:/(?=enum\p{space}+[A-Z])/dgv,end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},name:"meta.enum.hx",patterns:[{include:"#enum-name"},{include:"#enum-name-post"},{include:"#enum-block"}]},"enum-block":{begin:/(?<=\{)/dgv,end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.block.hx",patterns:[{include:"#global"},{include:"#metadata"},{include:"#parameters"},{include:"#identifiers"}]},"enum-constructor-call":{begin:/\b(?<!\.)((_*[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*)(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)(?:(\.)(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*[a-z][\p{L}\p{M}\p{N}\p{Pc}]*))*\p{space}*(\()/dgv,beginCaptures:{"1":{name:"support.package.hx"},"3":{name:"entity.name.type.hx"},"4":{name:"support.package.hx"},"5":{name:"entity.name.type.hx"},"6":{name:"meta.brace.round.hx"}},end:/(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.hx"}},patterns:[{include:"#block"},{include:"#block-contents"}]},"enum-name":{begin:/\b(enum)\b/dgv,beginCaptures:{"1":{name:"storage.type.class.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"entity.name.type.class.hx"}},patterns:[{include:"#global"}]},"enum-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/([\;\{])/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},patterns:[{include:"#type"}]},"for-loop":{begin:/\b(for)\b\p{space}*(\()/dgv,beginCaptures:{"1":{name:"keyword.control.flow-control.hx"},"2":{name:"meta.brace.round.hx"}},end:/(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.hx"}},patterns:[{match:/\b(in)\b/dgv,name:"keyword.other.in.hx"},{include:"#block"},{include:"#block-contents"}]},"function-type":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.hx"}},patterns:[{include:"#function-type-parameter"}]},"function-type-parameter":{begin:/(?<=[\(\,])/dgv,end:/(?=[\)\,])/dgv,patterns:[{include:"#global"},{include:"#metadata"},{include:"#operator-optional"},{include:"#punctuation-comma"},{include:"#function-type-parameter-name"},{include:"#function-type-parameter-type-hint"},{include:"#parameter-assign"},{include:"#type"},{include:"#global"}]},"function-type-parameter-name":{captures:{"1":{name:"variable.parameter.hx"}},match:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)(?=\p{space}*:)/dgv},"function-type-parameter-type-hint":{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.annotation.hx"}},end:/(?=[\)\,\=])/dgv,patterns:[{include:"#type"}]},global:{patterns:[{include:"#comments"},{include:"#conditional-compilation"}]},"identifier-name":{match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"variable.other.hx"},identifiers:{patterns:[{include:"#constant-name"},{include:"#type-name"},{include:"#identifier-name"}]},import:{begin:/import\b/dgv,beginCaptures:{"0":{name:"keyword.control.import.hx"}},end:/(?=\n?$)|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},patterns:[{include:"#type-path"},{match:/\b(as)\b/dgv,name:"keyword.control.as.hx"},{match:/\b(in)\b/dgv,name:"keyword.control.in.hx"},{match:/\*/dgv,name:"constant.language.import-all.hx"},{match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b(?=\p{space}*(as|in|(?=\n?$)|(;)))/dgv,name:"variable.other.hxt"},{include:"#type-path-package-name"}]},interface:{begin:/(?=interface)/dgv,end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},name:"meta.interface.hx",patterns:[{include:"#interface-name"},{include:"#interface-name-post"},{include:"#interface-block"}]},"interface-block":{begin:/(?<=\{)/dgv,end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.block.hx",patterns:[{include:"#method"},{include:"#variable"},{include:"#block"},{include:"#block-contents"}]},"interface-name":{begin:/\b(interface)\b/dgv,beginCaptures:{"1":{name:"storage.type.class.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"entity.name.type.class.hx"}},patterns:[{include:"#global"}]},"interface-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/([\;\{])/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},patterns:[{include:"#global"},{include:"#modifiers-inheritance"},{include:"#type"}]},"javadoc-tags":{patterns:[{captures:{"1":{name:"storage.type.class.javadoc"},"2":{name:"variable.other.javadoc"}},match:/(@(?:param|exception|throws|event))\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}+/dgv},{captures:{"1":{name:"storage.type.class.javadoc"},"2":{name:"constant.numeric.javadoc"}},match:/(@since)\p{space}+([\-\.\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+/dgv},{captures:{"0":{name:"storage.type.class.javadoc"}},match:/@(param|exception|throws|deprecated|returns?|since|default|see|event)/dgv}]},keywords:{patterns:[{begin:/(?<=trace|(?=\n?$)type|if|while|for|super)\p{space}*(\()/dgv,beginCaptures:{"2":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{include:"#block-contents"}]},{begin:/(?<=catch)\p{space}*(\()/dgv,beginCaptures:{"2":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{include:"#block-contents"},{include:"#type-check"}]},{begin:/(?<=cast)\p{space}*(\()/dgv,beginCaptures:{"2":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{begin:/(?=,)/dgv,end:/(?=\))/dgv,patterns:[{include:"#type"}]},{include:"#block-contents"}]},{match:/\b(try|catch|throw)\b/dgv,name:"keyword.control.catch-exception.hx"},{begin:/\b(case|default)\b/dgv,beginCaptures:{"1":{name:"keyword.control.flow-control.hx"}},end:/:|(?=if)|(?=\n?$)/dgv,patterns:[{include:"#global"},{include:"#metadata"},{captures:{"1":{name:"storage.type.variable.hx"},"2":{name:"variable.other.hx"}},match:/\b(var|final)\b\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv},{include:"#array"},{include:"#constants"},{include:"#strings"},{match:/\(/dgv,name:"meta.brace.round.hx"},{match:/\)/dgv,name:"meta.brace.round.hx"},{include:"#macro-reification"},{match:/=>/dgv,name:"keyword.operator.extractor.hx"},{include:"#operator-assignment"},{include:"#punctuation-comma"},{include:"#keywords"},{include:"#method-call"},{include:"#identifiers"}]},{match:/\b(if|else|return|do|while|for|break|continue|switch|case|default)\b/dgv,name:"keyword.control.flow-control.hx"},{match:/\b(cast|untyped)\b/dgv,name:"keyword.other.untyped.hx"},{match:/\btrace\b/dgv,name:"keyword.other.trace.hx"},{match:/\$type\b/dgv,name:"keyword.other.type.hx"},{match:/__(global|this)__\b/dgv,name:"keyword.other.untyped-property.hx"},{match:/\b(this|super)\b/dgv,name:"variable.language.hx"},{match:/\bnew\b/dgv,name:"keyword.operator.new.hx"},{match:/\b(abstract|class|enum|interface|typedef)\b/dgv,name:"storage.type.hx"},{match:/->/dgv,name:"storage.type.function.arrow.hx"},{include:"#modifiers"},{include:"#modifiers-inheritance"}]},"keywords-accessor":{match:/\b(default|get|set|dynamic|never|null)\b/dgv,name:"storage.type.property.hx"},"macro-reification":{patterns:[{captures:{"1":{name:"punctuation.definition.reification.hx"},"2":{name:"keyword.reification.hx"}},match:/(\$)([abeipv])\{/dgv},{captures:{"2":{name:"punctuation.definition.reification.hx"},"3":{name:"variable.reification.hx"}},match:/((\$)([A-Za-z]*))/dgv}]},metadata:{patterns:[{begin:/(@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs[^\n]assemblyMeta|cs[^\n]assemblyStrict|cs[^\n]using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash[^\n]property|font|forward[^\n]new|forward[^\n]variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java[^\n]native|javaCanonical|jsRequire|jvm[^\n]synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile))\b\p{space}*(\()/dgv,beginCaptures:{"1":{name:"punctuation.metadata.hx"},"2":{name:"storage.modifier.metadata.hx"},"3":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{include:"#block-contents"}]},{captures:{"2":{name:"punctuation.metadata.hx"},"3":{name:"storage.modifier.metadata.hx"}},match:/((@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs[^\n]assemblyMeta|cs[^\n]assemblyStrict|cs[^\n]using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash[^\n]property|font|forward[^\n]new|forward[^\n]variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java[^\n]native|javaCanonical|jsRequire|jvm[^\n]synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile)))\b/dgv},{begin:/(@)(:?[A-Z_a-z]*)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"punctuation.metadata.hx"},"2":{name:"variable.metadata.hx"},"3":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{include:"#block-contents"}]},{captures:{"1":{name:"punctuation.metadata.hx"},"2":{name:"variable.metadata.hx"},"3":{name:"variable.metadata.hx"},"4":{name:"punctuation.accessor.hx"},"5":{name:"variable.metadata.hx"}},match:/(@)(:?)([A-Z_a-z]*(\.))*([A-Z_a-z]*)?/dgv}]},method:{begin:/(?=\bfunction\b)/dgv,end:/(?<=[\;\}])/dgv,name:"meta.method.hx",patterns:[{include:"#macro-reification"},{include:"#method-name"},{include:"#method-name-post"},{include:"#method-block"}]},"method-block":{begin:/(?<=\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.method.block.hx",patterns:[{include:"#block"},{include:"#block-contents"}]},"method-call":{begin:/\b(?:(__(?:addressOf|as|call|checked|cpp|cs|define_feature|delete|feature|field|fixed|foreach|forin|has_next|hkeys|int??|is|java|js|keys|lock|lua|lua_table|new|php|physeq|prefix|ptr|resources|rethrow|set|setfield|sizeof|type|typeof|unprotect|unsafe|valueOf|var|vector|vmem_get|vmem_set|vmem_sign|instanceof|strict_eq|strict_neq)__)|([_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))\p{space}*(\()/dgv,beginCaptures:{"1":{name:"keyword.other.untyped-function.hx"},"2":{name:"entity.name.function.hx"},"3":{name:"meta.brace.round.hx"}},end:/(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.hx"}},patterns:[{include:"#block"},{include:"#block-contents"}]},"method-name":{begin:/\b(function)\b\p{space}*\b(?:(new)|([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))?\b/dgv,beginCaptures:{"1":{name:"storage.type.function.hx"},"2":{name:"storage.type.hx"},"3":{name:"entity.name.function.hx"}},end:/(?=(?=\n?$)|\()/dgv,patterns:[{include:"#macro-reification"},{include:"#type-parameters"}]},"method-name-post":{begin:/(?<=[\>\p{L}\p{M}\p{N}\p{Pc}\p{space}])/dgv,end:/(\{)|(;)/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"},"2":{name:"punctuation.terminator.hx"}},patterns:[{include:"#parameters"},{include:"#method-return-type-hint"},{include:"#block"},{include:"#block-contents"}]},"method-return-type-hint":{begin:/(?<=\))\p{space}*(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.annotation.hx"}},end:/(?=[0-9\;a-\{])/dgv,patterns:[{include:"#type"}]},modifiers:{patterns:[{match:/\b(enum)\b/dgv,name:"storage.type.class"},{match:/\b(public|private|static|dynamic|inline|macro|extern|override|overload|abstract)\b/dgv,name:"storage.modifier.hx"},{match:/\b(final)\b(?=\p{space}+(public|private|static|dynamic|inline|macro|extern|override|overload|abstract|function))/dgv,name:"storage.modifier.hx"}]},"modifiers-inheritance":{match:/\b(implements|extends)\b/dgv,name:"storage.modifier.hx"},"new-expr":{begin:/(?<!\.)\b(new)\b/dgv,beginCaptures:{"1":{name:"keyword.operator.new.hx"}},end:/(?=(?=\n?$)|\()/dgv,name:"new.expr.hx",patterns:[{include:"#type"}]},"operator-assignment":{match:/(=)/dgv,name:"keyword.operator.assignment.hx"},"operator-optional":{match:/(\?)(?!\p{space})/dgv,name:"keyword.operator.optional.hx"},"operator-rest":{match:/\.\.\./dgv,name:"keyword.operator.rest.hx"},"operator-type-hint":{match:/(:)/dgv,name:"keyword.operator.type.annotation.hx"},operators:{patterns:[{match:/(&&|\|\|)/dgv,name:"keyword.operator.logical.hx"},{match:/([\&\^\|\~]|>>>|<<|>>)/dgv,name:"keyword.operator.bitwise.hx"},{match:/(==|!=|<=|>=|[\<\>])/dgv,name:"keyword.operator.comparison.hx"},{match:/(!)/dgv,name:"keyword.operator.logical.hx"},{match:/(--|\+\+)/dgv,name:"keyword.operator.increment-decrement.hx"},{match:/([\-\%\*\+\/])/dgv,name:"keyword.operator.arithmetic.hx"},{match:/\.\.\./dgv,name:"keyword.operator.intiterator.hx"},{match:/=>/dgv,name:"keyword.operator.arrow.hx"},{match:/\?\?/dgv,name:"keyword.operator.nullcoalescing.hx"},{match:/\?\./dgv,name:"keyword.operator.safenavigation.hx"},{match:/\bis\b(?!\()/dgv,name:"keyword.other.hx"},{begin:/\?/dgv,beginCaptures:{"0":{name:"keyword.operator.ternary.hx"}},end:/:/dgv,endCaptures:{"0":{name:"keyword.operator.ternary.hx"}},patterns:[{include:"#block"},{include:"#block-contents"}]}]},package:{begin:/package\b/dgv,beginCaptures:{"0":{name:"keyword.other.package.hx"}},end:/(?=\n?$)|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},patterns:[{include:"#type-path"},{include:"#type-path-package-name"}]},parameter:{begin:/(?<=[\(\,])/dgv,end:/(?=\)(?!\p{space}*->)|,)/dgv,patterns:[{include:"#parameter-name"},{include:"#parameter-type-hint"},{include:"#parameter-assign"},{include:"#global"}]},"parameter-assign":{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.hx"}},end:/(?=[\)\,])/dgv,patterns:[{include:"#block"},{include:"#block-contents"}]},"parameter-name":{patterns:[{captures:{"1":{name:"variable.parameter.hx"}},match:/\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{include:"#global"},{include:"#metadata"},{include:"#operator-optional"},{include:"#operator-rest"}]},"parameter-type-hint":{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.annotation.hx"}},end:/(?=\)(?!\p{space}*->)|[\,\=])/dgv,patterns:[{include:"#type"}]},parameters:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.hx"}},end:/\p{space}*(\)(?!\p{space}*->))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.hx"}},name:"meta.parameters.hx",patterns:[{include:"#parameter"},{include:"#punctuation-comma"}]},"punctuation-accessor":{match:/\./dgv,name:"punctuation.accessor.hx"},"punctuation-braces":{begin:/\(/dgv,beginCaptures:{"0":{name:"meta.brace.round.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.hx"}},patterns:[{include:"#keywords"},{include:"#block"},{include:"#block-contents"},{include:"#type-check"}]},"punctuation-comma":{match:/,/dgv,name:"punctuation.separator.comma.hx"},"punctuation-terminator":{match:/;/dgv,name:"punctuation.terminator.hx"},regex:{begin:/(~\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.hx"}},end:/(\/)([gimsu]*)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.hx"},"2":{name:"keyword.other.hx"}},name:"string.regexp.hx",patterns:[{include:"#regexp"}]},"regex-character-class":{patterns:[{match:/\\[DSWdfnrstvw]|\./dgv,name:"constant.other.character-class.regexp"},{match:/\\([0-7]{3}|x\p{AHex}\p{AHex}|u\p{AHex}\p{AHex}\p{AHex}\p{AHex})/dgv,name:"constant.character.numeric.regexp"},{match:/\\c[A-Z]/dgv,name:"constant.character.control.regexp"},{match:/\\[^\n]/dgv,name:"constant.character.escape.backslash.regexp"}]},regexp:{patterns:[{match:/\\[Bb]|[\$\^]/dgv,name:"keyword.control.anchor.regexp"},{match:/\\[1-9]\p{Nd}*/dgv,name:"keyword.other.back-reference.regexp"},{match:/[\*\+\?]|\{(\p{Nd}+,\p{Nd}+|\p{Nd}+,|,\p{Nd}+|\p{Nd}+)\}\??/dgv,name:"keyword.operator.quantifier.regexp"},{match:/\|/dgv,name:"keyword.operator.or.regexp"},{begin:/(\()((\?=)|(\?!))/dgv,beginCaptures:{"1":{name:"punctuation.definition.group.regexp"},"2":{name:"punctuation.definition.group.assertion.regexp"},"3":{name:"meta.assertion.look-ahead.regexp"},"4":{name:"meta.assertion.negative-look-ahead.regexp"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.group.regexp"}},name:"meta.group.assertion.regexp",patterns:[{include:"#regexp"}]},{begin:/\((\?:)?/dgv,beginCaptures:{"0":{name:"punctuation.definition.group.regexp"},"1":{name:"punctuation.definition.group.capture.regexp"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.group.regexp"}},name:"meta.group.regexp",patterns:[{include:"#regexp"}]},{begin:/(\[)(\^)?/dgv,beginCaptures:{"1":{name:"punctuation.definition.character-class.regexp"},"2":{name:"keyword.operator.negation.regexp"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.character-class.regexp"}},name:"constant.other.character-class.set.regexp",patterns:[{captures:{"1":{name:"constant.character.numeric.regexp"},"2":{name:"constant.character.control.regexp"},"3":{name:"constant.character.escape.backslash.regexp"},"4":{name:"constant.character.numeric.regexp"},"5":{name:"constant.character.control.regexp"},"6":{name:"constant.character.escape.backslash.regexp"}},match:/(?:[^\n]|(\\(?:[0-7]{3}|x\p{AHex}\p{AHex}|u\p{AHex}\p{AHex}\p{AHex}\p{AHex}))|(\\c[A-Z])|(\\[^\n]))-(?:[^\]\\]|(\\(?:[0-7]{3}|x\p{AHex}\p{AHex}|u\p{AHex}\p{AHex}\p{AHex}\p{AHex}))|(\\c[A-Z])|(\\[^\n]))/dgv,name:"constant.other.character-class.range.regexp"},{include:"#regex-character-class"}]},{include:"#regex-character-class"}]},"string-escape-sequences":{patterns:[{match:/\\[0-3][0-9]{2}/dgv,name:"constant.character.escape.hx"},{match:/\\x\p{AHex}{2}/dgv,name:"constant.character.escape.hx"},{match:/\\u[0-9]{4}/dgv,name:"constant.character.escape.hx"},{match:/\\u\{\p{AHex}+\}/dgv,name:"constant.character.escape.hx"},{match:/\\["'\\nrt]/dgv,name:"constant.character.escape.hx"},{match:/\\[^\n]/dgv,name:"invalid.escape.sequence.hx"}]},strings:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.hx"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.hx"}},name:"string.quoted.double.hx",patterns:[{include:"#string-escape-sequences"}]},{begin:/(')/dgv,beginCaptures:{"0":{name:"string.quoted.single.hx"},"1":{name:"punctuation.definition.string.begin.hx"}},end:/(')/dgv,endCaptures:{"0":{name:"string.quoted.single.hx"},"1":{name:"punctuation.definition.string.end.hx"}},patterns:[{begin:/\$(?=\$)/dgv,beginCaptures:{"0":{name:"constant.character.escape.hx"}},end:/\$/dgv,endCaptures:{"0":{name:"constant.character.escape.hx"}},name:"string.quoted.single.hx"},{include:"#string-escape-sequences"},{begin:/(\$\{)/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.begin.hx"}},end:/(\})/dgv,endCaptures:{"0":{name:"punctuation.definition.block.end.hx"}},patterns:[{include:"#block-contents"}]},{captures:{"1":{name:"punctuation.definition.block.begin.hx"},"2":{name:"variable.other.hx"}},match:/(\$)([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{match:"",name:"constant.character.escape.hx"},{match:/[^\n]/dgv,name:"string.quoted.single.hx"}]}]},type:{patterns:[{include:"#global"},{include:"#macro-reification"},{include:"#type-name"},{include:"#type-parameters"},{match:/->/dgv,name:"keyword.operator.type.function.hx"},{match:/&/dgv,name:"keyword.operator.type.intersection.hx"},{match:/\?(?=\p{space}*[A-Z_])/dgv,name:"keyword.operator.optional"},{match:/\?(?!\p{space}*[A-Z_])/dgv,name:"punctuation.definition.tag"},{begin:/(\{)/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.begin.hx"}},end:/(?<=\})/dgv,patterns:[{include:"#typedef-block"}]},{include:"#function-type"}]},"type-check":{begin:/(?<!macro)(?=:)/dgv,end:/(?=\))/dgv,patterns:[{include:"#operator-type-hint"},{include:"#type"}]},"type-name":{patterns:[{captures:{"1":{name:"support.class.builtin.hx"},"2":{name:"support.package.hx"},"3":{name:"entity.name.type.hx"}},match:/\b(Any|Array|ArrayAccess|Bool|Class|Date|DateTools|Dynamic|Enum|EnumValue|EReg|Float|IMap|Int|IntIterator|Iterable|Iterator|KeyValueIterator|KeyValueIterable|Lambda|List|ListIterator|ListNode|Map|Math|Null|Reflect|Single|Std|String|StringBuf|StringTools|Sys|Type|UInt|UnicodeString|ValueType|Void|Xml|XmlType)(?:(\.)(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*[a-z][\p{L}\p{M}\p{N}\p{Pc}]*))*\b/dgv},{captures:{"1":{name:"support.package.hx"},"3":{name:"entity.name.type.hx"},"4":{name:"support.package.hx"},"5":{name:"entity.name.type.hx"}},match:/\b(?<![^\.]\.)((_*[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*)(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)(?:(\.)(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*[a-z][\p{L}\p{M}\p{N}\p{Pc}]*))*\b/dgv}]},"type-parameter-constraint-new":{match:/:/dgv,name:"keyword.operator.type.annotation.hxt"},"type-parameter-constraint-old":{begin:/(:)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"keyword.operator.type.annotation.hx"},"2":{name:"punctuation.definition.constraint.begin.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.constraint.end.hx"}},patterns:[{include:"#type"},{include:"#punctuation-comma"}]},"type-parameters":{begin:/(<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.typeparameters.begin.hx"}},end:/(?=(?=\n?$))|(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.typeparameters.end.hx"}},name:"meta.type-parameters.hx",patterns:[{include:"#type"},{include:"#type-parameter-constraint-old"},{include:"#type-parameter-constraint-new"},{include:"#global"},{include:"#regex"},{include:"#array"},{include:"#constants"},{include:"#strings"},{include:"#metadata"},{include:"#punctuation-comma"}]},"type-path":{patterns:[{include:"#global"},{include:"#punctuation-accessor"},{include:"#type-path-type-name"}]},"type-path-package-name":{match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"support.package.hx"},"type-path-type-name":{match:/\b(_*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"entity.name.type.hx"},typedef:{begin:/(?=typedef)/dgv,end:/(?<=\})|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},name:"meta.typedef.hx",patterns:[{include:"#typedef-name"},{include:"#typedef-name-post"},{include:"#typedef-block"}]},"typedef-block":{begin:/(?<=\{)/dgv,end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.hx"}},name:"meta.block.hx",patterns:[{include:"#global"},{include:"#metadata"},{include:"#method"},{include:"#variable"},{include:"#modifiers"},{include:"#punctuation-comma"},{include:"#operator-optional"},{include:"#typedef-extension"},{include:"#typedef-simple-field-type-hint"},{include:"#identifier-name"},{include:"#strings"}]},"typedef-extension":{begin:/>/dgv,end:/,|(?=\n?$)/dgv,patterns:[{include:"#type"}]},"typedef-name":{begin:/\b(typedef)\b/dgv,beginCaptures:{"1":{name:"storage.type.class.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"entity.name.type.class.hx"}},patterns:[{include:"#global"}]},"typedef-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/(\{)|(?=;)/dgv,endCaptures:{"1":{name:"punctuation.definition.block.begin.hx"}},patterns:[{include:"#global"},{include:"#punctuation-brackets"},{include:"#punctuation-separator"},{include:"#operator-assignment"},{include:"#type"}]},"typedef-simple-field-type-hint":{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.annotation.hx"}},end:/(?=[\,\;\}])/dgv,patterns:[{include:"#type"}]},using:{begin:/using\b/dgv,beginCaptures:{"0":{name:"keyword.other.using.hx"}},end:/(?=\n?$)|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},patterns:[{include:"#type-path"},{include:"#type-path-package-name"}]},variable:{begin:/(?=\b(var|final)\b)/dgv,end:/(?=(?=\n?$))|(;)/dgv,endCaptures:{"1":{name:"punctuation.terminator.hx"}},patterns:[{include:"#variable-name"},{include:"#variable-name-next"},{include:"#variable-assign"},{include:"#variable-name-post"}]},"variable-accessors":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.hx"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.hx"}},name:"meta.parameters.hx",patterns:[{include:"#global"},{include:"#keywords-accessor"},{include:"#accessor-method"},{include:"#punctuation-comma"}]},"variable-assign":{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.hx"}},end:/(?=[\,\;])/dgv,patterns:[{include:"#block"},{include:"#block-contents"}]},"variable-name":{begin:/\b(var|final)\b/dgv,beginCaptures:{"1":{name:"storage.type.variable.hx"}},end:/(?=(?=\n?$))|([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"variable.other.hx"}},patterns:[{include:"#operator-optional"}]},"variable-name-next":{begin:/,/dgv,beginCaptures:{"0":{name:"punctuation.separator.comma.hx"}},end:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,endCaptures:{"1":{name:"variable.other.hx"}},patterns:[{include:"#global"}]},"variable-name-post":{begin:/(?<=[\p{L}\p{M}\p{N}\p{Pc}])/dgv,end:/(?=;)|(?==)/dgv,patterns:[{include:"#variable-accessors"},{include:"#variable-type-hint"},{include:"#block-contents"}]},"variable-type-hint":{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.annotation.hx"}},end:/(?=(?=\n?$)|[\,\;\=])/dgv,patterns:[{include:"#type"}]}},scopeName:"source.hx",embeddedLangs:undefined,aliases:undefined})
2
2
 
3
3
  export default [
4
4
  lang
package/dist/hlsl.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze({displayName:"HLSL",name:"hlsl",patterns:[{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.line.block.hlsl"},{begin:/\/\//dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-slash.hlsl"},{match:/\b[0-9]+\.[0-9]*([Ff])?\b/dgv,name:"constant.numeric.decimal.hlsl"},{match:/(\.([0-9]+)([Ff])?)\b/dgv,name:"constant.numeric.decimal.hlsl"},{match:/\b([0-9]+([Ff])?)\b/dgv,name:"constant.numeric.decimal.hlsl"},{match:/\b(0([Xx])\p{AHex}+)\b/dgv,name:"constant.numeric.hex.hlsl"},{match:/\b(false|true)\b/dgv,name:"constant.language.hlsl"},{match:/^\p{space}*#\p{space}*(define|elif|else|endif|ifdef|ifndef|if|undef|include|line|error|pragma)/dgv,name:"keyword.preprocessor.hlsl"},{match:/\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\b/dgv,name:"keyword.control.hlsl"},{match:/\b(compile)\b/dgv,name:"keyword.control.fx.hlsl"},{match:/\b(typedef)\b/dgv,name:"keyword.typealias.hlsl"},{match:/\b(bool([1-4](x[1-4])?)?|double([1-4](x[1-4])?)?|dword|float([1-4](x[1-4])?)?|half([1-4](x[1-4])?)?|int([1-4](x[1-4])?)?|matrix|min10float([1-4](x[1-4])?)?|min12int([1-4](x[1-4])?)?|min16float([1-4](x[1-4])?)?|min16int([1-4](x[1-4])?)?|min16uint([1-4](x[1-4])?)?|unsigned|uint([1-4](x[1-4])?)?|vector|void)\b/dgv,name:"storage.type.basic.hlsl"},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)(?=\p{space}*\()/dgv,name:"support.function.hlsl"},{match:/(?<=:(?:\p{space}|))(?:BINORMAL[0-9]*|BLENDINDICES[0-9]*|BLENDWEIGHT[0-9]*|COLOR[0-9]*|NORMAL[0-9]*|POSITIONT|POSITION|PSIZE[0-9]*|TANGENT[0-9]*|TEXCOORD[0-9]*|FOG|TESSFACTOR[0-9]*|VFACE|VPOS|DEPTH[0-9]*)\b/dgiv,name:"support.variable.semantic.hlsl"},{match:/(?<=:(?:\p{space}|))SV_(?:ClipDistance[0-9]*|CullDistance[0-9]*|Coverage|Depth|DepthGreaterEqual[0-9]*|DepthLessEqual[0-9]*|InstanceID|IsFrontFace|Position|RenderTargetArrayIndex|SampleIndex|StencilRef|Target[0-7]?|VertexID|ViewportArrayIndex)\b/dgiv,name:"support.variable.semantic.sm4.hlsl"},{match:/(?<=:(?:\p{space}|))SV_(?:DispatchThreadID|DomainLocation|GroupID|GroupIndex|GroupThreadID|GSInstanceID|InsideTessFactor|OutputControlPointID|TessFactor)\b/dgiv,name:"support.variable.semantic.sm5.hlsl"},{match:/(?<=:(?:\p{space}|))SV_(?:InnerCoverage|StencilRef)\b/dgiv,name:"support.variable.semantic.sm5_1.hlsl"},{match:/\b(column_major|const|export|extern|globallycoherent|groupshared|inline|inout|in|out|precise|row_major|shared|static|uniform|volatile)\b/dgv,name:"storage.modifier.hlsl"},{match:/\b([su]norm)\b/dgv,name:"storage.modifier.float.hlsl"},{match:/\b(packoffset|register)\b/dgv,name:"storage.modifier.postfix.hlsl"},{match:/\b(centroid|linear|nointerpolation|noperspective|sample)\b/dgv,name:"storage.modifier.interpolation.hlsl"},{match:/\b(lineadj|line|point|triangle|triangleadj)\b/dgv,name:"storage.modifier.geometryshader.hlsl"},{match:/\b(string)\b/dgv,name:"support.type.other.hlsl"},{match:/\b(AppendStructuredBuffer|Buffer|ByteAddressBuffer|ConstantBuffer|ConsumeStructuredBuffer|InputPatch|OutputPatch)\b/dgv,name:"support.type.object.hlsl"},{match:/\b(RasterizerOrdered(?:Buffer|ByteAddressBuffer|StructuredBuffer|Texture1D|Texture1DArray|Texture2D|Texture2DArray|Texture3D))\b/dgv,name:"support.type.object.rasterizerordered.hlsl"},{match:/\b(RW(?:Buffer|ByteAddressBuffer|StructuredBuffer|Texture1D|Texture1DArray|Texture2D|Texture2DArray|Texture3D))\b/dgv,name:"support.type.object.rw.hlsl"},{match:/\b((?:Line|Point|Triangle)Stream)\b/dgv,name:"support.type.object.geometryshader.hlsl"},{match:/\b(sampler(?:|1D|2D|3D|CUBE|_state))\b/dgv,name:"support.type.sampler.legacy.hlsl"},{match:/\b(Sampler(?:|Comparison)State)\b/dgv,name:"support.type.sampler.hlsl"},{match:/\b(texture(?:2D|CUBE))\b/dgv,name:"support.type.texture.legacy.hlsl"},{match:/\b(Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray))\b/dgv,name:"support.type.texture.hlsl"},{match:/\b(cbuffer|class|interface|namespace|struct|tbuffer)\b/dgv,name:"storage.type.structured.hlsl"},{match:/\b(FALSE|TRUE|NULL)\b/dgv,name:"support.constant.property-value.fx.hlsl"},{match:/\b((?:Blend|DepthStencil|Rasterizer)State)\b/dgv,name:"support.type.fx.hlsl"},{match:/\b(technique|Technique|technique10|technique11|pass)\b/dgv,name:"storage.type.fx.technique.hlsl"},{match:/\b(AlphaToCoverageEnable|BlendEnable|SrcBlend|DestBlend|BlendOp|SrcBlendAlpha|DestBlendAlpha|BlendOpAlpha|RenderTargetWriteMask)\b/dgv,name:"meta.object-literal.key.fx.blendstate.hlsl"},{match:/\b(DepthEnable|DepthWriteMask|DepthFunc|StencilEnable|StencilReadMask|StencilWriteMask|FrontFaceStencilFail|FrontFaceStencilZFail|FrontFaceStencilPass|FrontFaceStencilFunc|BackFaceStencilFail|BackFaceStencilZFail|BackFaceStencilPass|BackFaceStencilFunc)\b/dgv,name:"meta.object-literal.key.fx.depthstencilstate.hlsl"},{match:/\b(FillMode|CullMode|FrontCounterClockwise|DepthBias|DepthBiasClamp|SlopeScaleDepthBias|ZClipEnable|ScissorEnable|MultiSampleEnable|AntiAliasedLineEnable)\b/dgv,name:"meta.object-literal.key.fx.rasterizerstate.hlsl"},{match:/\b(Filter|AddressU|AddressV|AddressW|MipLODBias|MaxAnisotropy|ComparisonFunc|BorderColor|MinLOD|MaxLOD)\b/dgv,name:"meta.object-literal.key.fx.samplerstate.hlsl"},{match:/\b(?:ZERO|ONE|SRC_COLOR|INV_SRC_COLOR|SRC_ALPHA|INV_SRC_ALPHA|DEST_ALPHA|INV_DEST_ALPHA|DEST_COLOR|INV_DEST_COLOR|SRC_ALPHA_SAT|BLEND_FACTOR|INV_BLEND_FACTOR|SRC1_COLOR|INV_SRC1_COLOR|SRC1_ALPHA|INV_SRC1_ALPHA)\b/dgiv,name:"support.constant.property-value.fx.blend.hlsl"},{match:/\b(?:ADD|SUBTRACT|REV_SUBTRACT|MIN|MAX)\b/dgiv,name:"support.constant.property-value.fx.blendop.hlsl"},{match:/\bALL\b/dgiv,name:"support.constant.property-value.fx.depthwritemask.hlsl"},{match:/\b(?:NEVER|LESS|EQUAL|LESS_EQUAL|GREATER|NOT_EQUAL|GREATER_EQUAL|ALWAYS)\b/dgiv,name:"support.constant.property-value.fx.comparisonfunc.hlsl"},{match:/\b(?:KEEP|REPLACE|INCR_SAT|DECR_SAT|INVERT|INCR|DECR)\b/dgiv,name:"support.constant.property-value.fx.stencilop.hlsl"},{match:/\b(?:WIREFRAME|SOLID)\b/dgiv,name:"support.constant.property-value.fx.fillmode.hlsl"},{match:/\b(?:NONE|FRONT|BACK)\b/dgiv,name:"support.constant.property-value.fx.cullmode.hlsl"},{match:/\b(?:MIN_MAG_MIP_POINT|MIN_MAG_POINT_MIP_LINEAR|MIN_POINT_MAG_LINEAR_MIP_POINT|MIN_POINT_MAG_MIP_LINEAR|MIN_LINEAR_MAG_MIP_POINT|MIN_LINEAR_MAG_POINT_MIP_LINEAR|MIN_MAG_LINEAR_MIP_POINT|MIN_MAG_MIP_LINEAR|ANISOTROPIC|COMPARISON_MIN_MAG_MIP_POINT|COMPARISON_MIN_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_POINT_MAG_MIP_LINEAR|COMPARISON_MIN_LINEAR_MAG_MIP_POINT|COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_MAG_MIP_LINEAR|COMPARISON_ANISOTROPIC|TEXT_1BIT)\b/dgiv,name:"support.constant.property-value.fx.filter.hlsl"},{match:/\b(?:WRAP|MIRROR|CLAMP|BORDER|MIRROR_ONCE)\b/dgiv,name:"support.constant.property-value.fx.textureaddressmode.hlsl"},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.hlsl",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.hlsl"}]}],scopeName:"source.hlsl",embeddedLangs:undefined,aliases:undefined})
1
+ const lang = Object.freeze({displayName:"HLSL",name:"hlsl",patterns:[{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.line.block.hlsl"},{begin:/\/\//dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-slash.hlsl"},{match:/\b[0-9]+\.[0-9]*([Ff])?\b/dgv,name:"constant.numeric.decimal.hlsl"},{match:/(\.([0-9]+)([Ff])?)\b/dgv,name:"constant.numeric.decimal.hlsl"},{match:/\b([0-9]+([Ff])?)\b/dgv,name:"constant.numeric.decimal.hlsl"},{match:/\b(0([Xx])\p{AHex}+)\b/dgv,name:"constant.numeric.hex.hlsl"},{match:/\b(false|true)\b/dgv,name:"constant.language.hlsl"},{match:/^\p{space}*#\p{space}*(define|elif|else|endif|ifdef|ifndef|if|undef|include|line|error|pragma)/dgv,name:"keyword.preprocessor.hlsl"},{match:/\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\b/dgv,name:"keyword.control.hlsl"},{match:/\b(compile)\b/dgv,name:"keyword.control.fx.hlsl"},{match:/\b(typedef)\b/dgv,name:"keyword.typealias.hlsl"},{match:/\b(bool([1-4](x[1-4])?)?|double([1-4](x[1-4])?)?|dword|float([1-4](x[1-4])?)?|half([1-4](x[1-4])?)?|int([1-4](x[1-4])?)?|matrix|min10float([1-4](x[1-4])?)?|min12int([1-4](x[1-4])?)?|min16float([1-4](x[1-4])?)?|min16int([1-4](x[1-4])?)?|min16uint([1-4](x[1-4])?)?|unsigned|uint([1-4](x[1-4])?)?|vector|void)\b/dgv,name:"storage.type.basic.hlsl"},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)(?=\p{space}*\()/dgv,name:"support.function.hlsl"},{match:/(?<=:\p{space}?)(?:BINORMAL[0-9]*|BLENDINDICES[0-9]*|BLENDWEIGHT[0-9]*|COLOR[0-9]*|NORMAL[0-9]*|POSITIONT?|PSIZE[0-9]*|TANGENT[0-9]*|TEXCOORD[0-9]*|FOG|TESSFACTOR[0-9]*|VFACE|VPOS|DEPTH[0-9]*)\b/dgiv,name:"support.variable.semantic.hlsl"},{match:/(?<=:\p{space}?)SV_(?:ClipDistance[0-9]*|CullDistance[0-9]*|Coverage|Depth|DepthGreaterEqual[0-9]*|DepthLessEqual[0-9]*|InstanceID|IsFrontFace|Position|RenderTargetArrayIndex|SampleIndex|StencilRef|Target[0-7]?|VertexID|ViewportArrayIndex)\b/dgiv,name:"support.variable.semantic.sm4.hlsl"},{match:/(?<=:\p{space}?)SV_(?:DispatchThreadID|DomainLocation|GroupID|GroupIndex|GroupThreadID|GSInstanceID|InsideTessFactor|OutputControlPointID|TessFactor)\b/dgiv,name:"support.variable.semantic.sm5.hlsl"},{match:/(?<=:\p{space}?)SV_(?:InnerCoverage|StencilRef)\b/dgiv,name:"support.variable.semantic.sm5_1.hlsl"},{match:/\b(column_major|const|export|extern|globallycoherent|groupshared|inline|inout|in|out|precise|row_major|shared|static|uniform|volatile)\b/dgv,name:"storage.modifier.hlsl"},{match:/\b([su]norm)\b/dgv,name:"storage.modifier.float.hlsl"},{match:/\b(packoffset|register)\b/dgv,name:"storage.modifier.postfix.hlsl"},{match:/\b(centroid|linear|nointerpolation|noperspective|sample)\b/dgv,name:"storage.modifier.interpolation.hlsl"},{match:/\b(lineadj|line|point|triangle|triangleadj)\b/dgv,name:"storage.modifier.geometryshader.hlsl"},{match:/\b(string)\b/dgv,name:"support.type.other.hlsl"},{match:/\b(AppendStructuredBuffer|Buffer|ByteAddressBuffer|ConstantBuffer|ConsumeStructuredBuffer|InputPatch|OutputPatch)\b/dgv,name:"support.type.object.hlsl"},{match:/\b(RasterizerOrdered(?:Buffer|ByteAddressBuffer|StructuredBuffer|Texture1D|Texture1DArray|Texture2D|Texture2DArray|Texture3D))\b/dgv,name:"support.type.object.rasterizerordered.hlsl"},{match:/\b(RW(?:Buffer|ByteAddressBuffer|StructuredBuffer|Texture1D|Texture1DArray|Texture2D|Texture2DArray|Texture3D))\b/dgv,name:"support.type.object.rw.hlsl"},{match:/\b((?:Line|Point|Triangle)Stream)\b/dgv,name:"support.type.object.geometryshader.hlsl"},{match:/\b(sampler(?:|1D|2D|3D|CUBE|_state))\b/dgv,name:"support.type.sampler.legacy.hlsl"},{match:/\b(Sampler(?:|Comparison)State)\b/dgv,name:"support.type.sampler.hlsl"},{match:/\b(texture(?:2D|CUBE))\b/dgv,name:"support.type.texture.legacy.hlsl"},{match:/\b(Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray))\b/dgv,name:"support.type.texture.hlsl"},{match:/\b(cbuffer|class|interface|namespace|struct|tbuffer)\b/dgv,name:"storage.type.structured.hlsl"},{match:/\b(FALSE|TRUE|NULL)\b/dgv,name:"support.constant.property-value.fx.hlsl"},{match:/\b((?:Blend|DepthStencil|Rasterizer)State)\b/dgv,name:"support.type.fx.hlsl"},{match:/\b(technique|Technique|technique10|technique11|pass)\b/dgv,name:"storage.type.fx.technique.hlsl"},{match:/\b(AlphaToCoverageEnable|BlendEnable|SrcBlend|DestBlend|BlendOp|SrcBlendAlpha|DestBlendAlpha|BlendOpAlpha|RenderTargetWriteMask)\b/dgv,name:"meta.object-literal.key.fx.blendstate.hlsl"},{match:/\b(DepthEnable|DepthWriteMask|DepthFunc|StencilEnable|StencilReadMask|StencilWriteMask|FrontFaceStencilFail|FrontFaceStencilZFail|FrontFaceStencilPass|FrontFaceStencilFunc|BackFaceStencilFail|BackFaceStencilZFail|BackFaceStencilPass|BackFaceStencilFunc)\b/dgv,name:"meta.object-literal.key.fx.depthstencilstate.hlsl"},{match:/\b(FillMode|CullMode|FrontCounterClockwise|DepthBias|DepthBiasClamp|SlopeScaleDepthBias|ZClipEnable|ScissorEnable|MultiSampleEnable|AntiAliasedLineEnable)\b/dgv,name:"meta.object-literal.key.fx.rasterizerstate.hlsl"},{match:/\b(Filter|AddressU|AddressV|AddressW|MipLODBias|MaxAnisotropy|ComparisonFunc|BorderColor|MinLOD|MaxLOD)\b/dgv,name:"meta.object-literal.key.fx.samplerstate.hlsl"},{match:/\b(?:ZERO|ONE|SRC_COLOR|INV_SRC_COLOR|SRC_ALPHA|INV_SRC_ALPHA|DEST_ALPHA|INV_DEST_ALPHA|DEST_COLOR|INV_DEST_COLOR|SRC_ALPHA_SAT|BLEND_FACTOR|INV_BLEND_FACTOR|SRC1_COLOR|INV_SRC1_COLOR|SRC1_ALPHA|INV_SRC1_ALPHA)\b/dgiv,name:"support.constant.property-value.fx.blend.hlsl"},{match:/\b(?:ADD|SUBTRACT|REV_SUBTRACT|MIN|MAX)\b/dgiv,name:"support.constant.property-value.fx.blendop.hlsl"},{match:/\bALL\b/dgiv,name:"support.constant.property-value.fx.depthwritemask.hlsl"},{match:/\b(?:NEVER|LESS|EQUAL|LESS_EQUAL|GREATER|NOT_EQUAL|GREATER_EQUAL|ALWAYS)\b/dgiv,name:"support.constant.property-value.fx.comparisonfunc.hlsl"},{match:/\b(?:KEEP|REPLACE|INCR_SAT|DECR_SAT|INVERT|INCR|DECR)\b/dgiv,name:"support.constant.property-value.fx.stencilop.hlsl"},{match:/\b(?:WIREFRAME|SOLID)\b/dgiv,name:"support.constant.property-value.fx.fillmode.hlsl"},{match:/\b(?:NONE|FRONT|BACK)\b/dgiv,name:"support.constant.property-value.fx.cullmode.hlsl"},{match:/\b(?:MIN_MAG_MIP_POINT|MIN_MAG_POINT_MIP_LINEAR|MIN_POINT_MAG_LINEAR_MIP_POINT|MIN_POINT_MAG_MIP_LINEAR|MIN_LINEAR_MAG_MIP_POINT|MIN_LINEAR_MAG_POINT_MIP_LINEAR|MIN_MAG_LINEAR_MIP_POINT|MIN_MAG_MIP_LINEAR|ANISOTROPIC|COMPARISON_MIN_MAG_MIP_POINT|COMPARISON_MIN_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_POINT_MAG_MIP_LINEAR|COMPARISON_MIN_LINEAR_MAG_MIP_POINT|COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_MAG_MIP_LINEAR|COMPARISON_ANISOTROPIC|TEXT_1BIT)\b/dgiv,name:"support.constant.property-value.fx.filter.hlsl"},{match:/\b(?:WRAP|MIRROR|CLAMP|BORDER|MIRROR_ONCE)\b/dgiv,name:"support.constant.property-value.fx.textureaddressmode.hlsl"},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.hlsl",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.hlsl"}]}],scopeName:"source.hlsl",embeddedLangs:undefined,aliases:undefined})
2
2
 
3
3
  export default [
4
4
  lang