@shikijs/langs-precompiled 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/actionscript-3.mjs +1 -1
  2. package/dist/applescript.mjs +1 -1
  3. package/dist/ara.mjs +1 -1
  4. package/dist/asciidoc.mjs +1 -1
  5. package/dist/beancount.mjs +1 -1
  6. package/dist/bsl.mjs +1 -1
  7. package/dist/cadence.mjs +1 -1
  8. package/dist/clarity.mjs +1 -1
  9. package/dist/cmake.mjs +1 -1
  10. package/dist/cobol.mjs +1 -1
  11. package/dist/coq.mjs +1 -1
  12. package/dist/crystal.mjs +1 -1
  13. package/dist/cypher.mjs +1 -1
  14. package/dist/dax.mjs +1 -1
  15. package/dist/diff.mjs +1 -1
  16. package/dist/docker.mjs +1 -1
  17. package/dist/dotenv.mjs +1 -1
  18. package/dist/dream-maker.mjs +1 -1
  19. package/dist/elixir.mjs +1 -1
  20. package/dist/elm.mjs +1 -1
  21. package/dist/erlang.mjs +1 -1
  22. package/dist/fish.mjs +1 -1
  23. package/dist/fortran-free-form.mjs +1 -1
  24. package/dist/fsharp.mjs +1 -1
  25. package/dist/gdresource.mjs +1 -1
  26. package/dist/gdscript.mjs +1 -1
  27. package/dist/git-commit.mjs +1 -1
  28. package/dist/go.mjs +1 -1
  29. package/dist/graphql.mjs +1 -1
  30. package/dist/groovy.mjs +1 -1
  31. package/dist/hack.mjs +1 -1
  32. package/dist/haml.mjs +1 -1
  33. package/dist/haskell.mjs +1 -1
  34. package/dist/hcl.mjs +1 -1
  35. package/dist/html.mjs +1 -1
  36. package/dist/json.mjs +1 -1
  37. package/dist/json5.mjs +1 -1
  38. package/dist/jsonc.mjs +1 -1
  39. package/dist/jsonl.mjs +1 -1
  40. package/dist/jssm.mjs +1 -1
  41. package/dist/julia.mjs +1 -1
  42. package/dist/kusto.mjs +1 -1
  43. package/dist/latex.mjs +1 -1
  44. package/dist/less.mjs +1 -1
  45. package/dist/markdown.mjs +1 -1
  46. package/dist/marko.mjs +1 -1
  47. package/dist/matlab.mjs +1 -1
  48. package/dist/mermaid.mjs +1 -1
  49. package/dist/mipsasm.mjs +1 -1
  50. package/dist/mojo.mjs +1 -1
  51. package/dist/move.mjs +1 -1
  52. package/dist/nim.mjs +1 -1
  53. package/dist/nushell.mjs +1 -1
  54. package/dist/objective-c.mjs +1 -1
  55. package/dist/objective-cpp.mjs +1 -1
  56. package/dist/perl.mjs +1 -1
  57. package/dist/po.mjs +1 -1
  58. package/dist/polar.mjs +1 -1
  59. package/dist/powershell.mjs +1 -1
  60. package/dist/pug.mjs +1 -1
  61. package/dist/puppet.mjs +1 -1
  62. package/dist/python.mjs +1 -1
  63. package/dist/regexp.mjs +1 -1
  64. package/dist/riscv.mjs +1 -1
  65. package/dist/ruby.mjs +1 -1
  66. package/dist/rust.mjs +1 -1
  67. package/dist/sas.mjs +1 -1
  68. package/dist/scala.mjs +1 -1
  69. package/dist/scheme.mjs +1 -1
  70. package/dist/sdbl.mjs +1 -1
  71. package/dist/shellscript.mjs +1 -1
  72. package/dist/smalltalk.mjs +1 -1
  73. package/dist/splunk.mjs +1 -1
  74. package/dist/sql.mjs +1 -1
  75. package/dist/stata.mjs +1 -1
  76. package/dist/stylus.mjs +1 -1
  77. package/dist/tcl.mjs +1 -1
  78. package/dist/terraform.mjs +1 -1
  79. package/dist/toml.mjs +1 -1
  80. package/dist/twig.mjs +1 -1
  81. package/dist/typst.mjs +1 -1
  82. package/dist/vue.mjs +1 -1
  83. package/dist/vyper.mjs +1 -1
  84. package/dist/wasm.mjs +1 -1
  85. package/dist/wgsl.mjs +1 -1
  86. package/dist/zenscript.mjs +1 -1
  87. package/dist/zig.mjs +1 -1
  88. package/package.json +3 -3
package/dist/dax.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EmulatedRegExp } from 'oniguruma-to-es'
2
2
 
3
- const lang = Object.freeze({displayName:"DAX",name:"dax",patterns:[{include:"#comments"},{include:"#keywords"},{include:"#labels"},{include:"#parameters"},{include:"#strings"},{include:"#numbers"}],repository:{comments:{patterns:[{begin:/\/\//dgv,captures:{"0":{name:"punctuation.definition.comment.dax"}},end:/\n/dgv,name:"comment.line.dax"},{begin:/--/dgv,captures:{"0":{name:"punctuation.definition.comment.dax"}},end:/\n/dgv,name:"comment.line.dax"},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.dax"}},end:/\*\//dgv,name:"comment.block.dax"}]},keywords:{patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("\\b(YIELDMAT|YIELDDISC|YIELD|YEARFRAC|YEAR|XNPV|XIRR|WEEKNUM|WEEKDAY|VDB|VARX[^\\n]S|VARX[^\\n]P|VAR[^\\n]S|VAR[^\\n]P|VALUES|VALUE|UTCTODAY|UTCNOW|USERPRINCIPALNAME|USEROBJECTID|USERNAME|USERELATIONSHIP|USERCULTURE|UPPER|UNION|UNICODE|UNICHAR|TRUNC|TRUE|TRIM|TREATAS|TOTALYTD|TOTALQTD|TOTALMTD|TOPNSKIP|TOPNPERLEVEL|TOPN|TODAY|TIMEVALUE|TIME|TBILLYIELD|TBILLPRICE|TBILLEQ|TANH|TAN|T[^\\n]INV[^\\n]2T|T[^\\n]INV|T[^\\n]DIST[^\\n]RT|T[^\\n]DIST[^\\n]2T|T[^\\n]DIST|SYD|SWITCH|SUMX|SUMMARIZECOLUMNS|SUMMARIZE|SUM|SUBSTITUTEWITHINDEX|SUBSTITUTE|STDEVX[^\\n]S|STDEVX[^\\n]P|STDEV[^\\n]S|STDEV[^\\n]P|STARTOFYEAR|STARTOFQUARTER|STARTOFMONTH|SQRTPI|SQRT|SLN|SINH|SIN|SIGN|SELECTEDVALUE|SELECTEDMEASURENAME|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURE|SELECTCOLUMNS|SECOND|SEARCH|SAMPLE|SAMEPERIODLASTYEAR|RRI|ROW|ROUNDUP|ROUNDDOWN|ROUND|ROLLUPISSUBTOTAL|ROLLUPGROUP|ROLLUPADDISSUBTOTAL|ROLLUP|RIGHT|REPT|REPLACE|REMOVEFILTERS|RELATEDTABLE|RELATED|RECEIVED|RATE|RANKX|RANK[^\\n]EQ|RANDBETWEEN|RAND|RADIANS|QUOTIENT|QUARTER|PV|PRODUCTX|PRODUCT|PRICEMAT|PRICEDISC|PRICE|PREVIOUSYEAR|PREVIOUSQUARTER|PREVIOUSMONTH|PREVIOUSDAY|PPMT|POWER|POISSON[^\\n]DIST|PMT|PI|PERMUT|PERCENTILEX[^\\n]INC|PERCENTILEX[^\\n]EXC|PERCENTILE[^\\n]INC|PERCENTILE[^\\n]EXC|PDURATION|PATHLENGTH|PATHITEMREVERSE|PATHITEM|PATHCONTAINS|PATH|PARALLELPERIOD|OR|OPENINGBALANCEYEAR|OPENINGBALANCEQUARTER|OPENINGBALANCEMONTH|ODDLYIELD|ODDLPRICE|ODDFYIELD|ODDFPRICE|ODD|NPER|NOW|NOT|NORM[^\\n]S[^\\n]INV|NORM[^\\n]S[^\\n]DIST|NORM[^\\n]INV|NORM[^\\n]DIST|NONVISUAL|NOMINAL|NEXTYEAR|NEXTQUARTER|NEXTMONTH|NEXTDAY|NATURALLEFTOUTERJOIN|NATURALINNERJOIN|MROUND|MONTH|MOD|MINX|MINUTE|MINA|MIN|MID|MEDIANX|MEDIAN|MDURATION|MAXX|MAXA|MAX|LOWER|LOOKUPVALUE|LOG10|LOG|LN|LEN|LEFT|LCM|LASTNONBLANKVALUE|LASTNONBLANK|LASTDATE|KEYWORDMATCH|KEEPFILTERS|ISTEXT|ISSUBTOTAL|ISSELECTEDMEASURE|ISPMT|ISONORAFTER|ISODD|ISO[^\\n]CEILING|ISNUMBER|ISNONTEXT|ISLOGICAL|ISINSCOPE|ISFILTERED|ISEVEN|ISERROR|ISEMPTY|ISCROSSFILTERED|ISBLANK|ISAFTER|IPMT|INTRATE|INTERSECT|INT|IGNORE|IFERROR|IF[^\\n]EAGER|IF|HOUR|HASONEVALUE|HASONEFILTER|HASH|GROUPBY|GEOMEANX|GEOMEAN|GENERATESERIES|GENERATEALL|GENERATE|GCD|FV|FORMAT|FLOOR|FIXED|FIRSTNONBLANKVALUE|FIRSTNONBLANK|FIRSTDATE|FIND|FILTERS|FILTER|FALSE|FACT|EXPON[^\\n]DIST|EXP|EXCEPT|EXACT|EVEN|ERROR|EOMONTH|ENDOFYEAR|ENDOFQUARTER|ENDOFMONTH|EFFECT|EDATE|EARLIEST|EARLIER|DURATION|DOLLARFR|DOLLARDE|DIVIDE|DISTINCTCOUNTNOBLANK|DISTINCTCOUNT|DISTINCT|DISC|DETAILROWS|DEGREES|DDB|DB|DAY|DATEVALUE|DATESYTD|DATESQTD|DATESMTD|DATESINPERIOD|DATESBETWEEN|DATEDIFF|DATEADD|DATE|DATATABLE|CUSTOMDATA|CURRENTGROUP|CURRENCY|CUMPRINC|CUMIPMT|CROSSJOIN|CROSSFILTER|COUPPCD|COUPNUM|COUPNCD|COUPDAYSNC|COUPDAYS|COUPDAYBS|COUNTX|COUNTROWS|COUNTBLANK|COUNTAX|COUNTA|COUNT|COTH|COT|COSH|COS|CONVERT|CONTAINSSTRINGEXACT|CONTAINSSTRING|CONTAINSROW|CONTAINS|CONFIDENCE[^\\n]T|CONFIDENCE[^\\n]NORM|CONCATENATEX|CONCATENATE|COMBINEVALUES|COMBINA|COMBIN|COLUMNSTATISTICS|COALESCE|CLOSINGBALANCEYEAR|CLOSINGBALANCEQUARTER|CLOSINGBALANCEMONTH|CHISQ[^\\n]INV[^\\n]RT|CHISQ[^\\n]INV|CHISQ[^\\n]DIST[^\\n]RT|CHISQ[^\\n]DIST|CEILING|CALENDARAUTO|CALENDAR|CALCULATETABLE|CALCULATE|BLANK|BETA[^\\n]INV|BETA[^\\n]DIST|AVERAGEX|AVERAGEA|AVERAGE|ATANH|ATAN|ASINH|ASIN|APPROXIMATEDISTINCTCOUNT|AND|AMORLINC|AMORDEGRC|ALLSELECTED|ALLNOBLANKROW|ALLEXCEPT|ALLCROSSFILTERED|ALL|ADDMISSINGITEMS|ADDCOLUMNS|ACOTH|ACOT|ACOSH|ACOS|ACCRINTM|ACCRINT|ABS)\\b","dgv",{"lazyCompile":true}),name:"variable.language.dax"},{match:/\b(DEFINE|EVALUATE|ORDER BY|RETURN|VAR)\b/dgv,name:"keyword.control.dax"},{match:/\{|\}/dgv,name:"keyword.array.constructor.dax"},{match:/>|<|>=|<=|=(?!==)/dgv,name:"keyword.operator.comparison.dax"},{match:/&&|IN|NOT|\|\|/dgv,name:"keyword.operator.logical.dax"},{match:/\+|-|\*|\//dgv,name:"keyword.arithmetic.operator.dax"},{begin:/\[/dgv,end:/\]/dgv,name:"support.function.dax"},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.dax"},{begin:/'/dgv,end:/'/dgv,name:"support.class.dax"}]},labels:{patterns:[{captures:{"1":{name:"punctuation.separator.label.dax"},"2":{name:"entity.name.label.dax"}},match:/(^([^\n]*?)\p{space}*(:=|!=))/dgv}]},metas:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"meta.brace.round.dax"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.dax"}}}]},numbers:{match:/-?(?:0|[1-9]\p{Nd}*)(?:(?:\.\p{Nd}+)?(?:[eE][\+\-]?\p{Nd}+)?)?/dgv,name:"constant.numeric.dax"},parameters:{patterns:[{begin:/\b(?<!\.)(VAR)\b(?<!\.)\b/dgv,beginCaptures:{"1":{name:"keyword.control.dax"},"2":{name:"variable.other.readwrite.dax"}},comment:"build out variable assignment",end:/=/dgv,endCaptures:{"0":{name:"keyword.operator.assignment.dax"}},name:"meta.function.definition.parameters.dax",patterns:[{match:/=/dgv,name:"keyword.control.dax"}]},{match:/[_\$\p{Alpha}][_\$\p{Alpha}\p{Nd}]*/dgv,name:"variable.other.constant.dax"}]},strings:{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.dax",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.dax"}]}},scopeName:"source.dax",embeddedLangs:undefined,aliases:undefined})
3
+ const lang = Object.freeze({displayName:"DAX",name:"dax",patterns:[{include:"#comments"},{include:"#keywords"},{include:"#labels"},{include:"#parameters"},{include:"#strings"},{include:"#numbers"}],repository:{comments:{patterns:[{begin:/\/\//dgv,captures:{"0":{name:"punctuation.definition.comment.dax"}},end:/\n/dgv,name:"comment.line.dax"},{begin:/--/dgv,captures:{"0":{name:"punctuation.definition.comment.dax"}},end:/\n/dgv,name:"comment.line.dax"},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.dax"}},end:/\*\//dgv,name:"comment.block.dax"}]},keywords:{patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("\\b(YIELDMAT|YIELDDISC|YIELD|YEARFRAC|YEAR|XNPV|XIRR|WEEKNUM|WEEKDAY|VDB|VARX[^\\n]S|VARX[^\\n]P|VAR[^\\n]S|VAR[^\\n]P|VALUES|VALUE|UTCTODAY|UTCNOW|USERPRINCIPALNAME|USEROBJECTID|USERNAME|USERELATIONSHIP|USERCULTURE|UPPER|UNION|UNICODE|UNICHAR|TRUNC|TRUE|TRIM|TREATAS|TOTALYTD|TOTALQTD|TOTALMTD|TOPNSKIP|TOPNPERLEVEL|TOPN|TODAY|TIMEVALUE|TIME|TBILLYIELD|TBILLPRICE|TBILLEQ|TANH|TAN|T[^\\n]INV[^\\n]2T|T[^\\n]INV|T[^\\n]DIST[^\\n]RT|T[^\\n]DIST[^\\n]2T|T[^\\n]DIST|SYD|SWITCH|SUMX|SUMMARIZECOLUMNS|SUMMARIZE|SUM|SUBSTITUTEWITHINDEX|SUBSTITUTE|STDEVX[^\\n]S|STDEVX[^\\n]P|STDEV[^\\n]S|STDEV[^\\n]P|STARTOFYEAR|STARTOFQUARTER|STARTOFMONTH|SQRTPI|SQRT|SLN|SINH|SIN|SIGN|SELECTEDVALUE|SELECTEDMEASURENAME|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURE|SELECTCOLUMNS|SECOND|SEARCH|SAMPLE|SAMEPERIODLASTYEAR|RRI|ROW|ROUNDUP|ROUNDDOWN|ROUND|ROLLUPISSUBTOTAL|ROLLUPGROUP|ROLLUPADDISSUBTOTAL|ROLLUP|RIGHT|REPT|REPLACE|REMOVEFILTERS|RELATEDTABLE|RELATED|RECEIVED|RATE|RANKX|RANK[^\\n]EQ|RANDBETWEEN|RAND|RADIANS|QUOTIENT|QUARTER|PV|PRODUCTX|PRODUCT|PRICEMAT|PRICEDISC|PRICE|PREVIOUSYEAR|PREVIOUSQUARTER|PREVIOUSMONTH|PREVIOUSDAY|PPMT|POWER|POISSON[^\\n]DIST|PMT|PI|PERMUT|PERCENTILEX[^\\n]INC|PERCENTILEX[^\\n]EXC|PERCENTILE[^\\n]INC|PERCENTILE[^\\n]EXC|PDURATION|PATHLENGTH|PATHITEMREVERSE|PATHITEM|PATHCONTAINS|PATH|PARALLELPERIOD|OR|OPENINGBALANCEYEAR|OPENINGBALANCEQUARTER|OPENINGBALANCEMONTH|ODDLYIELD|ODDLPRICE|ODDFYIELD|ODDFPRICE|ODD|NPER|NOW|NOT|NORM[^\\n]S[^\\n]INV|NORM[^\\n]S[^\\n]DIST|NORM[^\\n]INV|NORM[^\\n]DIST|NONVISUAL|NOMINAL|NEXTYEAR|NEXTQUARTER|NEXTMONTH|NEXTDAY|NATURALLEFTOUTERJOIN|NATURALINNERJOIN|MROUND|MONTH|MOD|MINX|MINUTE|MINA|MIN|MID|MEDIANX|MEDIAN|MDURATION|MAXX|MAXA|MAX|LOWER|LOOKUPVALUE|LOG10|LOG|LN|LEN|LEFT|LCM|LASTNONBLANKVALUE|LASTNONBLANK|LASTDATE|KEYWORDMATCH|KEEPFILTERS|ISTEXT|ISSUBTOTAL|ISSELECTEDMEASURE|ISPMT|ISONORAFTER|ISODD|ISO[^\\n]CEILING|ISNUMBER|ISNONTEXT|ISLOGICAL|ISINSCOPE|ISFILTERED|ISEVEN|ISERROR|ISEMPTY|ISCROSSFILTERED|ISBLANK|ISAFTER|IPMT|INTRATE|INTERSECT|INT|IGNORE|IFERROR|IF[^\\n]EAGER|IF|HOUR|HASONEVALUE|HASONEFILTER|HASH|GROUPBY|GEOMEANX|GEOMEAN|GENERATESERIES|GENERATEALL|GENERATE|GCD|FV|FORMAT|FLOOR|FIXED|FIRSTNONBLANKVALUE|FIRSTNONBLANK|FIRSTDATE|FIND|FILTERS|FILTER|FALSE|FACT|EXPON[^\\n]DIST|EXP|EXCEPT|EXACT|EVEN|ERROR|EOMONTH|ENDOFYEAR|ENDOFQUARTER|ENDOFMONTH|EFFECT|EDATE|EARLIEST|EARLIER|DURATION|DOLLARFR|DOLLARDE|DIVIDE|DISTINCTCOUNTNOBLANK|DISTINCTCOUNT|DISTINCT|DISC|DETAILROWS|DEGREES|DDB|DB|DAY|DATEVALUE|DATESYTD|DATESQTD|DATESMTD|DATESINPERIOD|DATESBETWEEN|DATEDIFF|DATEADD|DATE|DATATABLE|CUSTOMDATA|CURRENTGROUP|CURRENCY|CUMPRINC|CUMIPMT|CROSSJOIN|CROSSFILTER|COUPPCD|COUPNUM|COUPNCD|COUPDAYSNC|COUPDAYS|COUPDAYBS|COUNTX|COUNTROWS|COUNTBLANK|COUNTAX|COUNTA|COUNT|COTH|COT|COSH|COS|CONVERT|CONTAINSSTRINGEXACT|CONTAINSSTRING|CONTAINSROW|CONTAINS|CONFIDENCE[^\\n]T|CONFIDENCE[^\\n]NORM|CONCATENATEX|CONCATENATE|COMBINEVALUES|COMBINA|COMBIN|COLUMNSTATISTICS|COALESCE|CLOSINGBALANCEYEAR|CLOSINGBALANCEQUARTER|CLOSINGBALANCEMONTH|CHISQ[^\\n]INV[^\\n]RT|CHISQ[^\\n]INV|CHISQ[^\\n]DIST[^\\n]RT|CHISQ[^\\n]DIST|CEILING|CALENDARAUTO|CALENDAR|CALCULATETABLE|CALCULATE|BLANK|BETA[^\\n]INV|BETA[^\\n]DIST|AVERAGEX|AVERAGEA|AVERAGE|ATANH|ATAN|ASINH|ASIN|APPROXIMATEDISTINCTCOUNT|AND|AMORLINC|AMORDEGRC|ALLSELECTED|ALLNOBLANKROW|ALLEXCEPT|ALLCROSSFILTERED|ALL|ADDMISSINGITEMS|ADDCOLUMNS|ACOTH|ACOT|ACOSH|ACOS|ACCRINTM|ACCRINT|ABS)\\b","dgv",{"lazyCompile":true}),name:"variable.language.dax"},{match:/\b(DEFINE|EVALUATE|ORDER BY|RETURN|VAR)\b/dgv,name:"keyword.control.dax"},{match:/\{|\}/dgv,name:"keyword.array.constructor.dax"},{match:/>|<|>=|<=|=(?!==)/dgv,name:"keyword.operator.comparison.dax"},{match:/&&|IN|NOT|\|\|/dgv,name:"keyword.operator.logical.dax"},{match:/\+|-|\*|\//dgv,name:"keyword.arithmetic.operator.dax"},{begin:/\[/dgv,end:/\]/dgv,name:"support.function.dax"},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.dax"},{begin:/'/dgv,end:/'/dgv,name:"support.class.dax"}]},labels:{patterns:[{captures:{"1":{name:"punctuation.separator.label.dax"},"2":{name:"entity.name.label.dax"}},match:/(^([^\n]*?)\p{space}*(:=|!=))/dgv}]},metas:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"meta.brace.round.dax"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.dax"}}}]},numbers:{match:/-?(?:0|[1-9]\p{Nd}*)(?:(?:\.\p{Nd}+)?(?:[eE][\+\-]?\p{Nd}+)?)?/dgv,name:"constant.numeric.dax"},parameters:{patterns:[{begin:/\b(?<!\.)(VAR)\b(?<!\.)\b/dgv,beginCaptures:{"1":{name:"keyword.control.dax"},"2":{name:"variable.other.readwrite.dax"}},end:/=/dgv,endCaptures:{"0":{name:"keyword.operator.assignment.dax"}},name:"meta.function.definition.parameters.dax",patterns:[{match:/=/dgv,name:"keyword.control.dax"}]},{match:/[_\$\p{Alpha}][_\$\p{Alpha}\p{Nd}]*/dgv,name:"variable.other.constant.dax"}]},strings:{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.dax",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.dax"}]}},scopeName:"source.dax",embeddedLangs:undefined,aliases:undefined})
4
4
 
5
5
  export default [
6
6
  lang
package/dist/diff.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze({displayName:"Diff",name:"diff",patterns:[{captures:{"1":{name:"punctuation.definition.separator.diff"}},match:/^((\*{15})|(={67})|(-{3}))(?=\n?$)\n?/dgv,name:"meta.separator.diff"},{match:/^\p{Nd}+(,\p{Nd}+)*(a|d|c)\p{Nd}+(,\p{Nd}+)*(?=\n?$)\n?/dgv,name:"meta.diff.range.normal"},{captures:{"1":{name:"punctuation.definition.range.diff"},"2":{name:"meta.toc-list.line-number.diff"},"3":{name:"punctuation.definition.range.diff"}},match:/^(@@)\p{space}*([^\n]+?)\p{space}*(@@)((?=\n?$)\n?)?/dgv,name:"meta.diff.range.unified"},{captures:{"3":{name:"punctuation.definition.range.diff"},"4":{name:"punctuation.definition.range.diff"},"6":{name:"punctuation.definition.range.diff"},"7":{name:"punctuation.definition.range.diff"}},match:/^(((-{3}) [^\n]+ (-{4}))|((\*{3}) [^\n]+ (\*{4})))(?=\n?$)\n?/dgv,name:"meta.diff.range.context"},{match:/^diff --git a\/[^\n]*(?=\n?$)\n?/dgv,name:"meta.diff.header.git"},{match:/^diff (-|\P{space}+\p{space}+\P{space}+)[^\n]*(?=\n?$)\n?/dgv,name:"meta.diff.header.command"},{captures:{"4":{name:"punctuation.definition.from-file.diff"},"6":{name:"punctuation.definition.from-file.diff"},"7":{name:"punctuation.definition.from-file.diff"}},match:/(^(((-{3}) [^\n]+)|((\*{3}) [^\n]+))(?=\n?$)\n?|^(={4}) [^\n]+(?= - ))/dgv,name:"meta.diff.header.from-file"},{captures:{"2":{name:"punctuation.definition.to-file.diff"},"3":{name:"punctuation.definition.to-file.diff"},"4":{name:"punctuation.definition.to-file.diff"}},match:/(^(\+{3}) [^\n]+(?=\n?$)\n?| (-) [^\n]* (={4})(?=\n?$)\n?)/dgv,name:"meta.diff.header.to-file"},{captures:{"3":{name:"punctuation.definition.inserted.diff"},"6":{name:"punctuation.definition.inserted.diff"}},match:/^(((>)( [^\n]*)?)|((\+)[^\n]*))(?=\n?$)\n?/dgv,name:"markup.inserted.diff"},{captures:{"1":{name:"punctuation.definition.changed.diff"}},match:/^(!)[^\n]*(?=\n?$)\n?/dgv,name:"markup.changed.diff"},{captures:{"3":{name:"punctuation.definition.deleted.diff"},"6":{name:"punctuation.definition.deleted.diff"}},match:/^(((<)( [^\n]*)?)|((-)[^\n]*))(?=\n?$)\n?/dgv,name:"markup.deleted.diff"},{begin:/^(#)/dgv,captures:{"1":{name:"punctuation.definition.comment.diff"}},comment:"Git produces unified diffs with embedded comments\"",end:/\n/dgv,name:"comment.line.number-sign.diff"},{match:/^index [0-9a-f]{7,40}\.\.[0-9a-f]{7,40}[^\n]*(?=\n?$)\n?/dgv,name:"meta.diff.index.git"},{captures:{"1":{name:"punctuation.separator.key-value.diff"},"2":{name:"meta.toc-list.file-name.diff"}},match:/^Index(:) ([^\n]+)(?=\n?$)\n?/dgv,name:"meta.diff.index"},{match:/^Only in [^\n]*: [^\n]*(?=\n?$)\n?/dgv,name:"meta.diff.only-in"}],scopeName:"source.diff",embeddedLangs:undefined,aliases:undefined})
1
+ const lang = Object.freeze({displayName:"Diff",name:"diff",patterns:[{captures:{"1":{name:"punctuation.definition.separator.diff"}},match:/^((\*{15})|(={67})|(-{3}))(?=\n?$)\n?/dgv,name:"meta.separator.diff"},{match:/^\p{Nd}+(,\p{Nd}+)*(a|d|c)\p{Nd}+(,\p{Nd}+)*(?=\n?$)\n?/dgv,name:"meta.diff.range.normal"},{captures:{"1":{name:"punctuation.definition.range.diff"},"2":{name:"meta.toc-list.line-number.diff"},"3":{name:"punctuation.definition.range.diff"}},match:/^(@@)\p{space}*([^\n]+?)\p{space}*(@@)((?=\n?$)\n?)?/dgv,name:"meta.diff.range.unified"},{captures:{"3":{name:"punctuation.definition.range.diff"},"4":{name:"punctuation.definition.range.diff"},"6":{name:"punctuation.definition.range.diff"},"7":{name:"punctuation.definition.range.diff"}},match:/^(((-{3}) [^\n]+ (-{4}))|((\*{3}) [^\n]+ (\*{4})))(?=\n?$)\n?/dgv,name:"meta.diff.range.context"},{match:/^diff --git a\/[^\n]*(?=\n?$)\n?/dgv,name:"meta.diff.header.git"},{match:/^diff (-|\P{space}+\p{space}+\P{space}+)[^\n]*(?=\n?$)\n?/dgv,name:"meta.diff.header.command"},{captures:{"4":{name:"punctuation.definition.from-file.diff"},"6":{name:"punctuation.definition.from-file.diff"},"7":{name:"punctuation.definition.from-file.diff"}},match:/(^(((-{3}) [^\n]+)|((\*{3}) [^\n]+))(?=\n?$)\n?|^(={4}) [^\n]+(?= - ))/dgv,name:"meta.diff.header.from-file"},{captures:{"2":{name:"punctuation.definition.to-file.diff"},"3":{name:"punctuation.definition.to-file.diff"},"4":{name:"punctuation.definition.to-file.diff"}},match:/(^(\+{3}) [^\n]+(?=\n?$)\n?| (-) [^\n]* (={4})(?=\n?$)\n?)/dgv,name:"meta.diff.header.to-file"},{captures:{"3":{name:"punctuation.definition.inserted.diff"},"6":{name:"punctuation.definition.inserted.diff"}},match:/^(((>)( [^\n]*)?)|((\+)[^\n]*))(?=\n?$)\n?/dgv,name:"markup.inserted.diff"},{captures:{"1":{name:"punctuation.definition.changed.diff"}},match:/^(!)[^\n]*(?=\n?$)\n?/dgv,name:"markup.changed.diff"},{captures:{"3":{name:"punctuation.definition.deleted.diff"},"6":{name:"punctuation.definition.deleted.diff"}},match:/^(((<)( [^\n]*)?)|((-)[^\n]*))(?=\n?$)\n?/dgv,name:"markup.deleted.diff"},{begin:/^(#)/dgv,captures:{"1":{name:"punctuation.definition.comment.diff"}},end:/\n/dgv,name:"comment.line.number-sign.diff"},{match:/^index [0-9a-f]{7,40}\.\.[0-9a-f]{7,40}[^\n]*(?=\n?$)\n?/dgv,name:"meta.diff.index.git"},{captures:{"1":{name:"punctuation.separator.key-value.diff"},"2":{name:"meta.toc-list.file-name.diff"}},match:/^Index(:) ([^\n]+)(?=\n?$)\n?/dgv,name:"meta.diff.index"},{match:/^Only in [^\n]*: [^\n]*(?=\n?$)\n?/dgv,name:"meta.diff.only-in"}],scopeName:"source.diff",embeddedLangs:undefined,aliases:undefined})
2
2
 
3
3
  export default [
4
4
  lang
package/dist/docker.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze({displayName:"Dockerfile",name:"docker",patterns:[{captures:{"1":{name:"keyword.other.special-method.dockerfile"},"2":{name:"keyword.other.special-method.dockerfile"}},match:/^\p{space}*\b(FROM)\b[^\n]*?\b(AS)\b/dgiv},{captures:{"1":{name:"keyword.control.dockerfile"},"2":{name:"keyword.other.special-method.dockerfile"}},match:/^\p{space}*(?:(ONBUILD)\p{space}+)?(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)\p{space}/dgiv},{captures:{"1":{name:"keyword.operator.dockerfile"},"2":{name:"keyword.other.special-method.dockerfile"}},match:/^\p{space}*(?:(ONBUILD)\p{space}+)?(CMD|ENTRYPOINT)\p{space}/dgiv},{include:"#string-character-escape"},{begin:/"/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.dockerfile"}},end:/"/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.dockerfile"}},name:"string.quoted.double.dockerfile",patterns:[{include:"#string-character-escape"}]},{begin:/'/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.dockerfile"}},end:/'/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.dockerfile"}},name:"string.quoted.single.dockerfile",patterns:[{include:"#string-character-escape"}]},{captures:{"1":{name:"punctuation.whitespace.comment.leading.dockerfile"},"2":{name:"comment.line.number-sign.dockerfile"},"3":{name:"punctuation.definition.comment.dockerfile"}},comment:"comment.line",match:/^(\p{space}*)((#)[^\n]*(?=\n?$)\n?)/dgv}],repository:{"string-character-escape":{match:/\\[^\n]/dgv,name:"constant.character.escaped.dockerfile"}},scopeName:"source.dockerfile",embeddedLangs:undefined,aliases:["dockerfile"]})
1
+ const lang = Object.freeze({displayName:"Dockerfile",name:"docker",patterns:[{captures:{"1":{name:"keyword.other.special-method.dockerfile"},"2":{name:"keyword.other.special-method.dockerfile"}},match:/^\p{space}*\b(FROM)\b[^\n]*?\b(AS)\b/dgiv},{captures:{"1":{name:"keyword.control.dockerfile"},"2":{name:"keyword.other.special-method.dockerfile"}},match:/^\p{space}*(?:(ONBUILD)\p{space}+)?(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)\p{space}/dgiv},{captures:{"1":{name:"keyword.operator.dockerfile"},"2":{name:"keyword.other.special-method.dockerfile"}},match:/^\p{space}*(?:(ONBUILD)\p{space}+)?(CMD|ENTRYPOINT)\p{space}/dgiv},{include:"#string-character-escape"},{begin:/"/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.dockerfile"}},end:/"/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.dockerfile"}},name:"string.quoted.double.dockerfile",patterns:[{include:"#string-character-escape"}]},{begin:/'/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.dockerfile"}},end:/'/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.dockerfile"}},name:"string.quoted.single.dockerfile",patterns:[{include:"#string-character-escape"}]},{captures:{"1":{name:"punctuation.whitespace.comment.leading.dockerfile"},"2":{name:"comment.line.number-sign.dockerfile"},"3":{name:"punctuation.definition.comment.dockerfile"}},match:/^(\p{space}*)((#)[^\n]*(?=\n?$)\n?)/dgv}],repository:{"string-character-escape":{match:/\\[^\n]/dgv,name:"constant.character.escaped.dockerfile"}},scopeName:"source.dockerfile",embeddedLangs:undefined,aliases:["dockerfile"]})
2
2
 
3
3
  export default [
4
4
  lang
package/dist/dotenv.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze({displayName:"dotEnv",name:"dotenv",patterns:[{captures:{"1":{patterns:[{include:"#line-comment"}]}},comment:"Full Line Comment",match:/^\p{space}?(#[^\n]*(?=\n?$))\n/dgv},{captures:{"1":{patterns:[{include:"#key"}]},"2":{name:"keyword.operator.assignment.dotenv"},"3":{name:"property.value.dotenv",patterns:[{include:"#line-comment"},{include:"#double-quoted-string"},{include:"#single-quoted-string"},{include:"#interpolation"}]}},comment:"ENV entry",match:/^\p{space}?([^\n]*?)\p{space}?(=)([^\n]*)(?=\n?$)/dgv}],repository:{"double-quoted-string":{captures:{"1":{patterns:[{include:"#interpolation"},{include:"#escape-characters"}]}},comment:"Double Quoted String",match:/"([^\n]*)"/dgv,name:"string.quoted.double.dotenv"},"escape-characters":{comment:"Escape characters",match:/\\[nrtfb"'\\]|\\u[0123456789ABCDEF]{4}/dgv,name:"constant.character.escape.dotenv"},interpolation:{captures:{"1":{name:"keyword.interpolation.begin.dotenv"},"2":{name:"variable.interpolation.dotenv"},"3":{name:"keyword.interpolation.end.dotenv"}},comment:"Interpolation (variable substitution)",match:/(\$\{)([^\n]*)(\})/dgv},key:{captures:{"1":{name:"keyword.key.export.dotenv"},"2":{name:"variable.key.dotenv",patterns:[{include:"#variable"}]}},comment:"Key",match:/(export\p{space})?([^\n]*)/dgv},"line-comment":{comment:"Comment",match:/#[^\n]*(?=\n?$)/dgv,name:"comment.line.dotenv"},"single-quoted-string":{comment:"Single Quoted String",match:/'([^\n]*)'/dgv,name:"string.quoted.single.dotenv"},variable:{comment:"env variable",match:/[a-zA-Z_]+[a-zA-Z0-9_]*/dgv}},scopeName:"source.dotenv",embeddedLangs:undefined,aliases:undefined})
1
+ const lang = Object.freeze({displayName:"dotEnv",name:"dotenv",patterns:[{captures:{"1":{patterns:[{include:"#line-comment"}]}},match:/^\p{space}?(#[^\n]*(?=\n?$))\n/dgv},{captures:{"1":{patterns:[{include:"#key"}]},"2":{name:"keyword.operator.assignment.dotenv"},"3":{name:"property.value.dotenv",patterns:[{include:"#line-comment"},{include:"#double-quoted-string"},{include:"#single-quoted-string"},{include:"#interpolation"}]}},match:/^\p{space}?([^\n]*?)\p{space}?(=)([^\n]*)(?=\n?$)/dgv}],repository:{"double-quoted-string":{captures:{"1":{patterns:[{include:"#interpolation"},{include:"#escape-characters"}]}},match:/"([^\n]*)"/dgv,name:"string.quoted.double.dotenv"},"escape-characters":{match:/\\[nrtfb"'\\]|\\u[0123456789ABCDEF]{4}/dgv,name:"constant.character.escape.dotenv"},interpolation:{captures:{"1":{name:"keyword.interpolation.begin.dotenv"},"2":{name:"variable.interpolation.dotenv"},"3":{name:"keyword.interpolation.end.dotenv"}},match:/(\$\{)([^\n]*)(\})/dgv},key:{captures:{"1":{name:"keyword.key.export.dotenv"},"2":{name:"variable.key.dotenv",patterns:[{include:"#variable"}]}},match:/(export\p{space})?([^\n]*)/dgv},"line-comment":{match:/#[^\n]*(?=\n?$)/dgv,name:"comment.line.dotenv"},"single-quoted-string":{match:/'([^\n]*)'/dgv,name:"string.quoted.single.dotenv"},variable:{match:/[a-zA-Z_]+[a-zA-Z0-9_]*/dgv}},scopeName:"source.dotenv",embeddedLangs:undefined,aliases:undefined})
2
2
 
3
3
  export default [
4
4
  lang
@@ -1,6 +1,6 @@
1
1
  import { EmulatedRegExp } from 'oniguruma-to-es'
2
2
 
3
- const lang = Object.freeze({displayName:"Dream Maker",fileTypes:["dm","dme"],foldingStartMarker:/\/\*\*(?!\*)|^(?![^\{]*?\/\/|[^\{]*?\/\*(?![^\n]*?\*\/[^\n]*?\{))[^\n]*?\{\p{space}*((?=\n?$)|\/\/|\/\*(?![^\n]*?\*\/[^\n]*\P{space}))/dgv,foldingStopMarker:/(?<!\*)\*\*\/|^\p{space}*\}/dgv,name:"dream-maker",patterns:[{include:"#preprocessor-rule-enabled"},{include:"#preprocessor-rule-disabled"},{include:"#preprocessor-rule-other"},{include:"#comments"},{captures:{"1":{name:"storage.type.dm"},"2":{name:"storage.modifier.dm"},"3":{name:"storage.type.dm"},"5":{name:"variable.other.dm"}},match:/(var)[\/ ](?:(static|global|tmp|const)\/)?(?:(datum|atom(?:\/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\/)?(?:([a-zA-Z0-9_\-\$]*)\/)*([A-Za-z0-9_\$]*)\b/dgv,name:"meta.initialization.dm"},{match:/\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b/dgv,name:"constant.numeric.dm"},{match:/\b(sleep|spawn|break|continue|do|else|for|goto|if|return|switch|while)\b/dgv,name:"keyword.control.dm"},{match:/\b(del|new)\b/dgv,name:"keyword.other.dm"},{match:/\b(proc|verb|datum|atom(\/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\b/dgv,name:"storage.type.dm"},{match:/\b(as|const|global|set|static|tmp)\b/dgv,name:"storage.modifier.dm"},{match:/\b(usr|world|src|args)\b/dgv,name:"variable.language.dm"},{match:/(\?|(>|<)(=)?|\.|:|\/(=)?|~|\+(\+|=)?|-(-|=)?|\*(\*|=)?|%|>>|<<|=(=)?|!(=)?|<>|&|&&|\^|\||\|\||\bto\b|\bin\b|\bstep\b)/dgv,name:"keyword.operator.dm"},{match:/\b([A-Z_][A-Z_0-9]*)\b/dgv,name:"constant.language.dm"},{match:/\bnull\b/dgv,name:"constant.language.dm"},{begin:/\{"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.dm"}},end:/"\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.dm"}},name:"string.quoted.triple.dm",patterns:[{include:"#string_escaped_char"},{include:"#string_embedded_expression"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.dm"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.dm"}},name:"string.quoted.double.dm",patterns:[{include:"#string_escaped_char"},{include:"#string_embedded_expression"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.dm"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.dm"}},name:"string.quoted.single.dm",patterns:[{include:"#string_escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("^\\p{space}*((#)\\p{space}*define)\\p{space}+((?<id>[a-zA-Z_][a-zA-Z0-9_]*))(\\()(\\p{space}*([a-zA-Z_][a-zA-Z0-9_]*)\\p{space}*((,)\\p{space}*([a-zA-Z_][a-zA-Z0-9_]*)\\p{space}*)*(?:\\.\\.\\.)?)(\\))","dgv",{"hiddenCaptures":[7,10],"transfers":[[4,[7,10]]]}),beginCaptures:{"1":{name:"keyword.control.directive.define.dm"},"2":{name:"punctuation.definition.directive.dm"},"3":{name:"entity.name.function.preprocessor.dm"},"5":{name:"punctuation.definition.parameters.begin.dm"},"6":{name:"variable.parameter.preprocessor.dm"},"8":{name:"punctuation.separator.parameters.dm"},"9":{name:"punctuation.definition.parameters.end.dm"}},end:/(?=(?:\/\/|\/\*))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.macro.dm",patterns:[{include:"$base"}]},{begin:/^\p{space}*((#)\p{space}*define)\p{space}+((?<id>[a-zA-Z_][a-zA-Z0-9_]*))/dgv,beginCaptures:{"1":{name:"keyword.control.directive.define.dm"},"2":{name:"punctuation.definition.directive.dm"},"3":{name:"variable.other.preprocessor.dm"}},end:/(?=(?:\/\/|\/\*))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.macro.dm",patterns:[{include:"$base"}]},{begin:/^\p{space}*(#\p{space}*(error|warn))\b/dgv,captures:{"1":{name:"keyword.control.import.error.dm"}},end:/(?=\n?$)/dgv,name:"meta.preprocessor.diagnostic.dm",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\\\\\p{space}*\\n))\\1)","dgv",{"hiddenCaptures":[1]}),name:"punctuation.separator.continuation.dm"}]},{begin:/^\p{space}*(?:((#)\p{space}*(?:elif|else|if|ifdef|ifndef))|((#)\p{space}*(undef|include)))\b/dgv,beginCaptures:{"1":{name:"keyword.control.directive.conditional.dm"},"2":{name:"punctuation.definition.directive.dm"},"3":{name:"keyword.control.directive.$5.dm"},"4":{name:"punctuation.definition.directive.dm"}},end:/(?=(?:\/\/|\/\*))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.dm",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\\\\\p{space}*\\n))\\1)","dgv",{"hiddenCaptures":[1]}),name:"punctuation.separator.continuation.dm"}]},{include:"#block"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?:(?=\\p{space})(?<!else|new|return)(?<=[\\p{L}\\p{M}\\p{N}\\p{Pc}])|(?=\\p{space}*[A-Za-z_])(?<!&&)(?<=[\\*\\&\\>])))(\\p{space}*)(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\p{space}*\\()((?:(?=((?:[A-Za-z_](?:(?=([A-Za-z0-9_]*))\\5)|::)+))\\4)|(?<=operator)(?:[\\-\\*\\&\\<\\>\\=\\+\\!]+|\\(\\)|\\[\\]))\\p{space}*(?=\\()","dgv",{"hiddenCaptures":[4,5]}),beginCaptures:{"1":{name:"punctuation.whitespace.function.leading.dm"},"3":{name:"entity.name.function.dm"},"4":{name:"punctuation.definition.parameters.dm"}},end:/(?<=\})|(?=#)|(;)?/dgv,name:"meta.function.dm",patterns:[{include:"#comments"},{include:"#parens"},{match:/\bconst\b/dgv,name:"storage.modifier.dm"},{include:"#block"}]}],repository:{access:{match:/\.[a-zA-Z_][a-zA-Z_0-9]*\b(?!\p{space}*\()/dgv,name:"variable.other.dot-access.dm"},block:{begin:/\{/dgv,end:/\}/dgv,name:"meta.block.dm",patterns:[{include:"#block_innards"}]},block_innards:{patterns:[{include:"#preprocessor-rule-enabled-block"},{include:"#preprocessor-rule-disabled-block"},{include:"#preprocessor-rule-other-block"},{include:"#access"},{captures:{"1":{name:"punctuation.whitespace.function-call.leading.dm"},"2":{name:"support.function.any-method.dm"},"3":{name:"punctuation.definition.parameters.dm"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=\\p{space})(?:(?<=else|new|return)|(?<![\\p{L}\\p{M}\\p{N}\\p{Pc}]))(\\p{space}+))?(\\b(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\p{space}*\\()(?:(?=((?:(?!NS)[A-Za-z_](?:(?=([A-Za-z0-9_]*))\\5)\\b|::)+))\\4))\\p{space}*(\\()","dgv",{"hiddenCaptures":[4,5]}),name:"meta.function-call.dm"},{include:"#block"},{include:"$base"}]},comments:{patterns:[{captures:{"1":{name:"meta.toc-list.banner.block.dm"}},match:/^\/\* =(\p{space}*[^\n]*?)\p{space}*= \*\/(?=\n?$)\n?/dgv,name:"comment.block.dm"},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.dm"}},end:/\*\//dgv,name:"comment.block.dm",patterns:[{include:"#comments"}]},{match:/\*\/[^\n]*\n/dgv,name:"invalid.illegal.stray-comment-end.dm"},{captures:{"1":{name:"meta.toc-list.banner.line.dm"}},match:/^\/\/ =(\p{space}*[^\n]*?)\p{space}*=\p{space}*(?=\n?$)\n?/dgv,name:"comment.line.banner.dm"},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.dm"}},end:/(?=\n?$)\n?/dgv,name:"comment.line.double-slash.dm",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\\\\\p{space}*\\n))\\1)","dgv",{"hiddenCaptures":[1]}),name:"punctuation.separator.continuation.dm"}]}]},disabled:{begin:/^\p{space}*#\p{space}*if(n?def)?\b[^\n]*(?=\n?$)/dgv,comment:"eat nested preprocessor if(def)s",end:/^\p{space}*#\p{space}*endif\b[^\n]*(?=\n?$)/dgv,patterns:[{include:"#disabled"}]},parens:{begin:/\(/dgv,end:/\)/dgv,name:"meta.parens.dm",patterns:[{include:"$base"}]},"preprocessor-rule-disabled":{begin:/^\p{space}*(#(if)\p{space}+(0)\b)[^\n]*/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.if.dm"},"3":{name:"constant.numeric.preprocessor.dm"}},end:/^\p{space}*(#\p{space}*(endif)\b)/dgv,patterns:[{begin:/^\p{space}*(#\p{space}*(else)\b)/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.else.dm"}},end:/(?=^\p{space}*#\p{space}*endif\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"$base"}]},{begin:"",end:/(?=^\p{space}*#\p{space}*(else|endif)\b[^\n]*(?=\n?$))/dgv,name:"comment.block.preprocessor.if-branch",patterns:[{include:"#disabled"}]}]},"preprocessor-rule-disabled-block":{begin:/^\p{space}*(#(if)\p{space}+(0)\b)[^\n]*/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.if.dm"},"3":{name:"constant.numeric.preprocessor.dm"}},end:/^\p{space}*(#\p{space}*(endif)\b)/dgv,patterns:[{begin:/^\p{space}*(#\p{space}*(else)\b)/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.else.dm"}},end:/(?=^\p{space}*#\p{space}*endif\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"#block_innards"}]},{begin:"",end:/(?=^\p{space}*#\p{space}*(else|endif)\b[^\n]*(?=\n?$))/dgv,name:"comment.block.preprocessor.if-branch.in-block",patterns:[{include:"#disabled"}]}]},"preprocessor-rule-enabled":{begin:/^\p{space}*(#(if)\p{space}+(0*1)\b)/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.if.dm"},"3":{name:"constant.numeric.preprocessor.dm"}},end:/^\p{space}*(#\p{space}*(endif)\b)/dgv,patterns:[{begin:/^\p{space}*(#\p{space}*(else)\b)[^\n]*/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.else.dm"}},contentName:"comment.block.preprocessor.else-branch",end:/(?=^\p{space}*#\p{space}*endif\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"#disabled"}]},{begin:"",end:/(?=^\p{space}*#\p{space}*(else|endif)\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"$base"}]}]},"preprocessor-rule-enabled-block":{begin:/^\p{space}*(#(if)\p{space}+(0*1)\b)/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.if.dm"},"3":{name:"constant.numeric.preprocessor.dm"}},end:/^\p{space}*(#\p{space}*(endif)\b)/dgv,patterns:[{begin:/^\p{space}*(#\p{space}*(else)\b)[^\n]*/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.else.dm"}},contentName:"comment.block.preprocessor.else-branch.in-block",end:/(?=^\p{space}*#\p{space}*endif\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"#disabled"}]},{begin:"",end:/(?=^\p{space}*#\p{space}*(else|endif)\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"#block_innards"}]}]},"preprocessor-rule-other":{begin:/^\p{space}*((#\p{space}*(if(n?def)?))\b[^\n]*?(?:(?=(?:\/\/|\/\*))|(?=\n?$)))/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.dm"}},end:/^\p{space}*((#\p{space}*(endif))\b)[^\n]*(?=\n?$)/dgv,patterns:[{include:"$base"}]},"preprocessor-rule-other-block":{begin:/^\p{space}*(#\p{space}*(if(n?def)?)\b[^\n]*?(?:(?=(?:\/\/|\/\*))|(?=\n?$)))/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.dm"}},end:/^\p{space}*(#\p{space}*(endif)\b)[^\n]*(?=\n?$)/dgv,patterns:[{include:"#block_innards"}]},string_embedded_expression:{patterns:[{begin:/(?<!\\)\[/dgv,end:/\]/dgv,name:"string.interpolated.dm",patterns:[{include:"$self"}]}]},string_escaped_char:{patterns:[{match:/\\(h(?:(?:er|im)self|ers|im)|([tTsS]?he)|He|[Hh]is|[aA]n?|(?:im)?proper|\.\.\.|(?:icon|ref|[Rr]oman)(?=\[)|[s\<\>"n\n \[])/dgv,name:"constant.character.escape.dm"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unknown-escape.dm"}]}},scopeName:"source.dm",embeddedLangs:undefined,aliases:undefined})
3
+ const lang = Object.freeze({displayName:"Dream Maker",fileTypes:["dm","dme"],foldingStartMarker:/\/\*\*(?!\*)|^(?![^\{]*?\/\/|[^\{]*?\/\*(?![^\n]*?\*\/[^\n]*?\{))[^\n]*?\{\p{space}*((?=\n?$)|\/\/|\/\*(?![^\n]*?\*\/[^\n]*\P{space}))/dgv,foldingStopMarker:/(?<!\*)\*\*\/|^\p{space}*\}/dgv,name:"dream-maker",patterns:[{include:"#preprocessor-rule-enabled"},{include:"#preprocessor-rule-disabled"},{include:"#preprocessor-rule-other"},{include:"#comments"},{captures:{"1":{name:"storage.type.dm"},"2":{name:"storage.modifier.dm"},"3":{name:"storage.type.dm"},"5":{name:"variable.other.dm"}},match:/(var)[\/ ](?:(static|global|tmp|const)\/)?(?:(datum|atom(?:\/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\/)?(?:([a-zA-Z0-9_\-\$]*)\/)*([A-Za-z0-9_\$]*)\b/dgv,name:"meta.initialization.dm"},{match:/\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b/dgv,name:"constant.numeric.dm"},{match:/\b(sleep|spawn|break|continue|do|else|for|goto|if|return|switch|while)\b/dgv,name:"keyword.control.dm"},{match:/\b(del|new)\b/dgv,name:"keyword.other.dm"},{match:/\b(proc|verb|datum|atom(\/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\b/dgv,name:"storage.type.dm"},{match:/\b(as|const|global|set|static|tmp)\b/dgv,name:"storage.modifier.dm"},{match:/\b(usr|world|src|args)\b/dgv,name:"variable.language.dm"},{match:/(\?|(>|<)(=)?|\.|:|\/(=)?|~|\+(\+|=)?|-(-|=)?|\*(\*|=)?|%|>>|<<|=(=)?|!(=)?|<>|&|&&|\^|\||\|\||\bto\b|\bin\b|\bstep\b)/dgv,name:"keyword.operator.dm"},{match:/\b([A-Z_][A-Z_0-9]*)\b/dgv,name:"constant.language.dm"},{match:/\bnull\b/dgv,name:"constant.language.dm"},{begin:/\{"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.dm"}},end:/"\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.dm"}},name:"string.quoted.triple.dm",patterns:[{include:"#string_escaped_char"},{include:"#string_embedded_expression"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.dm"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.dm"}},name:"string.quoted.double.dm",patterns:[{include:"#string_escaped_char"},{include:"#string_embedded_expression"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.dm"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.dm"}},name:"string.quoted.single.dm",patterns:[{include:"#string_escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("^\\p{space}*((#)\\p{space}*define)\\p{space}+((?<id>[a-zA-Z_][a-zA-Z0-9_]*))(\\()(\\p{space}*([a-zA-Z_][a-zA-Z0-9_]*)\\p{space}*((,)\\p{space}*([a-zA-Z_][a-zA-Z0-9_]*)\\p{space}*)*(?:\\.\\.\\.)?)(\\))","dgv",{"hiddenCaptures":[7,10],"transfers":[[4,[7,10]]]}),beginCaptures:{"1":{name:"keyword.control.directive.define.dm"},"2":{name:"punctuation.definition.directive.dm"},"3":{name:"entity.name.function.preprocessor.dm"},"5":{name:"punctuation.definition.parameters.begin.dm"},"6":{name:"variable.parameter.preprocessor.dm"},"8":{name:"punctuation.separator.parameters.dm"},"9":{name:"punctuation.definition.parameters.end.dm"}},end:/(?=(?:\/\/|\/\*))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.macro.dm",patterns:[{include:"$base"}]},{begin:/^\p{space}*((#)\p{space}*define)\p{space}+((?<id>[a-zA-Z_][a-zA-Z0-9_]*))/dgv,beginCaptures:{"1":{name:"keyword.control.directive.define.dm"},"2":{name:"punctuation.definition.directive.dm"},"3":{name:"variable.other.preprocessor.dm"}},end:/(?=(?:\/\/|\/\*))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.macro.dm",patterns:[{include:"$base"}]},{begin:/^\p{space}*(#\p{space}*(error|warn))\b/dgv,captures:{"1":{name:"keyword.control.import.error.dm"}},end:/(?=\n?$)/dgv,name:"meta.preprocessor.diagnostic.dm",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\\\\\p{space}*\\n))\\1)","dgv",{"hiddenCaptures":[1]}),name:"punctuation.separator.continuation.dm"}]},{begin:/^\p{space}*(?:((#)\p{space}*(?:elif|else|if|ifdef|ifndef))|((#)\p{space}*(undef|include)))\b/dgv,beginCaptures:{"1":{name:"keyword.control.directive.conditional.dm"},"2":{name:"punctuation.definition.directive.dm"},"3":{name:"keyword.control.directive.$5.dm"},"4":{name:"punctuation.definition.directive.dm"}},end:/(?=(?:\/\/|\/\*))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.dm",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\\\\\p{space}*\\n))\\1)","dgv",{"hiddenCaptures":[1]}),name:"punctuation.separator.continuation.dm"}]},{include:"#block"},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:^|(?:(?=\\p{space})(?<!else|new|return)(?<=[\\p{L}\\p{M}\\p{N}\\p{Pc}])|(?=\\p{space}*[A-Za-z_])(?<!&&)(?<=[\\*\\&\\>])))(\\p{space}*)(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\p{space}*\\()((?:(?=((?:[A-Za-z_](?:(?=([A-Za-z0-9_]*))\\5)|::)+))\\4)|(?<=operator)(?:[\\-\\*\\&\\<\\>\\=\\+\\!]+|\\(\\)|\\[\\]))\\p{space}*(?=\\()","dgv",{"hiddenCaptures":[4,5]}),beginCaptures:{"1":{name:"punctuation.whitespace.function.leading.dm"},"3":{name:"entity.name.function.dm"},"4":{name:"punctuation.definition.parameters.dm"}},end:/(?<=\})|(?=#)|(;)?/dgv,name:"meta.function.dm",patterns:[{include:"#comments"},{include:"#parens"},{match:/\bconst\b/dgv,name:"storage.modifier.dm"},{include:"#block"}]}],repository:{access:{match:/\.[a-zA-Z_][a-zA-Z_0-9]*\b(?!\p{space}*\()/dgv,name:"variable.other.dot-access.dm"},block:{begin:/\{/dgv,end:/\}/dgv,name:"meta.block.dm",patterns:[{include:"#block_innards"}]},block_innards:{patterns:[{include:"#preprocessor-rule-enabled-block"},{include:"#preprocessor-rule-disabled-block"},{include:"#preprocessor-rule-other-block"},{include:"#access"},{captures:{"1":{name:"punctuation.whitespace.function-call.leading.dm"},"2":{name:"support.function.any-method.dm"},"3":{name:"punctuation.definition.parameters.dm"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=\\p{space})(?:(?<=else|new|return)|(?<![\\p{L}\\p{M}\\p{N}\\p{Pc}]))(\\p{space}+))?(\\b(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\p{space}*\\()(?:(?=((?:(?!NS)[A-Za-z_](?:(?=([A-Za-z0-9_]*))\\5)\\b|::)+))\\4))\\p{space}*(\\()","dgv",{"hiddenCaptures":[4,5]}),name:"meta.function-call.dm"},{include:"#block"},{include:"$base"}]},comments:{patterns:[{captures:{"1":{name:"meta.toc-list.banner.block.dm"}},match:/^\/\* =(\p{space}*[^\n]*?)\p{space}*= \*\/(?=\n?$)\n?/dgv,name:"comment.block.dm"},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.dm"}},end:/\*\//dgv,name:"comment.block.dm",patterns:[{include:"#comments"}]},{match:/\*\/[^\n]*\n/dgv,name:"invalid.illegal.stray-comment-end.dm"},{captures:{"1":{name:"meta.toc-list.banner.line.dm"}},match:/^\/\/ =(\p{space}*[^\n]*?)\p{space}*=\p{space}*(?=\n?$)\n?/dgv,name:"comment.line.banner.dm"},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.dm"}},end:/(?=\n?$)\n?/dgv,name:"comment.line.double-slash.dm",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\\\\\p{space}*\\n))\\1)","dgv",{"hiddenCaptures":[1]}),name:"punctuation.separator.continuation.dm"}]}]},disabled:{begin:/^\p{space}*#\p{space}*if(n?def)?\b[^\n]*(?=\n?$)/dgv,end:/^\p{space}*#\p{space}*endif\b[^\n]*(?=\n?$)/dgv,patterns:[{include:"#disabled"}]},parens:{begin:/\(/dgv,end:/\)/dgv,name:"meta.parens.dm",patterns:[{include:"$base"}]},"preprocessor-rule-disabled":{begin:/^\p{space}*(#(if)\p{space}+(0)\b)[^\n]*/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.if.dm"},"3":{name:"constant.numeric.preprocessor.dm"}},end:/^\p{space}*(#\p{space}*(endif)\b)/dgv,patterns:[{begin:/^\p{space}*(#\p{space}*(else)\b)/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.else.dm"}},end:/(?=^\p{space}*#\p{space}*endif\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"$base"}]},{begin:"",end:/(?=^\p{space}*#\p{space}*(else|endif)\b[^\n]*(?=\n?$))/dgv,name:"comment.block.preprocessor.if-branch",patterns:[{include:"#disabled"}]}]},"preprocessor-rule-disabled-block":{begin:/^\p{space}*(#(if)\p{space}+(0)\b)[^\n]*/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.if.dm"},"3":{name:"constant.numeric.preprocessor.dm"}},end:/^\p{space}*(#\p{space}*(endif)\b)/dgv,patterns:[{begin:/^\p{space}*(#\p{space}*(else)\b)/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.else.dm"}},end:/(?=^\p{space}*#\p{space}*endif\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"#block_innards"}]},{begin:"",end:/(?=^\p{space}*#\p{space}*(else|endif)\b[^\n]*(?=\n?$))/dgv,name:"comment.block.preprocessor.if-branch.in-block",patterns:[{include:"#disabled"}]}]},"preprocessor-rule-enabled":{begin:/^\p{space}*(#(if)\p{space}+(0*1)\b)/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.if.dm"},"3":{name:"constant.numeric.preprocessor.dm"}},end:/^\p{space}*(#\p{space}*(endif)\b)/dgv,patterns:[{begin:/^\p{space}*(#\p{space}*(else)\b)[^\n]*/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.else.dm"}},contentName:"comment.block.preprocessor.else-branch",end:/(?=^\p{space}*#\p{space}*endif\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"#disabled"}]},{begin:"",end:/(?=^\p{space}*#\p{space}*(else|endif)\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"$base"}]}]},"preprocessor-rule-enabled-block":{begin:/^\p{space}*(#(if)\p{space}+(0*1)\b)/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.if.dm"},"3":{name:"constant.numeric.preprocessor.dm"}},end:/^\p{space}*(#\p{space}*(endif)\b)/dgv,patterns:[{begin:/^\p{space}*(#\p{space}*(else)\b)[^\n]*/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.else.dm"}},contentName:"comment.block.preprocessor.else-branch.in-block",end:/(?=^\p{space}*#\p{space}*endif\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"#disabled"}]},{begin:"",end:/(?=^\p{space}*#\p{space}*(else|endif)\b[^\n]*(?=\n?$))/dgv,patterns:[{include:"#block_innards"}]}]},"preprocessor-rule-other":{begin:/^\p{space}*((#\p{space}*(if(n?def)?))\b[^\n]*?(?:(?=(?:\/\/|\/\*))|(?=\n?$)))/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.dm"}},end:/^\p{space}*((#\p{space}*(endif))\b)[^\n]*(?=\n?$)/dgv,patterns:[{include:"$base"}]},"preprocessor-rule-other-block":{begin:/^\p{space}*(#\p{space}*(if(n?def)?)\b[^\n]*?(?:(?=(?:\/\/|\/\*))|(?=\n?$)))/dgv,captures:{"1":{name:"meta.preprocessor.dm"},"2":{name:"keyword.control.import.dm"}},end:/^\p{space}*(#\p{space}*(endif)\b)[^\n]*(?=\n?$)/dgv,patterns:[{include:"#block_innards"}]},string_embedded_expression:{patterns:[{begin:/(?<!\\)\[/dgv,end:/\]/dgv,name:"string.interpolated.dm",patterns:[{include:"$self"}]}]},string_escaped_char:{patterns:[{match:/\\(h(?:(?:er|im)self|ers|im)|([tTsS]?he)|He|[Hh]is|[aA]n?|(?:im)?proper|\.\.\.|(?:icon|ref|[Rr]oman)(?=\[)|[s\<\>"n\n \[])/dgv,name:"constant.character.escape.dm"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unknown-escape.dm"}]}},scopeName:"source.dm",embeddedLangs:undefined,aliases:undefined})
4
4
 
5
5
  export default [
6
6
  lang
package/dist/elixir.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { EmulatedRegExp } from 'oniguruma-to-es'
2
2
  import html from './html.mjs'
3
3
 
4
- const lang = Object.freeze({displayName:"Elixir",fileTypes:["ex","exs"],firstLineMatch:/^#!\/[^\n]*\belixir/dgv,foldingStartMarker:/(after|else|catch|rescue|->|\{|\[|do)\p{space}*(?=\n?$)/dgv,foldingStopMarker:/^\p{space}*((\}|\]|after|else|catch|rescue)\p{space}*(?=\n?$)|end\b)/dgv,name:"elixir",patterns:[{begin:/\b(fn)\b(?![^\n]*->)/dgv,beginCaptures:{"1":{name:"keyword.control.elixir"}},end:/(?=\n?$)/dgv,patterns:[{include:"#core_syntax"}]},{captures:{"1":{name:"entity.name.type.class.elixir"},"2":{name:"punctuation.separator.method.elixir"},"3":{name:"entity.name.function.elixir"}},match:/([A-Z][\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(\.)\p{space}*([a-z_][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)/dgv},{captures:{"1":{name:"constant.other.symbol.elixir"},"2":{name:"punctuation.separator.method.elixir"},"3":{name:"entity.name.function.elixir"}},match:/(:[\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(\.)\p{space}*([_]?[\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)/dgv},{captures:{"1":{name:"keyword.operator.other.elixir"},"2":{name:"entity.name.function.elixir"}},match:/(\|>)\p{space}*([a-z_][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)/dgv},{match:/\b[a-z_][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?(?=\p{space}*\.?\p{space}*\()/dgv,name:"entity.name.function.elixir"},{begin:/\b(fn)\b(?=[^\n]*->)/dgv,beginCaptures:{"1":{name:"keyword.control.elixir"}},end:/*@__PURE__*/ new EmulatedRegExp("(?:(?=((->)|(when)|(\\))))\\1)","dgv",{"hiddenCaptures":[1]}),endCaptures:{"1":{name:"keyword.operator.other.elixir"},"2":{name:"keyword.control.elixir"},"3":{name:"punctuation.section.function.elixir"}},patterns:[{include:"#core_syntax"}]},{include:"#core_syntax"},{begin:/^(?=[^\n]*->)((?![^"']*("|')[^"']*->)|(?=[^\n]*->[^"']*("|')[^"']*->))((?![^\n]*\([^\)]*->)|(?=[^\(\)]*->)|(?=\p{space}*\([^\n]*\)[^\n]*->))((?![^\n]*\b(fn)\b)|(?=[^\n]*->[^\n]*\bfn\b))/dgv,beginCaptures:{"1":{name:"keyword.control.elixir"}},end:/*@__PURE__*/ new EmulatedRegExp("(?:(?=((->)|(when)|(\\))))\\1)","dgv",{"hiddenCaptures":[1]}),endCaptures:{"1":{name:"keyword.operator.other.elixir"},"2":{name:"keyword.control.elixir"},"3":{name:"punctuation.section.function.elixir"}},patterns:[{include:"#core_syntax"}]}],repository:{core_syntax:{patterns:[{begin:/^\p{space}*(defmodule)\b/dgv,beginCaptures:{"1":{name:"keyword.control.module.elixir"}},end:/\b(do)\b/dgv,endCaptures:{"1":{name:"keyword.control.module.elixir"}},name:"meta.module.elixir",patterns:[{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(?=\.)/dgv,name:"entity.other.inherited-class.elixir"},{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.name.type.class.elixir"}]},{begin:/^\p{space}*(defprotocol)\b/dgv,beginCaptures:{"1":{name:"keyword.control.protocol.elixir"}},end:/\b(do)\b/dgv,endCaptures:{"1":{name:"keyword.control.protocol.elixir"}},name:"meta.protocol_declaration.elixir",patterns:[{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.name.type.protocol.elixir"}]},{begin:/^\p{space}*(defimpl)\b/dgv,beginCaptures:{"1":{name:"keyword.control.protocol.elixir"}},end:/\b(do)\b/dgv,endCaptures:{"1":{name:"keyword.control.protocol.elixir"}},name:"meta.protocol_implementation.elixir",patterns:[{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.name.type.protocol.elixir"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("^\\p{space}*(def|defmacro|defdelegate|defguard)\\p{space}+((?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\4)))\\3)?(?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\?\\!]|=(?!>)))\\6)?|===?|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))((\\()|\\p{space}*)","dgv",{"hiddenCaptures":[3,4,5,6]}),beginCaptures:{"1":{name:"keyword.control.module.elixir"},"2":{name:"entity.name.function.public.elixir"},"4":{name:"punctuation.section.function.elixir"}},end:/(\bdo:)|(\bdo\b)|(?=\p{space}+(def|defn|defmacro|defdelegate|defguard)\b)/dgv,endCaptures:{"1":{name:"constant.other.keywords.elixir"},"2":{name:"keyword.control.module.elixir"}},name:"meta.function.public.elixir",patterns:[{include:"$self"},{begin:/\p{space}(\\\\)/dgv,beginCaptures:{"1":{name:"keyword.operator.other.elixir"}},end:/,|\)|(?=\n?$)/dgv,patterns:[{include:"$self"}]},{match:/\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\b/dgv,name:"keyword.control.elixir"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("^\\p{space}*(defp|defnp|defmacrop|defguardp)\\p{space}+((?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\4)))\\3)?(?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\?\\!]|=(?!>)))\\6)?|===?|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))((\\()|\\p{space}*)","dgv",{"hiddenCaptures":[3,4,5,6]}),beginCaptures:{"1":{name:"keyword.control.module.elixir"},"2":{name:"entity.name.function.private.elixir"},"4":{name:"punctuation.section.function.elixir"}},end:/(\bdo:)|(\bdo\b)|(?=\p{space}+(defp|defmacrop|defguardp)\b)/dgv,endCaptures:{"1":{name:"constant.other.keywords.elixir"},"2":{name:"keyword.control.module.elixir"}},name:"meta.function.private.elixir",patterns:[{include:"$self"},{begin:/\p{space}(\\\\)/dgv,beginCaptures:{"1":{name:"keyword.operator.other.elixir"}},end:/,|\)|(?=\n?$)/dgv,patterns:[{include:"$self"}]},{match:/\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\b/dgv,name:"keyword.control.elixir"}]},{begin:/\p{space}*~L"""/dgv,comment:"Leex Sigil",end:/\p{space}*"""/dgv,name:"sigil.leex",patterns:[{include:"text.elixir"},{include:"text.html.basic"}]},{begin:/\p{space}*~H"""/dgv,comment:"HEEx Sigil",end:/\p{space}*"""/dgv,name:"sigil.heex",patterns:[{include:"text.elixir"},{include:"text.html.basic"}]},{begin:/@(module|type)?doc (~[a-z])?"""/dgv,comment:"@doc with heredocs is treated as documentation",end:/\p{space}*"""/dgv,name:"comment.block.documentation.heredoc",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/@(module|type)?doc ~[A-Z]"""/dgv,comment:"@doc with heredocs is treated as documentation",end:/\p{space}*"""/dgv,name:"comment.block.documentation.heredoc"},{begin:/@(module|type)?doc (~[a-z])?'''/dgv,comment:"@doc with heredocs is treated as documentation",end:/\p{space}*'''/dgv,name:"comment.block.documentation.heredoc",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/@(module|type)?doc ~[A-Z]'''/dgv,comment:"@doc with heredocs is treated as documentation",end:/\p{space}*'''/dgv,name:"comment.block.documentation.heredoc"},{comment:"@doc false is treated as documentation",match:/@(module|type)?doc false/dgv,name:"comment.block.documentation.false"},{begin:/@(module|type)?doc "/dgv,comment:"@doc with string is treated as documentation",end:/"/dgv,name:"comment.block.documentation.string",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{match:/(?<!\.)\b(do|end|case|bc|lc|for|if|cond|unless|try|receive|fn|defmodule|defp?|defprotocol|defimpl|defrecord|defstruct|defnp?|defmacrop?|defguardp?|defdelegate|defexception|defoverridable|exit|after|rescue|catch|else|raise|reraise|throw|import|require|alias|use|quote|unquote|super|with)\b(?![\?\!\:])/dgv,name:"keyword.control.elixir"},{comment:" as above, just doesn't need a 'end' and does a logic operation",match:/(?<!\.)\b(and|not|or|when|xor|in)\b/dgv,name:"keyword.operator.elixir"},{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.name.type.class.elixir"},{match:/\b(nil|true|false)\b(?![\?\!])/dgv,name:"constant.language.elixir"},{match:/\b(__(CALLER|ENV|MODULE|DIR|STACKTRACE)__)\b(?![\?\!])/dgv,name:"variable.language.elixir"},{captures:{"1":{name:"punctuation.definition.variable.elixir"}},match:/(@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.module.elixir"},{captures:{"1":{name:"punctuation.definition.variable.elixir"}},match:/(&)\p{Nd}+/dgv,name:"variable.other.anonymous.elixir"},{match:/&(?![\&])/dgv,name:"variable.other.anonymous.elixir"},{captures:{"1":{name:"punctuation.definition.variable.elixir"}},match:/\^[a-z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.capture.elixir"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b0x[0-9A-Fa-f](?:(?=(_?[0-9A-Fa-f]))\\1)*\\b","dgv",{"hiddenCaptures":[1]}),name:"constant.numeric.hex.elixir"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b\\p{Nd}(?:(?=(_?\\p{Nd}))\\1)*(\\.(?![^\\p{space}\\p{Nd}])(?:(?=(_?\\p{Nd}))\\3)+)([eE][\\-\\+]?\\p{Nd}(?:(?=(_?\\p{Nd}))\\5)*)?\\b","dgv",{"hiddenCaptures":[1,3,5]}),name:"constant.numeric.float.elixir"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b\\p{Nd}(?:(?=(_?\\p{Nd}))\\1)*\\b","dgv",{"hiddenCaptures":[1]}),name:"constant.numeric.integer.elixir"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b0b[01](?:(?=(_?[01]))\\1)*\\b","dgv",{"hiddenCaptures":[1]}),name:"constant.numeric.binary.elixir"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b0o[0-7](?:(?=(_?[0-7]))\\1)*\\b","dgv",{"hiddenCaptures":[1]}),name:"constant.numeric.octal.elixir"},{begin:/:'/dgv,captures:{"0":{name:"punctuation.definition.constant.elixir"}},end:/'/dgv,name:"constant.other.symbol.single-quoted.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/:"/dgv,captures:{"0":{name:"punctuation.definition.constant.elixir"}},end:/"/dgv,name:"constant.other.symbol.double-quoted.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=('''))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"Single-quoted heredocs",end:/^\p{space}*'''/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.single.heredoc.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"single quoted string (allows for interpolation)",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.single.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\"\"\"))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"Double-quoted heredocs",end:/^\p{space}*"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.double.heredoc.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"double quoted string (allows for interpolation)",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.double.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("~[a-z](?:(?=(\"\"\"))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"Double-quoted heredocs sigils",end:/^\p{space}*"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.heredoc.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/~[a-z]\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"sigil (allow for interpolation)",end:/\}[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/~[a-z]\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"sigil (allow for interpolation)",end:/\][a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/~[a-z]</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"sigil (allow for interpolation)",end:/>[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/~[a-z]\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"sigil (allow for interpolation)",end:/\)[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/~[a-z]([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"sigil (allow for interpolation)",end:/\1[a-z]*()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("~[A-Z](?:(?=(\"\"\"))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"Double-quoted heredocs sigils",end:/^\p{space}*"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.heredoc.literal.elixir"},{begin:/~[A-Z]\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"sigil (without interpolation)",end:/\}[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.literal.elixir"},{begin:/~[A-Z]\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"sigil (without interpolation)",end:/\][a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.literal.elixir"},{begin:/~[A-Z]</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"sigil (without interpolation)",end:/>[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.literal.elixir"},{begin:/~[A-Z]\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"sigil (without interpolation)",end:/\)[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.literal.elixir"},{begin:/~[A-Z]([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},comment:"sigil (without interpolation)",end:/\1[a-z]*()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.literal.elixir"},{captures:{"1":{name:"punctuation.definition.constant.elixir"}},comment:"symbols",match:/*@__PURE__*/ new EmulatedRegExp("(?<!:)(:)(?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}\\@]*(?:(?=([\\?\\!]|=(?![\\>\\=])))\\3)?|<>|===?|!==?|<<>>|<<<|>>>|~~~|::|<-|\\|>|=>|=~|=|/|\\\\\\\\|\\*\\*?|\\.\\.?\\.?|\\.\\.//|>=?|<=?|&&?&?|\\+\\+?|--?|\\|\\|?\\|?|!|@|%?\\{\\}|%|\\[\\]|\\^(\\^\\^)?))\\2)","dgv",{"hiddenCaptures":[2,3]}),name:"constant.other.symbol.elixir"},{captures:{"1":{name:"punctuation.definition.constant.elixir"}},comment:"symbols",match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}\\@]*(?:(?=([\\?\\!]))\\2)?))\\1)(:)(?!:)","dgv",{"hiddenCaptures":[1,2]}),name:"constant.other.keywords.elixir"},{begin:/(^[ \t]+)?(?=##)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.elixir"}},end:/(?!#)/dgv,patterns:[{begin:/##/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.elixir"}},end:/\n/dgv,name:"comment.line.section.elixir"}]},{begin:/(^[ \t]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.elixir"}},end:/(?!#)/dgv,patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.elixir"}},end:/\n/dgv,name:"comment.line.number-sign.elixir"}]},{match:/\b_([^_][\p{L}\p{M}\p{N}\p{Pc}]+[\?\!]?)/dgv,name:"comment.unused.elixir"},{match:/\b_\b/dgv,name:"comment.wildcard.elixir"},{comment:"\n\t\t\tmatches questionmark-letters.\n\n\t\t\texamples (1st alternation = hex):\n\t\t\t?\\x1 ?\\x61\n\n\t\t\texamples (2rd alternation = escaped):\n\t\t\t?\\n ?\\b\n\n\t\t\texamples (3rd alternation = normal):\n\t\t\t?a ?A ?0\n\t\t\t?* ?\" ?(\n\t\t\t?. ?#\n\n\t\t\tthe negative lookbehind prevents against matching\n\t\t\tp(42.tainted?)\n\t\t\t",match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])\?(\\(x[0-9A-Fa-f]{1,2}(?![0-9A-Fa-f])\b|[^xMC])|[^\p{space}\\])/dgv,name:"constant.numeric.elixir"},{match:/\+\+|--|<\|>/dgv,name:"keyword.operator.concatenation.elixir"},{match:/\|>|<~>|<>|<<<|>>>|~>>|<<~|~>|<~|<\|>/dgv,name:"keyword.operator.sigils_1.elixir"},{match:/&&&|&&/dgv,name:"keyword.operator.sigils_2.elixir"},{match:/<-|\\\\/dgv,name:"keyword.operator.sigils_3.elixir"},{match:/===?|!==?|<=?|>=?/dgv,name:"keyword.operator.comparison.elixir"},{match:/(\|\|\||&&&|\^\^\^|<<<|>>>|~~~)/dgv,name:"keyword.operator.bitwise.elixir"},{match:/(?<=[ \t])!+|\bnot\b|&&|\band\b|\|\||\bor\b|\bxor\b/dgv,name:"keyword.operator.logical.elixir"},{match:/(\*|\+|-|\/)/dgv,name:"keyword.operator.arithmetic.elixir"},{match:/\||\+\+|--|\*\*|\\\\|<-|<>|<<|>>|::|\.\.|\/\/|\|>|~|=>|&/dgv,name:"keyword.operator.other.elixir"},{match:/=/dgv,name:"keyword.operator.assignment.elixir"},{match:/:/dgv,name:"punctuation.separator.other.elixir"},{match:/;/dgv,name:"punctuation.separator.statement.elixir"},{match:/,/dgv,name:"punctuation.separator.object.elixir"},{match:/\./dgv,name:"punctuation.separator.method.elixir"},{match:/\{|\}/dgv,name:"punctuation.section.scope.elixir"},{match:/\[|\]/dgv,name:"punctuation.section.array.elixir"},{match:/\(|\)/dgv,name:"punctuation.section.function.elixir"}]},escaped_char:{match:/\\(x[\p{Nd}a-fA-F]{1,2}|[^\n])/dgv,name:"constant.character.escaped.elixir"},interpolated_elixir:{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.elixir"}},contentName:"source.elixir",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.elixir"}},name:"meta.embedded.line.elixir",patterns:[{include:"#nest_curly_and_self"},{include:"$self"}]},nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.elixir"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]}},scopeName:"source.elixir",embeddedLangs:["html"],aliases:undefined})
4
+ const lang = Object.freeze({displayName:"Elixir",fileTypes:["ex","exs"],firstLineMatch:/^#!\/[^\n]*\belixir/dgv,foldingStartMarker:/(after|else|catch|rescue|->|\{|\[|do)\p{space}*(?=\n?$)/dgv,foldingStopMarker:/^\p{space}*((\}|\]|after|else|catch|rescue)\p{space}*(?=\n?$)|end\b)/dgv,name:"elixir",patterns:[{begin:/\b(fn)\b(?![^\n]*->)/dgv,beginCaptures:{"1":{name:"keyword.control.elixir"}},end:/(?=\n?$)/dgv,patterns:[{include:"#core_syntax"}]},{captures:{"1":{name:"entity.name.type.class.elixir"},"2":{name:"punctuation.separator.method.elixir"},"3":{name:"entity.name.function.elixir"}},match:/([A-Z][\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(\.)\p{space}*([a-z_][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)/dgv},{captures:{"1":{name:"constant.other.symbol.elixir"},"2":{name:"punctuation.separator.method.elixir"},"3":{name:"entity.name.function.elixir"}},match:/(:[\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(\.)\p{space}*([_]?[\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)/dgv},{captures:{"1":{name:"keyword.operator.other.elixir"},"2":{name:"entity.name.function.elixir"}},match:/(\|>)\p{space}*([a-z_][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)/dgv},{match:/\b[a-z_][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?(?=\p{space}*\.?\p{space}*\()/dgv,name:"entity.name.function.elixir"},{begin:/\b(fn)\b(?=[^\n]*->)/dgv,beginCaptures:{"1":{name:"keyword.control.elixir"}},end:/*@__PURE__*/ new EmulatedRegExp("(?:(?=((->)|(when)|(\\))))\\1)","dgv",{"hiddenCaptures":[1]}),endCaptures:{"1":{name:"keyword.operator.other.elixir"},"2":{name:"keyword.control.elixir"},"3":{name:"punctuation.section.function.elixir"}},patterns:[{include:"#core_syntax"}]},{include:"#core_syntax"},{begin:/^(?=[^\n]*->)((?![^"']*("|')[^"']*->)|(?=[^\n]*->[^"']*("|')[^"']*->))((?![^\n]*\([^\)]*->)|(?=[^\(\)]*->)|(?=\p{space}*\([^\n]*\)[^\n]*->))((?![^\n]*\b(fn)\b)|(?=[^\n]*->[^\n]*\bfn\b))/dgv,beginCaptures:{"1":{name:"keyword.control.elixir"}},end:/*@__PURE__*/ new EmulatedRegExp("(?:(?=((->)|(when)|(\\))))\\1)","dgv",{"hiddenCaptures":[1]}),endCaptures:{"1":{name:"keyword.operator.other.elixir"},"2":{name:"keyword.control.elixir"},"3":{name:"punctuation.section.function.elixir"}},patterns:[{include:"#core_syntax"}]}],repository:{core_syntax:{patterns:[{begin:/^\p{space}*(defmodule)\b/dgv,beginCaptures:{"1":{name:"keyword.control.module.elixir"}},end:/\b(do)\b/dgv,endCaptures:{"1":{name:"keyword.control.module.elixir"}},name:"meta.module.elixir",patterns:[{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(?=\.)/dgv,name:"entity.other.inherited-class.elixir"},{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.name.type.class.elixir"}]},{begin:/^\p{space}*(defprotocol)\b/dgv,beginCaptures:{"1":{name:"keyword.control.protocol.elixir"}},end:/\b(do)\b/dgv,endCaptures:{"1":{name:"keyword.control.protocol.elixir"}},name:"meta.protocol_declaration.elixir",patterns:[{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.name.type.protocol.elixir"}]},{begin:/^\p{space}*(defimpl)\b/dgv,beginCaptures:{"1":{name:"keyword.control.protocol.elixir"}},end:/\b(do)\b/dgv,endCaptures:{"1":{name:"keyword.control.protocol.elixir"}},name:"meta.protocol_implementation.elixir",patterns:[{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.name.type.protocol.elixir"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("^\\p{space}*(def|defmacro|defdelegate|defguard)\\p{space}+((?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\4)))\\3)?(?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\?\\!]|=(?!>)))\\6)?|===?|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))((\\()|\\p{space}*)","dgv",{"hiddenCaptures":[3,4,5,6]}),beginCaptures:{"1":{name:"keyword.control.module.elixir"},"2":{name:"entity.name.function.public.elixir"},"4":{name:"punctuation.section.function.elixir"}},end:/(\bdo:)|(\bdo\b)|(?=\p{space}+(def|defn|defmacro|defdelegate|defguard)\b)/dgv,endCaptures:{"1":{name:"constant.other.keywords.elixir"},"2":{name:"keyword.control.module.elixir"}},name:"meta.function.public.elixir",patterns:[{include:"$self"},{begin:/\p{space}(\\\\)/dgv,beginCaptures:{"1":{name:"keyword.operator.other.elixir"}},end:/,|\)|(?=\n?$)/dgv,patterns:[{include:"$self"}]},{match:/\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\b/dgv,name:"keyword.control.elixir"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("^\\p{space}*(defp|defnp|defmacrop|defguardp)\\p{space}+((?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\4)))\\3)?(?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\?\\!]|=(?!>)))\\6)?|===?|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))((\\()|\\p{space}*)","dgv",{"hiddenCaptures":[3,4,5,6]}),beginCaptures:{"1":{name:"keyword.control.module.elixir"},"2":{name:"entity.name.function.private.elixir"},"4":{name:"punctuation.section.function.elixir"}},end:/(\bdo:)|(\bdo\b)|(?=\p{space}+(defp|defmacrop|defguardp)\b)/dgv,endCaptures:{"1":{name:"constant.other.keywords.elixir"},"2":{name:"keyword.control.module.elixir"}},name:"meta.function.private.elixir",patterns:[{include:"$self"},{begin:/\p{space}(\\\\)/dgv,beginCaptures:{"1":{name:"keyword.operator.other.elixir"}},end:/,|\)|(?=\n?$)/dgv,patterns:[{include:"$self"}]},{match:/\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\b/dgv,name:"keyword.control.elixir"}]},{begin:/\p{space}*~L"""/dgv,end:/\p{space}*"""/dgv,name:"sigil.leex",patterns:[{include:"text.elixir"},{include:"text.html.basic"}]},{begin:/\p{space}*~H"""/dgv,end:/\p{space}*"""/dgv,name:"sigil.heex",patterns:[{include:"text.elixir"},{include:"text.html.basic"}]},{begin:/@(module|type)?doc (~[a-z])?"""/dgv,end:/\p{space}*"""/dgv,name:"comment.block.documentation.heredoc",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/@(module|type)?doc ~[A-Z]"""/dgv,end:/\p{space}*"""/dgv,name:"comment.block.documentation.heredoc"},{begin:/@(module|type)?doc (~[a-z])?'''/dgv,end:/\p{space}*'''/dgv,name:"comment.block.documentation.heredoc",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/@(module|type)?doc ~[A-Z]'''/dgv,end:/\p{space}*'''/dgv,name:"comment.block.documentation.heredoc"},{match:/@(module|type)?doc false/dgv,name:"comment.block.documentation.false"},{begin:/@(module|type)?doc "/dgv,end:/"/dgv,name:"comment.block.documentation.string",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{match:/(?<!\.)\b(do|end|case|bc|lc|for|if|cond|unless|try|receive|fn|defmodule|defp?|defprotocol|defimpl|defrecord|defstruct|defnp?|defmacrop?|defguardp?|defdelegate|defexception|defoverridable|exit|after|rescue|catch|else|raise|reraise|throw|import|require|alias|use|quote|unquote|super|with)\b(?![\?\!\:])/dgv,name:"keyword.control.elixir"},{match:/(?<!\.)\b(and|not|or|when|xor|in)\b/dgv,name:"keyword.operator.elixir"},{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.name.type.class.elixir"},{match:/\b(nil|true|false)\b(?![\?\!])/dgv,name:"constant.language.elixir"},{match:/\b(__(CALLER|ENV|MODULE|DIR|STACKTRACE)__)\b(?![\?\!])/dgv,name:"variable.language.elixir"},{captures:{"1":{name:"punctuation.definition.variable.elixir"}},match:/(@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.module.elixir"},{captures:{"1":{name:"punctuation.definition.variable.elixir"}},match:/(&)\p{Nd}+/dgv,name:"variable.other.anonymous.elixir"},{match:/&(?![\&])/dgv,name:"variable.other.anonymous.elixir"},{captures:{"1":{name:"punctuation.definition.variable.elixir"}},match:/\^[a-z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.capture.elixir"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b0x[0-9A-Fa-f](?:(?=(_?[0-9A-Fa-f]))\\1)*\\b","dgv",{"hiddenCaptures":[1]}),name:"constant.numeric.hex.elixir"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b\\p{Nd}(?:(?=(_?\\p{Nd}))\\1)*(\\.(?![^\\p{space}\\p{Nd}])(?:(?=(_?\\p{Nd}))\\3)+)([eE][\\-\\+]?\\p{Nd}(?:(?=(_?\\p{Nd}))\\5)*)?\\b","dgv",{"hiddenCaptures":[1,3,5]}),name:"constant.numeric.float.elixir"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b\\p{Nd}(?:(?=(_?\\p{Nd}))\\1)*\\b","dgv",{"hiddenCaptures":[1]}),name:"constant.numeric.integer.elixir"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b0b[01](?:(?=(_?[01]))\\1)*\\b","dgv",{"hiddenCaptures":[1]}),name:"constant.numeric.binary.elixir"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b0o[0-7](?:(?=(_?[0-7]))\\1)*\\b","dgv",{"hiddenCaptures":[1]}),name:"constant.numeric.octal.elixir"},{begin:/:'/dgv,captures:{"0":{name:"punctuation.definition.constant.elixir"}},end:/'/dgv,name:"constant.other.symbol.single-quoted.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/:"/dgv,captures:{"0":{name:"punctuation.definition.constant.elixir"}},end:/"/dgv,name:"constant.other.symbol.double-quoted.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=('''))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/^\p{space}*'''/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.single.heredoc.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.single.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\"\"\"))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/^\p{space}*"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.double.heredoc.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.double.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("~[a-z](?:(?=(\"\"\"))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/^\p{space}*"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.heredoc.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/~[a-z]\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/\}[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/~[a-z]\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/\][a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/~[a-z]</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/>[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/~[a-z]\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/\)[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/~[a-z]([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/\1[a-z]*()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.elixir",patterns:[{include:"#interpolated_elixir"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("~[A-Z](?:(?=(\"\"\"))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/^\p{space}*"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.heredoc.literal.elixir"},{begin:/~[A-Z]\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/\}[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.literal.elixir"},{begin:/~[A-Z]\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/\][a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.literal.elixir"},{begin:/~[A-Z]</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/>[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.literal.elixir"},{begin:/~[A-Z]\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/\)[a-z]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.literal.elixir"},{begin:/~[A-Z]([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elixir"}},end:/\1[a-z]*()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elixir"}},name:"string.quoted.other.sigil.literal.elixir"},{captures:{"1":{name:"punctuation.definition.constant.elixir"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<!:)(:)(?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}\\@]*(?:(?=([\\?\\!]|=(?![\\>\\=])))\\3)?|<>|===?|!==?|<<>>|<<<|>>>|~~~|::|<-|\\|>|=>|=~|=|/|\\\\\\\\|\\*\\*?|\\.\\.?\\.?|\\.\\.//|>=?|<=?|&&?&?|\\+\\+?|--?|\\|\\|?\\|?|!|@|%?\\{\\}|%|\\[\\]|\\^(\\^\\^)?))\\2)","dgv",{"hiddenCaptures":[2,3]}),name:"constant.other.symbol.elixir"},{captures:{"1":{name:"punctuation.definition.constant.elixir"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}\\@]*(?:(?=([\\?\\!]))\\2)?))\\1)(:)(?!:)","dgv",{"hiddenCaptures":[1,2]}),name:"constant.other.keywords.elixir"},{begin:/(^[ \t]+)?(?=##)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.elixir"}},end:/(?!#)/dgv,patterns:[{begin:/##/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.elixir"}},end:/\n/dgv,name:"comment.line.section.elixir"}]},{begin:/(^[ \t]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.elixir"}},end:/(?!#)/dgv,patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.elixir"}},end:/\n/dgv,name:"comment.line.number-sign.elixir"}]},{match:/\b_([^_][\p{L}\p{M}\p{N}\p{Pc}]+[\?\!]?)/dgv,name:"comment.unused.elixir"},{match:/\b_\b/dgv,name:"comment.wildcard.elixir"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])\?(\\(x[0-9A-Fa-f]{1,2}(?![0-9A-Fa-f])\b|[^xMC])|[^\p{space}\\])/dgv,name:"constant.numeric.elixir"},{match:/\+\+|--|<\|>/dgv,name:"keyword.operator.concatenation.elixir"},{match:/\|>|<~>|<>|<<<|>>>|~>>|<<~|~>|<~|<\|>/dgv,name:"keyword.operator.sigils_1.elixir"},{match:/&&&|&&/dgv,name:"keyword.operator.sigils_2.elixir"},{match:/<-|\\\\/dgv,name:"keyword.operator.sigils_3.elixir"},{match:/===?|!==?|<=?|>=?/dgv,name:"keyword.operator.comparison.elixir"},{match:/(\|\|\||&&&|\^\^\^|<<<|>>>|~~~)/dgv,name:"keyword.operator.bitwise.elixir"},{match:/(?<=[ \t])!+|\bnot\b|&&|\band\b|\|\||\bor\b|\bxor\b/dgv,name:"keyword.operator.logical.elixir"},{match:/(\*|\+|-|\/)/dgv,name:"keyword.operator.arithmetic.elixir"},{match:/\||\+\+|--|\*\*|\\\\|<-|<>|<<|>>|::|\.\.|\/\/|\|>|~|=>|&/dgv,name:"keyword.operator.other.elixir"},{match:/=/dgv,name:"keyword.operator.assignment.elixir"},{match:/:/dgv,name:"punctuation.separator.other.elixir"},{match:/;/dgv,name:"punctuation.separator.statement.elixir"},{match:/,/dgv,name:"punctuation.separator.object.elixir"},{match:/\./dgv,name:"punctuation.separator.method.elixir"},{match:/\{|\}/dgv,name:"punctuation.section.scope.elixir"},{match:/\[|\]/dgv,name:"punctuation.section.array.elixir"},{match:/\(|\)/dgv,name:"punctuation.section.function.elixir"}]},escaped_char:{match:/\\(x[\p{Nd}a-fA-F]{1,2}|[^\n])/dgv,name:"constant.character.escaped.elixir"},interpolated_elixir:{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.elixir"}},contentName:"source.elixir",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.elixir"}},name:"meta.embedded.line.elixir",patterns:[{include:"#nest_curly_and_self"},{include:"$self"}]},nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.elixir"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]}},scopeName:"source.elixir",embeddedLangs:["html"],aliases:undefined})
5
5
 
6
6
  export default [
7
7
  ...html,
package/dist/elm.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import glsl from './glsl.mjs'
2
2
 
3
- const lang = Object.freeze({displayName:"Elm",fileTypes:["elm"],name:"elm",patterns:[{include:"#import"},{include:"#module"},{include:"#debug"},{include:"#comments"},{match:/\b(_)\b/dgv,name:"keyword.unused.elm"},{include:"#type-signature"},{include:"#type-declaration"},{include:"#type-alias-declaration"},{include:"#string-triple"},{include:"#string-quote"},{include:"#char"},{comment:"Floats are always decimal",match:/\b([0-9]+\.[0-9]+([eE][\+\-]?[0-9]+)?|[0-9]+[eE][\+\-]?[0-9]+)\b/dgv,name:"constant.numeric.float.elm"},{match:/\b([0-9]+)\b/dgv,name:"constant.numeric.elm"},{match:/\b(0x[0-9a-fA-F]+)\b/dgv,name:"constant.numeric.elm"},{include:"#glsl"},{include:"#record-prefix"},{include:"#module-prefix"},{include:"#constructor"},{captures:{"1":{name:"punctuation.bracket.elm"},"2":{name:"record.name.elm"},"3":{name:"keyword.pipe.elm"},"4":{name:"entity.name.record.field.elm"}},match:/(\{)\p{space}+([a-z][a-zA-Z0-9_]*)\p{space}+(\|)\p{space}+([a-z][a-zA-Z0-9_]*)/dgv,name:"meta.record.field.update.elm"},{captures:{"1":{name:"keyword.pipe.elm"},"2":{name:"entity.name.record.field.elm"},"3":{name:"keyword.operator.assignment.elm"}},match:/(\|)\p{space}+([a-z][a-zA-Z0-9_]*)\p{space}+(=)/dgv,name:"meta.record.field.update.elm"},{captures:{"1":{name:"punctuation.bracket.elm"},"2":{name:"record.name.elm"}},match:/(\{)\p{space}+([a-z][a-zA-Z0-9_]*)\p{space}+(?=\n?$)/dgv,name:"meta.record.field.update.elm"},{captures:{"1":{name:"punctuation.bracket.elm"},"2":{name:"entity.name.record.field.elm"},"3":{name:"keyword.operator.assignment.elm"}},match:/(\{)\p{space}+([a-z][a-zA-Z0-9_]*)\p{space}+(=)/dgv,name:"meta.record.field.elm"},{captures:{"1":{name:"punctuation.separator.comma.elm"},"2":{name:"entity.name.record.field.elm"},"3":{name:"keyword.operator.assignment.elm"}},match:/(,)\p{space}+([a-z][a-zA-Z0-9_]*)\p{space}+(=)/dgv,name:"meta.record.field.elm"},{match:/(\}|\{)/dgv,name:"punctuation.bracket.elm"},{include:"#unit"},{include:"#comma"},{include:"#parens"},{match:/(->)/dgv,name:"keyword.operator.arrow.elm"},{include:"#infix_op"},{match:/(=|:|\||\\)/dgv,name:"keyword.other.elm"},{match:/\b(type|as|port|exposing|alias|infixl|infixr|infix)\p{space}+/dgv,name:"keyword.other.elm"},{match:/\b(if|then|else|case|of|let|in)\p{space}+/dgv,name:"keyword.control.elm"},{include:"#record-accessor"},{include:"#top_level_value"},{include:"#value"},{include:"#period"},{include:"#square_brackets"}],repository:{block_comment:{applyEndPatternLast:1,begin:/\{-(?!#)/dgv,captures:{"0":{name:"punctuation.definition.comment.elm"}},end:/-\}/dgv,name:"comment.block.elm",patterns:[{include:"#block_comment"}]},char:{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.char.begin.elm"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.char.end.elm"}},name:"string.quoted.single.elm",patterns:[{match:/\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\"'\&]|x[0-9a-fA-F]{1,5})/dgv,name:"constant.character.escape.elm"},{match:/\^[A-Z\@\[\]\\\^_]/dgv,name:"constant.character.escape.control.elm"}]},comma:{match:/(,)/dgv,name:"punctuation.separator.comma.elm"},comments:{patterns:[{begin:/--/dgv,captures:{"1":{name:"punctuation.definition.comment.elm"}},end:/(?=\n?$)/dgv,name:"comment.line.double-dash.elm"},{include:"#block_comment"}]},constructor:{match:/\b[A-Z][a-zA-Z0-9_]*\b/dgv,name:"constant.type-constructor.elm"},debug:{match:/\b(Debug)\b/dgv,name:"invalid.illegal.debug.elm"},glsl:{begin:/(\[)(glsl)(\|)/dgv,beginCaptures:{"1":{name:"entity.glsl.bracket.elm"},"2":{name:"entity.glsl.name.elm"},"3":{name:"entity.glsl.bracket.elm"}},end:/(\|\])/dgv,endCaptures:{"1":{name:"entity.glsl.bracket.elm"}},name:"meta.embedded.block.glsl",patterns:[{include:"source.glsl"}]},import:{begin:/^\b(import)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.control.import.elm"}},end:/\n(?!\p{space})/dgv,name:"meta.import.elm",patterns:[{match:/(as|exposing)/dgv,name:"keyword.control.elm"},{include:"#module_chunk"},{include:"#period"},{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{include:"#module-exports"}]},infix_op:{match:/(<\/>|<\?>|<\||<=|\|\||&&|>=|\|>|\|=|\|\.|\+\+|::|\/=|==|\/\/|>>|<<|<|>|\^|\+|-|\/|\*)/dgv,name:"keyword.operator.elm"},module:{begin:/^\b((port |effect )?module)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.elm"}},end:/\n(?!\p{space})/dgv,endCaptures:{"1":{name:"keyword.other.elm"}},name:"meta.declaration.module.elm",patterns:[{include:"#module_chunk"},{include:"#period"},{match:/(exposing)/dgv,name:"keyword.other.elm"},{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{include:"#module-exports"}]},"module-exports":{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.parens.module-export.elm"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.parens.module-export.elm"}},name:"meta.declaration.exports.elm",patterns:[{match:/\b[a-z][a-zA-Z_'0-9]*/dgv,name:"entity.name.function.elm"},{match:/\b[A-Z][A-Za-z_'0-9]*/dgv,name:"storage.type.elm"},{match:/,/dgv,name:"punctuation.separator.comma.elm"},{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{include:"#comma"},{match:/\(\.\.\)/dgv,name:"punctuation.parens.ellipses.elm"},{match:/\.\./dgv,name:"punctuation.parens.ellipses.elm"},{include:"#infix_op"},{comment:"So named because I don't know what to call this.",match:/\([^\n]*?\)/dgv,name:"meta.other.unknown.elm"}]},"module-prefix":{captures:{"1":{name:"support.module.elm"},"2":{name:"keyword.other.period.elm"}},match:/([A-Z][a-zA-Z0-9_]*)(\.)/dgv,name:"meta.module.name.elm"},module_chunk:{match:/[A-Z][a-zA-Z0-9_]*/dgv,name:"support.module.elm"},parens:{match:/(\(|\))/dgv,name:"punctuation.parens.elm"},period:{match:/[\.]/dgv,name:"keyword.other.period.elm"},"record-accessor":{captures:{"1":{name:"keyword.other.period.elm"},"2":{name:"entity.name.record.field.accessor.elm"}},match:/(\.)([a-z][a-zA-Z0-9_]*)/dgv,name:"meta.record.accessor"},"record-prefix":{captures:{"1":{name:"record.name.elm"},"2":{name:"keyword.other.period.elm"},"3":{name:"entity.name.record.field.accessor.elm"}},match:/([a-z][a-zA-Z0-9_]*)(\.)([a-z][a-zA-Z0-9_]*)/dgv,name:"record.accessor.elm"},square_brackets:{match:/[\[\]]/dgv,name:"punctuation.definition.list.elm"},"string-quote":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elm"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elm"}},name:"string.quoted.double.elm",patterns:[{match:/\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\"'\&]|x[0-9a-fA-F]{1,5})/dgv,name:"constant.character.escape.elm"},{match:/\^[A-Z\@\[\]\\\^_]/dgv,name:"constant.character.escape.control.elm"}]},"string-triple":{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elm"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elm"}},name:"string.quoted.triple.elm",patterns:[{match:/\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\"'\&]|x[0-9a-fA-F]{1,5})/dgv,name:"constant.character.escape.elm"},{match:/\^[A-Z\@\[\]\\\^_]/dgv,name:"constant.character.escape.control.elm"}]},top_level_value:{match:/^[a-z][a-zA-Z0-9_]*\b/dgv,name:"entity.name.function.top_level.elm"},"type-alias-declaration":{begin:/^(type\p{space}+)(alias\p{space}+)([A-Z][a-zA-Z0-9_']*)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.type.elm"},"2":{name:"keyword.type-alias.elm"},"3":{name:"storage.type.elm"}},end:/^(?=\P{space})/dgv,name:"meta.function.type-declaration.elm",patterns:[{match:/\n\p{space}+/dgv,name:"punctuation.spaces.elm"},{match:/=/dgv,name:"keyword.operator.assignment.elm"},{include:"#module-prefix"},{match:/\b[A-Z][a-zA-Z0-9_]*\b/dgv,name:"storage.type.elm"},{match:/\b[a-z][a-zA-Z0-9_]*\b/dgv,name:"variable.type.elm"},{include:"#comments"},{include:"#type-record"}]},"type-declaration":{begin:/^(type\p{space}+)([A-Z][a-zA-Z0-9_']*)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.type.elm"},"2":{name:"storage.type.elm"}},end:/^(?=\P{space})/dgv,name:"meta.function.type-declaration.elm",patterns:[{captures:{"1":{name:"constant.type-constructor.elm"}},match:/^\p{space}*([A-Z][a-zA-Z0-9_]*)\b/dgv,name:"meta.record.field.elm"},{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{captures:{"1":{name:"keyword.operator.assignment.elm"},"2":{name:"constant.type-constructor.elm"}},match:/(=|\|)\p{space}+([A-Z][a-zA-Z0-9_]*)\b/dgv,name:"meta.record.field.elm"},{match:/=/dgv,name:"keyword.operator.assignment.elm"},{match:/->/dgv,name:"keyword.operator.arrow.elm"},{include:"#module-prefix"},{match:/\b[a-z][a-zA-Z0-9_]*\b/dgv,name:"variable.type.elm"},{match:/\b[A-Z][a-zA-Z0-9_]*\b/dgv,name:"storage.type.elm"},{include:"#comments"},{include:"#type-record"}]},"type-record":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.section.braces.begin"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.section.braces.end"}},name:"meta.function.type-record.elm",patterns:[{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{match:/->/dgv,name:"keyword.operator.arrow.elm"},{captures:{"1":{name:"entity.name.record.field.elm"},"2":{name:"keyword.other.elm"}},match:/([a-z][a-zA-Z0-9_]*)\p{space}+(:)/dgv,name:"meta.record.field.elm"},{match:/,/dgv,name:"punctuation.separator.comma.elm"},{include:"#module-prefix"},{match:/\b[a-z][a-zA-Z0-9_]*\b/dgv,name:"variable.type.elm"},{match:/\b[A-Z][a-zA-Z0-9_]*\b/dgv,name:"storage.type.elm"},{include:"#comments"},{include:"#type-record"}]},"type-signature":{begin:/^(port\p{space}+)?([a-z_][a-zA-Z0-9_']*)\p{space}+(:)/dgv,beginCaptures:{"1":{name:"keyword.other.port.elm"},"2":{name:"entity.name.function.elm"},"3":{name:"keyword.other.colon.elm"}},end:/((^(?=[a-z]))|^(?=\n?$))/dgv,name:"meta.function.type-declaration.elm",patterns:[{include:"#type-signature-chunk"}]},"type-signature-chunk":{patterns:[{match:/->/dgv,name:"keyword.operator.arrow.elm"},{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{include:"#module-prefix"},{match:/\b[a-z][a-zA-Z0-9_]*\b/dgv,name:"variable.type.elm"},{match:/\b[A-Z][a-zA-Z0-9_]*\b/dgv,name:"storage.type.elm"},{match:/\(\)/dgv,name:"constant.unit.elm"},{include:"#comma"},{include:"#parens"},{include:"#comments"},{include:"#type-record"}]},unit:{match:/\(\)/dgv,name:"constant.unit.elm"},value:{match:/\b[a-z][a-zA-Z0-9_]*\b/dgv,name:"meta.value.elm"}},scopeName:"source.elm",embeddedLangs:["glsl"],aliases:undefined})
3
+ const lang = Object.freeze({displayName:"Elm",fileTypes:["elm"],name:"elm",patterns:[{include:"#import"},{include:"#module"},{include:"#debug"},{include:"#comments"},{match:/\b(_)\b/dgv,name:"keyword.unused.elm"},{include:"#type-signature"},{include:"#type-declaration"},{include:"#type-alias-declaration"},{include:"#string-triple"},{include:"#string-quote"},{include:"#char"},{match:/\b([0-9]+\.[0-9]+([eE][\+\-]?[0-9]+)?|[0-9]+[eE][\+\-]?[0-9]+)\b/dgv,name:"constant.numeric.float.elm"},{match:/\b([0-9]+)\b/dgv,name:"constant.numeric.elm"},{match:/\b(0x[0-9a-fA-F]+)\b/dgv,name:"constant.numeric.elm"},{include:"#glsl"},{include:"#record-prefix"},{include:"#module-prefix"},{include:"#constructor"},{captures:{"1":{name:"punctuation.bracket.elm"},"2":{name:"record.name.elm"},"3":{name:"keyword.pipe.elm"},"4":{name:"entity.name.record.field.elm"}},match:/(\{)\p{space}+([a-z][a-zA-Z0-9_]*)\p{space}+(\|)\p{space}+([a-z][a-zA-Z0-9_]*)/dgv,name:"meta.record.field.update.elm"},{captures:{"1":{name:"keyword.pipe.elm"},"2":{name:"entity.name.record.field.elm"},"3":{name:"keyword.operator.assignment.elm"}},match:/(\|)\p{space}+([a-z][a-zA-Z0-9_]*)\p{space}+(=)/dgv,name:"meta.record.field.update.elm"},{captures:{"1":{name:"punctuation.bracket.elm"},"2":{name:"record.name.elm"}},match:/(\{)\p{space}+([a-z][a-zA-Z0-9_]*)\p{space}+(?=\n?$)/dgv,name:"meta.record.field.update.elm"},{captures:{"1":{name:"punctuation.bracket.elm"},"2":{name:"entity.name.record.field.elm"},"3":{name:"keyword.operator.assignment.elm"}},match:/(\{)\p{space}+([a-z][a-zA-Z0-9_]*)\p{space}+(=)/dgv,name:"meta.record.field.elm"},{captures:{"1":{name:"punctuation.separator.comma.elm"},"2":{name:"entity.name.record.field.elm"},"3":{name:"keyword.operator.assignment.elm"}},match:/(,)\p{space}+([a-z][a-zA-Z0-9_]*)\p{space}+(=)/dgv,name:"meta.record.field.elm"},{match:/(\}|\{)/dgv,name:"punctuation.bracket.elm"},{include:"#unit"},{include:"#comma"},{include:"#parens"},{match:/(->)/dgv,name:"keyword.operator.arrow.elm"},{include:"#infix_op"},{match:/(=|:|\||\\)/dgv,name:"keyword.other.elm"},{match:/\b(type|as|port|exposing|alias|infixl|infixr|infix)\p{space}+/dgv,name:"keyword.other.elm"},{match:/\b(if|then|else|case|of|let|in)\p{space}+/dgv,name:"keyword.control.elm"},{include:"#record-accessor"},{include:"#top_level_value"},{include:"#value"},{include:"#period"},{include:"#square_brackets"}],repository:{block_comment:{applyEndPatternLast:1,begin:/\{-(?!#)/dgv,captures:{"0":{name:"punctuation.definition.comment.elm"}},end:/-\}/dgv,name:"comment.block.elm",patterns:[{include:"#block_comment"}]},char:{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.char.begin.elm"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.char.end.elm"}},name:"string.quoted.single.elm",patterns:[{match:/\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\"'\&]|x[0-9a-fA-F]{1,5})/dgv,name:"constant.character.escape.elm"},{match:/\^[A-Z\@\[\]\\\^_]/dgv,name:"constant.character.escape.control.elm"}]},comma:{match:/(,)/dgv,name:"punctuation.separator.comma.elm"},comments:{patterns:[{begin:/--/dgv,captures:{"1":{name:"punctuation.definition.comment.elm"}},end:/(?=\n?$)/dgv,name:"comment.line.double-dash.elm"},{include:"#block_comment"}]},constructor:{match:/\b[A-Z][a-zA-Z0-9_]*\b/dgv,name:"constant.type-constructor.elm"},debug:{match:/\b(Debug)\b/dgv,name:"invalid.illegal.debug.elm"},glsl:{begin:/(\[)(glsl)(\|)/dgv,beginCaptures:{"1":{name:"entity.glsl.bracket.elm"},"2":{name:"entity.glsl.name.elm"},"3":{name:"entity.glsl.bracket.elm"}},end:/(\|\])/dgv,endCaptures:{"1":{name:"entity.glsl.bracket.elm"}},name:"meta.embedded.block.glsl",patterns:[{include:"source.glsl"}]},import:{begin:/^\b(import)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.control.import.elm"}},end:/\n(?!\p{space})/dgv,name:"meta.import.elm",patterns:[{match:/(as|exposing)/dgv,name:"keyword.control.elm"},{include:"#module_chunk"},{include:"#period"},{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{include:"#module-exports"}]},infix_op:{match:/(<\/>|<\?>|<\||<=|\|\||&&|>=|\|>|\|=|\|\.|\+\+|::|\/=|==|\/\/|>>|<<|<|>|\^|\+|-|\/|\*)/dgv,name:"keyword.operator.elm"},module:{begin:/^\b((port |effect )?module)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.elm"}},end:/\n(?!\p{space})/dgv,endCaptures:{"1":{name:"keyword.other.elm"}},name:"meta.declaration.module.elm",patterns:[{include:"#module_chunk"},{include:"#period"},{match:/(exposing)/dgv,name:"keyword.other.elm"},{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{include:"#module-exports"}]},"module-exports":{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.parens.module-export.elm"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.parens.module-export.elm"}},name:"meta.declaration.exports.elm",patterns:[{match:/\b[a-z][a-zA-Z_'0-9]*/dgv,name:"entity.name.function.elm"},{match:/\b[A-Z][A-Za-z_'0-9]*/dgv,name:"storage.type.elm"},{match:/,/dgv,name:"punctuation.separator.comma.elm"},{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{include:"#comma"},{match:/\(\.\.\)/dgv,name:"punctuation.parens.ellipses.elm"},{match:/\.\./dgv,name:"punctuation.parens.ellipses.elm"},{include:"#infix_op"},{match:/\([^\n]*?\)/dgv,name:"meta.other.unknown.elm"}]},"module-prefix":{captures:{"1":{name:"support.module.elm"},"2":{name:"keyword.other.period.elm"}},match:/([A-Z][a-zA-Z0-9_]*)(\.)/dgv,name:"meta.module.name.elm"},module_chunk:{match:/[A-Z][a-zA-Z0-9_]*/dgv,name:"support.module.elm"},parens:{match:/(\(|\))/dgv,name:"punctuation.parens.elm"},period:{match:/[\.]/dgv,name:"keyword.other.period.elm"},"record-accessor":{captures:{"1":{name:"keyword.other.period.elm"},"2":{name:"entity.name.record.field.accessor.elm"}},match:/(\.)([a-z][a-zA-Z0-9_]*)/dgv,name:"meta.record.accessor"},"record-prefix":{captures:{"1":{name:"record.name.elm"},"2":{name:"keyword.other.period.elm"},"3":{name:"entity.name.record.field.accessor.elm"}},match:/([a-z][a-zA-Z0-9_]*)(\.)([a-z][a-zA-Z0-9_]*)/dgv,name:"record.accessor.elm"},square_brackets:{match:/[\[\]]/dgv,name:"punctuation.definition.list.elm"},"string-quote":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elm"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elm"}},name:"string.quoted.double.elm",patterns:[{match:/\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\"'\&]|x[0-9a-fA-F]{1,5})/dgv,name:"constant.character.escape.elm"},{match:/\^[A-Z\@\[\]\\\^_]/dgv,name:"constant.character.escape.control.elm"}]},"string-triple":{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.elm"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.elm"}},name:"string.quoted.triple.elm",patterns:[{match:/\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\"'\&]|x[0-9a-fA-F]{1,5})/dgv,name:"constant.character.escape.elm"},{match:/\^[A-Z\@\[\]\\\^_]/dgv,name:"constant.character.escape.control.elm"}]},top_level_value:{match:/^[a-z][a-zA-Z0-9_]*\b/dgv,name:"entity.name.function.top_level.elm"},"type-alias-declaration":{begin:/^(type\p{space}+)(alias\p{space}+)([A-Z][a-zA-Z0-9_']*)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.type.elm"},"2":{name:"keyword.type-alias.elm"},"3":{name:"storage.type.elm"}},end:/^(?=\P{space})/dgv,name:"meta.function.type-declaration.elm",patterns:[{match:/\n\p{space}+/dgv,name:"punctuation.spaces.elm"},{match:/=/dgv,name:"keyword.operator.assignment.elm"},{include:"#module-prefix"},{match:/\b[A-Z][a-zA-Z0-9_]*\b/dgv,name:"storage.type.elm"},{match:/\b[a-z][a-zA-Z0-9_]*\b/dgv,name:"variable.type.elm"},{include:"#comments"},{include:"#type-record"}]},"type-declaration":{begin:/^(type\p{space}+)([A-Z][a-zA-Z0-9_']*)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.type.elm"},"2":{name:"storage.type.elm"}},end:/^(?=\P{space})/dgv,name:"meta.function.type-declaration.elm",patterns:[{captures:{"1":{name:"constant.type-constructor.elm"}},match:/^\p{space}*([A-Z][a-zA-Z0-9_]*)\b/dgv,name:"meta.record.field.elm"},{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{captures:{"1":{name:"keyword.operator.assignment.elm"},"2":{name:"constant.type-constructor.elm"}},match:/(=|\|)\p{space}+([A-Z][a-zA-Z0-9_]*)\b/dgv,name:"meta.record.field.elm"},{match:/=/dgv,name:"keyword.operator.assignment.elm"},{match:/->/dgv,name:"keyword.operator.arrow.elm"},{include:"#module-prefix"},{match:/\b[a-z][a-zA-Z0-9_]*\b/dgv,name:"variable.type.elm"},{match:/\b[A-Z][a-zA-Z0-9_]*\b/dgv,name:"storage.type.elm"},{include:"#comments"},{include:"#type-record"}]},"type-record":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.section.braces.begin"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.section.braces.end"}},name:"meta.function.type-record.elm",patterns:[{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{match:/->/dgv,name:"keyword.operator.arrow.elm"},{captures:{"1":{name:"entity.name.record.field.elm"},"2":{name:"keyword.other.elm"}},match:/([a-z][a-zA-Z0-9_]*)\p{space}+(:)/dgv,name:"meta.record.field.elm"},{match:/,/dgv,name:"punctuation.separator.comma.elm"},{include:"#module-prefix"},{match:/\b[a-z][a-zA-Z0-9_]*\b/dgv,name:"variable.type.elm"},{match:/\b[A-Z][a-zA-Z0-9_]*\b/dgv,name:"storage.type.elm"},{include:"#comments"},{include:"#type-record"}]},"type-signature":{begin:/^(port\p{space}+)?([a-z_][a-zA-Z0-9_']*)\p{space}+(:)/dgv,beginCaptures:{"1":{name:"keyword.other.port.elm"},"2":{name:"entity.name.function.elm"},"3":{name:"keyword.other.colon.elm"}},end:/((^(?=[a-z]))|^(?=\n?$))/dgv,name:"meta.function.type-declaration.elm",patterns:[{include:"#type-signature-chunk"}]},"type-signature-chunk":{patterns:[{match:/->/dgv,name:"keyword.operator.arrow.elm"},{match:/\p{space}+/dgv,name:"punctuation.spaces.elm"},{include:"#module-prefix"},{match:/\b[a-z][a-zA-Z0-9_]*\b/dgv,name:"variable.type.elm"},{match:/\b[A-Z][a-zA-Z0-9_]*\b/dgv,name:"storage.type.elm"},{match:/\(\)/dgv,name:"constant.unit.elm"},{include:"#comma"},{include:"#parens"},{include:"#comments"},{include:"#type-record"}]},unit:{match:/\(\)/dgv,name:"constant.unit.elm"},value:{match:/\b[a-z][a-zA-Z0-9_]*\b/dgv,name:"meta.value.elm"}},scopeName:"source.elm",embeddedLangs:["glsl"],aliases:undefined})
4
4
 
5
5
  export default [
6
6
  ...glsl,