@dronico/droni-kit 1.7.3 → 1.7.4

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 (186) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/droni-kit.cjs.js +350 -1
  3. package/dist/droni-kit.css +1 -1
  4. package/dist/droni-kit.es.js +925 -7
  5. package/dist/stories/Widgets/DuiEditor.stories.d.ts +3 -9
  6. package/dist/stories/Widgets/DuiEditor.vue.d.ts +3 -9
  7. package/package.json +1 -2
  8. package/dist/abap-CrVaG5QI.cjs +0 -6
  9. package/dist/abap-D0Neqhq6.js +0 -1404
  10. package/dist/apex-B5LhxkeG.js +0 -332
  11. package/dist/apex-CGiaaokt.cjs +0 -6
  12. package/dist/assets/css.worker-DNgQEC96.js +0 -84
  13. package/dist/assets/editor.worker-BKD3YLiN.js +0 -12
  14. package/dist/assets/html.worker-B7xpmB-M.js +0 -461
  15. package/dist/assets/json.worker-td2JV8fN.js +0 -49
  16. package/dist/assets/ts.worker-CqZGdM85.js +0 -51334
  17. package/dist/azcli-BrBH0QTU.js +0 -74
  18. package/dist/azcli-CCWOS89X.cjs +0 -6
  19. package/dist/bat-BfzAov64.js +0 -106
  20. package/dist/bat-dplVPQ-_.cjs +0 -6
  21. package/dist/bicep-C3bCSWel.js +0 -108
  22. package/dist/bicep-Q9zrsOvk.cjs +0 -7
  23. package/dist/cameligo-Dr5j7v0u.cjs +0 -6
  24. package/dist/cameligo-sFL5plcd.js +0 -180
  25. package/dist/clojure-CfeExRz0.js +0 -767
  26. package/dist/clojure-DPJGbZtj.cjs +0 -6
  27. package/dist/coffee-CUV2cHk6.cjs +0 -6
  28. package/dist/coffee-Xws5K0WL.js +0 -238
  29. package/dist/cpp-CqOUEpxN.js +0 -395
  30. package/dist/cpp-DyuKq4fH.cjs +0 -6
  31. package/dist/csharp-DVLiBOZb.js +0 -332
  32. package/dist/csharp-d4dFAWKM.cjs +0 -6
  33. package/dist/csp-DVFp9bw5.js +0 -59
  34. package/dist/csp-Lc8LbON9.cjs +0 -6
  35. package/dist/css-D8IzNaWL.cjs +0 -8
  36. package/dist/css-DwARn2R6.js +0 -193
  37. package/dist/cssMode--MfDhlXW.js +0 -1577
  38. package/dist/cssMode-B8S_b__C.cjs +0 -9
  39. package/dist/cypher-BuSmvVBI.cjs +0 -6
  40. package/dist/cypher-uY0Mffat.js +0 -269
  41. package/dist/dart-D27H-mX_.js +0 -287
  42. package/dist/dart-d-sZXKUo.cjs +0 -6
  43. package/dist/dockerfile-CmV85WZK.js +0 -136
  44. package/dist/dockerfile-OepqCuVM.cjs +0 -6
  45. package/dist/ecl--fKn7yzB.js +0 -462
  46. package/dist/ecl-GFERKf5i.cjs +0 -6
  47. package/dist/elixir-9a1efda4.cjs +0 -6
  48. package/dist/elixir-DUhH17ON.js +0 -575
  49. package/dist/flow9-B3Dx2LLe.js +0 -148
  50. package/dist/flow9-DsqME3Wt.cjs +0 -6
  51. package/dist/freemarker2-ApUh3Ubc.cjs +0 -8
  52. package/dist/freemarker2-B6ampScX.js +0 -995
  53. package/dist/fsharp-DtZL2hil.cjs +0 -6
  54. package/dist/fsharp-SyqBfUAR.js +0 -223
  55. package/dist/go-B11TqKJA.cjs +0 -6
  56. package/dist/go-BbMR2tdT.js +0 -224
  57. package/dist/graphql-DDJE6tIl.js +0 -157
  58. package/dist/graphql-DrfV554J.cjs +0 -6
  59. package/dist/handlebars-Cbhqp1NE.js +0 -425
  60. package/dist/handlebars-Ce21uehy.cjs +0 -6
  61. package/dist/hcl-B0mc1H5M.cjs +0 -6
  62. package/dist/hcl-YBvpaUqf.js +0 -189
  63. package/dist/html-BDmPyCbL.js +0 -314
  64. package/dist/html-BTFiH6Sw.cjs +0 -6
  65. package/dist/htmlMode-B18NiCAi.cjs +0 -9
  66. package/dist/htmlMode-BUHFgZKE.js +0 -1587
  67. package/dist/index-B5gLucco.js +0 -113180
  68. package/dist/index-BYLdWIQo.cjs +0 -1504
  69. package/dist/ini-Ct73dBtM.js +0 -77
  70. package/dist/ini-ymhBH5HG.cjs +0 -6
  71. package/dist/java-C_jlkwoG.js +0 -238
  72. package/dist/java-D4zTn_HA.cjs +0 -6
  73. package/dist/javascript-BR0mMjV4.js +0 -76
  74. package/dist/javascript-DrLpnVkz.cjs +0 -6
  75. package/dist/jsonMode-DHhRjk7d.cjs +0 -15
  76. package/dist/jsonMode-DvjeLIcS.js +0 -2002
  77. package/dist/julia-D8WE5U1e.js +0 -517
  78. package/dist/julia-Dp7_oxTx.cjs +0 -6
  79. package/dist/kotlin-DN07yPPp.cjs +0 -6
  80. package/dist/kotlin-Zy9aq5yB.js +0 -259
  81. package/dist/less-CtJmsSxx.cjs +0 -7
  82. package/dist/less-sZ0iHtE8.js +0 -168
  83. package/dist/lexon-BH122-aN.cjs +0 -6
  84. package/dist/lexon-CsdNL29A.js +0 -163
  85. package/dist/lib/userWorker.d.ts +0 -1
  86. package/dist/liquid-DBEv3cQo.cjs +0 -6
  87. package/dist/liquid-c8EQsxJL.js +0 -246
  88. package/dist/lua-C2YJo0zw.js +0 -168
  89. package/dist/lua-DF1giqni.cjs +0 -6
  90. package/dist/m3-BSVLgJdx.cjs +0 -6
  91. package/dist/m3-CPLP40SG.js +0 -216
  92. package/dist/markdown-B1mf5e0R.js +0 -235
  93. package/dist/markdown-DqkJT7wW.cjs +0 -6
  94. package/dist/mdx-1XKmgriI.js +0 -171
  95. package/dist/mdx-BLFumXRM.cjs +0 -6
  96. package/dist/mips-DA33BZX1.js +0 -204
  97. package/dist/mips-HcsFOvwE.cjs +0 -6
  98. package/dist/msdax-CCYFIQsP.js +0 -381
  99. package/dist/msdax-D8wkgf9t.cjs +0 -6
  100. package/dist/mysql-D1qSUjcB.cjs +0 -6
  101. package/dist/mysql-hjmIjL-D.js +0 -884
  102. package/dist/objective-c-BcY1nQEp.cjs +0 -6
  103. package/dist/objective-c-RRCpEmqC.js +0 -189
  104. package/dist/pascal-C6VID8iC.cjs +0 -6
  105. package/dist/pascal-CeV8XfxB.js +0 -257
  106. package/dist/pascaligo-CtEkUcZy.cjs +0 -6
  107. package/dist/pascaligo-IEEGVJAJ.js +0 -170
  108. package/dist/perl-B5-QbHq_.js +0 -632
  109. package/dist/perl-BS5MoSit.cjs +0 -6
  110. package/dist/pgsql-DSQqzbUN.cjs +0 -6
  111. package/dist/pgsql-s6kqEJmi.js +0 -857
  112. package/dist/php-CWWqzOo8.js +0 -506
  113. package/dist/php-Dcbv8it3.cjs +0 -6
  114. package/dist/pla-BKGu3P8x.cjs +0 -6
  115. package/dist/pla-FSvb_YP_.js +0 -143
  116. package/dist/postiats-DQdscQXO.js +0 -913
  117. package/dist/postiats-lASv8P6N.cjs +0 -6
  118. package/dist/powerquery-BuqmBiPU.cjs +0 -6
  119. package/dist/powerquery-CtA5JA1I.js +0 -896
  120. package/dist/powershell-CtRTGCOm.cjs +0 -6
  121. package/dist/powershell-DglEq96N.js +0 -245
  122. package/dist/protobuf-BSepub3e.js +0 -426
  123. package/dist/protobuf-Dk87ns3u.cjs +0 -7
  124. package/dist/pug-B1847F4G.js +0 -408
  125. package/dist/pug-CVbk24PQ.cjs +0 -6
  126. package/dist/python-CFCwn4yH.cjs +0 -6
  127. package/dist/python-kCX2MsY7.js +0 -307
  128. package/dist/qsharp-BSix4Z0w.cjs +0 -6
  129. package/dist/qsharp-D4i0Nqg9.js +0 -307
  130. package/dist/r-CSIGVqGj.cjs +0 -6
  131. package/dist/r-cdRigKxa.js +0 -249
  132. package/dist/razor-BwatS76l.cjs +0 -6
  133. package/dist/razor-CJ2-OlVm.js +0 -556
  134. package/dist/redis-1SUKo9jD.cjs +0 -6
  135. package/dist/redis-D9MFxvE8.js +0 -308
  136. package/dist/redshift-BS1FVf13.cjs +0 -6
  137. package/dist/redshift-CmCnsvL-.js +0 -815
  138. package/dist/restructuredtext-CWy8J51t.js +0 -180
  139. package/dist/restructuredtext-DU-k0-PC.cjs +0 -6
  140. package/dist/ruby-WP-c36m5.js +0 -517
  141. package/dist/ruby-aigiByO4.cjs +0 -6
  142. package/dist/rust-Q9FLdYpu.js +0 -349
  143. package/dist/rust-adCJoS28.cjs +0 -6
  144. package/dist/sb-C54-JBGT.js +0 -121
  145. package/dist/sb-CiUR99st.cjs +0 -6
  146. package/dist/scala-CzbFImc5.js +0 -376
  147. package/dist/scala-Tb5I4vBh.cjs +0 -6
  148. package/dist/scheme-BMUadJWp.cjs +0 -6
  149. package/dist/scheme-BhfDmYN3.js +0 -114
  150. package/dist/scss-BICI8Lvl.cjs +0 -8
  151. package/dist/scss-CEmiBXpS.js +0 -268
  152. package/dist/shell-BUjduzW4.cjs +0 -6
  153. package/dist/shell-Bmc1VhG0.js +0 -227
  154. package/dist/solidity-C9Q2I8Hh.js +0 -1373
  155. package/dist/solidity-DFZoFjgL.cjs +0 -6
  156. package/dist/sophia-B_a5zu_Y.cjs +0 -6
  157. package/dist/sophia-jWa1UyKz.js +0 -205
  158. package/dist/sparql-C-N2tZtn.cjs +0 -6
  159. package/dist/sparql-CM7jctbc.js +0 -207
  160. package/dist/sql-CVdEafkq.cjs +0 -6
  161. package/dist/sql-WzihTkbg.js +0 -859
  162. package/dist/st-2HB7Hiwr.cjs +0 -6
  163. package/dist/st-6y7_3aup.js +0 -422
  164. package/dist/swift-k-0zxG_D.js +0 -318
  165. package/dist/swift-xGTYXUAm.cjs +0 -8
  166. package/dist/systemverilog-BaPbkNTu.cjs +0 -6
  167. package/dist/systemverilog-Pnr5_rIP.js +0 -582
  168. package/dist/tcl-SSKta9Un.cjs +0 -6
  169. package/dist/tcl-fNPXval8.js +0 -238
  170. package/dist/tsMode-RB_vd_eb.cjs +0 -16
  171. package/dist/tsMode-Rf8OU01s.js +0 -895
  172. package/dist/twig-ByEpcNlL.cjs +0 -6
  173. package/dist/twig-L2MkztkV.js +0 -398
  174. package/dist/typescript-CV2SvKu1.cjs +0 -6
  175. package/dist/typescript-CaxFA8LZ.js +0 -349
  176. package/dist/typespec-Bxe2hBLx.cjs +0 -6
  177. package/dist/typespec-Cqqo-3Pt.js +0 -123
  178. package/dist/vb-B5YC2xN9.js +0 -378
  179. package/dist/vb-m8wPqU1B.cjs +0 -6
  180. package/dist/wgsl-B-_uRex7.js +0 -445
  181. package/dist/wgsl-CPwT7Vox.cjs +0 -303
  182. package/dist/xml-BSn2vC2Q.cjs +0 -6
  183. package/dist/xml-BYNZTm-o.js +0 -101
  184. package/dist/yaml-C7dSJq0N.cjs +0 -6
  185. package/dist/yaml-Czj6pQn5.js +0 -212
  186. package/src/lib/userWorker.ts +0 -28
@@ -1,6 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:'"',close:'"'}],autoClosingPairs:[{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["comment"]},{open:'"""',close:'"""'},{open:"`",close:"`",notIn:["string","comment"]},{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"<<",close:">>"}],indentationRules:{increaseIndentPattern:/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,decreaseIndentPattern:/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},t={defaultToken:"source",tokenPostfix:".elixir",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"<<",close:">>",token:"delimiter.angle.special"}],declarationKeywords:["def","defp","defn","defnp","defguard","defguardp","defmacro","defmacrop","defdelegate","defcallback","defmacrocallback","defmodule","defprotocol","defexception","defimpl","defstruct"],operatorKeywords:["and","in","not","or","when"],namespaceKeywords:["alias","import","require","use"],otherKeywords:["after","case","catch","cond","do","else","end","fn","for","if","quote","raise","receive","rescue","super","throw","try","unless","unquote_splicing","unquote","with"],constants:["true","false","nil"],nameBuiltin:["__MODULE__","__DIR__","__ENV__","__CALLER__","__STACKTRACE__"],operator:/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,variableName:/[a-z_][a-zA-Z0-9_]*[?!]?/,atomName:/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,specialAtomName:/\.\.\.|<<>>|%\{\}|%|\{\}/,aliasPart:/[A-Z][a-zA-Z0-9_]*/,moduleName:/@aliasPart(?:\.@aliasPart)*/,sigilSymmetricDelimiter:/"""|'''|"|'|\/|\|/,sigilStartDelimiter:/@sigilSymmetricDelimiter|<|\{|\[|\(/,sigilEndDelimiter:/@sigilSymmetricDelimiter|>|\}|\]|\)/,sigilModifiers:/[a-zA-Z0-9]*/,decimal:/\d(?:_?\d)*/,hex:/[0-9a-fA-F](_?[0-9a-fA-F])*/,octal:/[0-7](_?[0-7])*/,binary:/[01](_?[01])*/,escape:/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@keywordsShorthand"},{include:"@numbers"},{include:"@identifiers"},{include:"@strings"},{include:"@atoms"},{include:"@sigils"},{include:"@attributes"},{include:"@symbols"}],whitespace:[[/\s+/,"white"]],comments:[[/(#)(.*)/,["comment.punctuation","comment"]]],keywordsShorthand:[[/(@atomName)(:)(\s+)/,["constant","constant.punctuation","white"]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{token:"constant.delimiter",next:"@doubleQuotedStringKeyword"}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{token:"constant.delimiter",next:"@singleQuotedStringKeyword"}]],doubleQuotedStringKeyword:[[/":/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringKeyword:[[/':/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],numbers:[[/0b@binary/,"number.binary"],[/0o@octal/,"number.octal"],[/0x@hex/,"number.hex"],[/@decimal\.@decimal([eE]-?@decimal)?/,"number.float"],[/@decimal/,"number"]],identifiers:[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,["keyword.declaration","white",{cases:{unquote:"keyword","@default":"function"}}]],[/(@variableName)(?=\s*\.?\s*\()/,{cases:{"@declarationKeywords":"keyword.declaration","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@default":"function.call"}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,["type.identifier","white","operator","white","function.call"]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,["constant.punctuation","constant","white","operator","white","function.call"]],[/(\|>)(\s*)(@variableName)/,["operator","white",{cases:{"@otherKeywords":"keyword","@default":"function.call"}}]],[/(&)(\s*)(@variableName)/,["operator","white","function.call"]],[/@variableName/,{cases:{"@declarationKeywords":"keyword.declaration","@operatorKeywords":"keyword.operator","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@constants":"constant.language","@nameBuiltin":"variable.language","_.*":"comment.unused","@default":"identifier"}}],[/@moduleName/,"type.identifier"]],strings:[[/"""/,{token:"string.delimiter",next:"@doubleQuotedHeredoc"}],[/'''/,{token:"string.delimiter",next:"@singleQuotedHeredoc"}],[/"/,{token:"string.delimiter",next:"@doubleQuotedString"}],[/'/,{token:"string.delimiter",next:"@singleQuotedString"}]],doubleQuotedHeredoc:[[/"""/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedHeredoc:[[/'''/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],doubleQuotedString:[[/"/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedString:[[/'/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],atoms:[[/(:)(@atomName)/,["constant.punctuation","constant"]],[/:"/,{token:"constant.delimiter",next:"@doubleQuotedStringAtom"}],[/:'/,{token:"constant.delimiter",next:"@singleQuotedStringAtom"}]],doubleQuotedStringAtom:[[/"/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringAtom:[[/'/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],sigils:[[/~[a-z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.interpol"}],[/~([A-Z]+)@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.noInterpol"}]],sigil:[[/~([a-z]|[A-Z]+)\{/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.{.}"}],[/~([a-z]|[A-Z]+)\[/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.[.]"}],[/~([a-z]|[A-Z]+)\(/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.(.)"}],[/~([a-z]|[A-Z]+)\</,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.<.>"}],[/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.$2.$2"}]],"sigilStart.interpol.s":[[/~s@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.s":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContentInterpol"}],"sigilStart.noInterpol.S":[[/~S@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.S":[[/(^|[^\\])\\@sigilEndDelimiter/,"string"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContent"}],"sigilStart.interpol.r":[[/~r@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.r":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContentInterpol"}],"sigilStart.noInterpol.R":[[/~R@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.R":[[/(^|[^\\])\\@sigilEndDelimiter/,"regexp"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContent"}],"sigilStart.interpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContentInterpol"}],"sigilStart.noInterpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol":[[/(^|[^\\])\\@sigilEndDelimiter/,"sigil"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContent"}],attributes:[[/\@(module|type)?doc (~[sS])?"""/,{token:"comment.block.documentation",next:"@doubleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?'''/,{token:"comment.block.documentation",next:"@singleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?"/,{token:"comment.block.documentation",next:"@doubleQuotedStringDocstring"}],[/\@(module|type)?doc (~[sS])?'/,{token:"comment.block.documentation",next:"@singleQuotedStringDocstring"}],[/\@(module|type)?doc false/,"comment.block.documentation"],[/\@(@variableName)/,"variable"]],doubleQuotedHeredocDocstring:[[/"""/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedHeredocDocstring:[[/'''/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],doubleQuotedStringDocstring:[[/"/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedStringDocstring:[[/'/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],symbols:[[/\?(\\.|[^\\\s])/,"number.constant"],[/&\d+/,"operator"],[/<<<|>>>/,"operator"],[/[()\[\]\{\}]|<<|>>/,"@brackets"],[/\.\.\./,"identifier"],[/=>/,"punctuation"],[/@operator/,"operator"],[/[:;,.%]/,"punctuation"]],stringContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringContent"}],stringContent:[[/./,"string"]],stringConstantContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringConstantContent"}],stringConstantContent:[[/./,"constant"]],regexpContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@regexpContent"}],regexpContent:[[/(\s)(#)(\s.*)$/,["white","comment.punctuation","comment"]],[/./,"regexp"]],sigilContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@sigilContent"}],sigilContent:[[/./,"sigil"]],docstringContent:[[/./,"comment.block.documentation"]],escapeChar:[[/@escape/,"constant.character.escape"]],interpolation:[[/#{/,{token:"delimiter.bracket.embed",next:"@interpolationContinue"}]],interpolationContinue:[[/}/,{token:"delimiter.bracket.embed",next:"@pop"}],{include:"@root"}]}};exports.conf=e;exports.language=t;
@@ -1,575 +0,0 @@
1
- /*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/
7
- var e = {
8
- comments: {
9
- lineComment: "#"
10
- },
11
- brackets: [
12
- ["{", "}"],
13
- ["[", "]"],
14
- ["(", ")"]
15
- ],
16
- surroundingPairs: [
17
- { open: "{", close: "}" },
18
- { open: "[", close: "]" },
19
- { open: "(", close: ")" },
20
- { open: "'", close: "'" },
21
- { open: '"', close: '"' }
22
- ],
23
- autoClosingPairs: [
24
- { open: "'", close: "'", notIn: ["string", "comment"] },
25
- { open: '"', close: '"', notIn: ["comment"] },
26
- { open: '"""', close: '"""' },
27
- { open: "`", close: "`", notIn: ["string", "comment"] },
28
- { open: "(", close: ")" },
29
- { open: "{", close: "}" },
30
- { open: "[", close: "]" },
31
- { open: "<<", close: ">>" }
32
- ],
33
- indentationRules: {
34
- increaseIndentPattern: /^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,
35
- decreaseIndentPattern: /^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/
36
- }
37
- }, t = {
38
- defaultToken: "source",
39
- tokenPostfix: ".elixir",
40
- brackets: [
41
- { open: "[", close: "]", token: "delimiter.square" },
42
- { open: "(", close: ")", token: "delimiter.parenthesis" },
43
- { open: "{", close: "}", token: "delimiter.curly" },
44
- { open: "<<", close: ">>", token: "delimiter.angle.special" }
45
- ],
46
- // Below are lists/regexps to which we reference later.
47
- declarationKeywords: [
48
- "def",
49
- "defp",
50
- "defn",
51
- "defnp",
52
- "defguard",
53
- "defguardp",
54
- "defmacro",
55
- "defmacrop",
56
- "defdelegate",
57
- "defcallback",
58
- "defmacrocallback",
59
- "defmodule",
60
- "defprotocol",
61
- "defexception",
62
- "defimpl",
63
- "defstruct"
64
- ],
65
- operatorKeywords: ["and", "in", "not", "or", "when"],
66
- namespaceKeywords: ["alias", "import", "require", "use"],
67
- otherKeywords: [
68
- "after",
69
- "case",
70
- "catch",
71
- "cond",
72
- "do",
73
- "else",
74
- "end",
75
- "fn",
76
- "for",
77
- "if",
78
- "quote",
79
- "raise",
80
- "receive",
81
- "rescue",
82
- "super",
83
- "throw",
84
- "try",
85
- "unless",
86
- "unquote_splicing",
87
- "unquote",
88
- "with"
89
- ],
90
- constants: ["true", "false", "nil"],
91
- nameBuiltin: ["__MODULE__", "__DIR__", "__ENV__", "__CALLER__", "__STACKTRACE__"],
92
- // Matches any of the operator names:
93
- // <<< >>> ||| &&& ^^^ ~~~ === !== ~>> <~> |~> <|> == != <= >= && || \\ <> ++ -- |> =~ -> <- ~> <~ :: .. = < > + - * / | . ^ & !
94
- operator: /-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
95
- // See https://hexdocs.pm/elixir/syntax-reference.html#variables
96
- variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
97
- // See https://hexdocs.pm/elixir/syntax-reference.html#atoms
98
- atomName: /[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,
99
- specialAtomName: /\.\.\.|<<>>|%\{\}|%|\{\}/,
100
- aliasPart: /[A-Z][a-zA-Z0-9_]*/,
101
- moduleName: /@aliasPart(?:\.@aliasPart)*/,
102
- // Sigil pairs are: """ """, ''' ''', " ", ' ', / /, | |, < >, { }, [ ], ( )
103
- sigilSymmetricDelimiter: /"""|'''|"|'|\/|\|/,
104
- sigilStartDelimiter: /@sigilSymmetricDelimiter|<|\{|\[|\(/,
105
- sigilEndDelimiter: /@sigilSymmetricDelimiter|>|\}|\]|\)/,
106
- sigilModifiers: /[a-zA-Z0-9]*/,
107
- decimal: /\d(?:_?\d)*/,
108
- hex: /[0-9a-fA-F](_?[0-9a-fA-F])*/,
109
- octal: /[0-7](_?[0-7])*/,
110
- binary: /[01](_?[01])*/,
111
- // See https://hexdocs.pm/elixir/master/String.html#module-escape-characters
112
- escape: /\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,
113
- // The keys below correspond to tokenizer states.
114
- // We start from the root state and match against its rules
115
- // until we explicitly transition into another state.
116
- // The `include` simply brings in all operations from the given state
117
- // and is useful for improving readability.
118
- tokenizer: {
119
- root: [
120
- { include: "@whitespace" },
121
- { include: "@comments" },
122
- // Keywords start as either an identifier or a string,
123
- // but end with a : so it's important to match this first.
124
- { include: "@keywordsShorthand" },
125
- { include: "@numbers" },
126
- { include: "@identifiers" },
127
- { include: "@strings" },
128
- { include: "@atoms" },
129
- { include: "@sigils" },
130
- { include: "@attributes" },
131
- { include: "@symbols" }
132
- ],
133
- // Whitespace
134
- whitespace: [[/\s+/, "white"]],
135
- // Comments
136
- comments: [[/(#)(.*)/, ["comment.punctuation", "comment"]]],
137
- // Keyword list shorthand
138
- keywordsShorthand: [
139
- [/(@atomName)(:)(\s+)/, ["constant", "constant.punctuation", "white"]],
140
- // Use positive look-ahead to ensure the string is followed by :
141
- // and should be considered a keyword.
142
- [
143
- /"(?=([^"]|#\{.*?\}|\\")*":)/,
144
- { token: "constant.delimiter", next: "@doubleQuotedStringKeyword" }
145
- ],
146
- [
147
- /'(?=([^']|#\{.*?\}|\\')*':)/,
148
- { token: "constant.delimiter", next: "@singleQuotedStringKeyword" }
149
- ]
150
- ],
151
- doubleQuotedStringKeyword: [
152
- [/":/, { token: "constant.delimiter", next: "@pop" }],
153
- { include: "@stringConstantContentInterpol" }
154
- ],
155
- singleQuotedStringKeyword: [
156
- [/':/, { token: "constant.delimiter", next: "@pop" }],
157
- { include: "@stringConstantContentInterpol" }
158
- ],
159
- // Numbers
160
- numbers: [
161
- [/0b@binary/, "number.binary"],
162
- [/0o@octal/, "number.octal"],
163
- [/0x@hex/, "number.hex"],
164
- [/@decimal\.@decimal([eE]-?@decimal)?/, "number.float"],
165
- [/@decimal/, "number"]
166
- ],
167
- // Identifiers
168
- identifiers: [
169
- // Tokenize identifier name in function-like definitions.
170
- // Note: given `def a + b, do: nil`, `a` is not a function name,
171
- // so we use negative look-ahead to ensure there's no operator.
172
- [
173
- /\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,
174
- [
175
- "keyword.declaration",
176
- "white",
177
- {
178
- cases: {
179
- unquote: "keyword",
180
- "@default": "function"
181
- }
182
- }
183
- ]
184
- ],
185
- // Tokenize function calls
186
- [
187
- // In-scope call - an identifier followed by ( or .(
188
- /(@variableName)(?=\s*\.?\s*\()/,
189
- {
190
- cases: {
191
- // Tokenize as keyword in cases like `if(..., do: ..., else: ...)`
192
- "@declarationKeywords": "keyword.declaration",
193
- "@namespaceKeywords": "keyword",
194
- "@otherKeywords": "keyword",
195
- "@default": "function.call"
196
- }
197
- }
198
- ],
199
- [
200
- // Referencing function in a module
201
- /(@moduleName)(\s*)(\.)(\s*)(@variableName)/,
202
- ["type.identifier", "white", "operator", "white", "function.call"]
203
- ],
204
- [
205
- // Referencing function in an Erlang module
206
- /(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,
207
- ["constant.punctuation", "constant", "white", "operator", "white", "function.call"]
208
- ],
209
- [
210
- // Piping into a function (tokenized separately as it may not have parentheses)
211
- /(\|>)(\s*)(@variableName)/,
212
- [
213
- "operator",
214
- "white",
215
- {
216
- cases: {
217
- "@otherKeywords": "keyword",
218
- "@default": "function.call"
219
- }
220
- }
221
- ]
222
- ],
223
- [
224
- // Function reference passed to another function
225
- /(&)(\s*)(@variableName)/,
226
- ["operator", "white", "function.call"]
227
- ],
228
- // Language keywords, builtins, constants and variables
229
- [
230
- /@variableName/,
231
- {
232
- cases: {
233
- "@declarationKeywords": "keyword.declaration",
234
- "@operatorKeywords": "keyword.operator",
235
- "@namespaceKeywords": "keyword",
236
- "@otherKeywords": "keyword",
237
- "@constants": "constant.language",
238
- "@nameBuiltin": "variable.language",
239
- "_.*": "comment.unused",
240
- "@default": "identifier"
241
- }
242
- }
243
- ],
244
- // Module names
245
- [/@moduleName/, "type.identifier"]
246
- ],
247
- // Strings
248
- strings: [
249
- [/"""/, { token: "string.delimiter", next: "@doubleQuotedHeredoc" }],
250
- [/'''/, { token: "string.delimiter", next: "@singleQuotedHeredoc" }],
251
- [/"/, { token: "string.delimiter", next: "@doubleQuotedString" }],
252
- [/'/, { token: "string.delimiter", next: "@singleQuotedString" }]
253
- ],
254
- doubleQuotedHeredoc: [
255
- [/"""/, { token: "string.delimiter", next: "@pop" }],
256
- { include: "@stringContentInterpol" }
257
- ],
258
- singleQuotedHeredoc: [
259
- [/'''/, { token: "string.delimiter", next: "@pop" }],
260
- { include: "@stringContentInterpol" }
261
- ],
262
- doubleQuotedString: [
263
- [/"/, { token: "string.delimiter", next: "@pop" }],
264
- { include: "@stringContentInterpol" }
265
- ],
266
- singleQuotedString: [
267
- [/'/, { token: "string.delimiter", next: "@pop" }],
268
- { include: "@stringContentInterpol" }
269
- ],
270
- // Atoms
271
- atoms: [
272
- [/(:)(@atomName)/, ["constant.punctuation", "constant"]],
273
- [/:"/, { token: "constant.delimiter", next: "@doubleQuotedStringAtom" }],
274
- [/:'/, { token: "constant.delimiter", next: "@singleQuotedStringAtom" }]
275
- ],
276
- doubleQuotedStringAtom: [
277
- [/"/, { token: "constant.delimiter", next: "@pop" }],
278
- { include: "@stringConstantContentInterpol" }
279
- ],
280
- singleQuotedStringAtom: [
281
- [/'/, { token: "constant.delimiter", next: "@pop" }],
282
- { include: "@stringConstantContentInterpol" }
283
- ],
284
- // Sigils
285
- // See https://elixir-lang.org/getting-started/sigils.html
286
- // Sigils allow for typing values using their textual representation.
287
- // All sigils start with ~ followed by a letter or
288
- // multi-letter uppercase starting at Elixir v1.15.0, indicating sigil type
289
- // and then a delimiter pair enclosing the textual representation.
290
- // Optional modifiers are allowed after the closing delimiter.
291
- // For instance a regular expressions can be written as:
292
- // ~r/foo|bar/ ~r{foo|bar} ~r/foo|bar/g
293
- //
294
- // In general lowercase sigils allow for interpolation
295
- // and escaped characters, whereas uppercase sigils don't
296
- //
297
- // During tokenization we want to distinguish some
298
- // specific sigil types, namely string and regexp,
299
- // so that they cen be themed separately.
300
- //
301
- // To reasonably handle all those combinations we leverage
302
- // dot-separated states, so if we transition to @sigilStart.interpol.s.{.}
303
- // then "sigilStart.interpol.s" state will match and also all
304
- // the individual dot-separated parameters can be accessed.
305
- sigils: [
306
- [/~[a-z]@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.interpol" }],
307
- [/~([A-Z]+)@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.noInterpol" }]
308
- ],
309
- sigil: [
310
- [/~([a-z]|[A-Z]+)\{/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.{.}" }],
311
- [/~([a-z]|[A-Z]+)\[/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.[.]" }],
312
- [/~([a-z]|[A-Z]+)\(/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.(.)" }],
313
- [/~([a-z]|[A-Z]+)\</, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.<.>" }],
314
- [
315
- /~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,
316
- { token: "@rematch", switchTo: "@sigilStart.$S2.$1.$2.$2" }
317
- ]
318
- ],
319
- // The definitions below expect states to be of the form:
320
- //
321
- // sigilStart.<interpol-or-noInterpol>.<sigil-letter>.<start-delimiter>.<end-delimiter>
322
- // sigilContinue.<interpol-or-noInterpol>.<sigil-letter>.<start-delimiter>.<end-delimiter>
323
- //
324
- // The sigilStart state is used only to properly classify the token (as string/regex/sigil)
325
- // and immediately switches to the sigilContinue sate, which handles the actual content
326
- // and waits for the corresponding end delimiter.
327
- "sigilStart.interpol.s": [
328
- [
329
- /~s@sigilStartDelimiter/,
330
- {
331
- token: "string.delimiter",
332
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
333
- }
334
- ]
335
- ],
336
- "sigilContinue.interpol.s": [
337
- [
338
- /(@sigilEndDelimiter)@sigilModifiers/,
339
- {
340
- cases: {
341
- "$1==$S5": { token: "string.delimiter", next: "@pop" },
342
- "@default": "string"
343
- }
344
- }
345
- ],
346
- { include: "@stringContentInterpol" }
347
- ],
348
- "sigilStart.noInterpol.S": [
349
- [
350
- /~S@sigilStartDelimiter/,
351
- {
352
- token: "string.delimiter",
353
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
354
- }
355
- ]
356
- ],
357
- "sigilContinue.noInterpol.S": [
358
- // Ignore escaped sigil end
359
- [/(^|[^\\])\\@sigilEndDelimiter/, "string"],
360
- [
361
- /(@sigilEndDelimiter)@sigilModifiers/,
362
- {
363
- cases: {
364
- "$1==$S5": { token: "string.delimiter", next: "@pop" },
365
- "@default": "string"
366
- }
367
- }
368
- ],
369
- { include: "@stringContent" }
370
- ],
371
- "sigilStart.interpol.r": [
372
- [
373
- /~r@sigilStartDelimiter/,
374
- {
375
- token: "regexp.delimiter",
376
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
377
- }
378
- ]
379
- ],
380
- "sigilContinue.interpol.r": [
381
- [
382
- /(@sigilEndDelimiter)@sigilModifiers/,
383
- {
384
- cases: {
385
- "$1==$S5": { token: "regexp.delimiter", next: "@pop" },
386
- "@default": "regexp"
387
- }
388
- }
389
- ],
390
- { include: "@regexpContentInterpol" }
391
- ],
392
- "sigilStart.noInterpol.R": [
393
- [
394
- /~R@sigilStartDelimiter/,
395
- {
396
- token: "regexp.delimiter",
397
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
398
- }
399
- ]
400
- ],
401
- "sigilContinue.noInterpol.R": [
402
- // Ignore escaped sigil end
403
- [/(^|[^\\])\\@sigilEndDelimiter/, "regexp"],
404
- [
405
- /(@sigilEndDelimiter)@sigilModifiers/,
406
- {
407
- cases: {
408
- "$1==$S5": { token: "regexp.delimiter", next: "@pop" },
409
- "@default": "regexp"
410
- }
411
- }
412
- ],
413
- { include: "@regexpContent" }
414
- ],
415
- // Fallback to the generic sigil by default
416
- "sigilStart.interpol": [
417
- [
418
- /~([a-z]|[A-Z]+)@sigilStartDelimiter/,
419
- {
420
- token: "sigil.delimiter",
421
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
422
- }
423
- ]
424
- ],
425
- "sigilContinue.interpol": [
426
- [
427
- /(@sigilEndDelimiter)@sigilModifiers/,
428
- {
429
- cases: {
430
- "$1==$S5": { token: "sigil.delimiter", next: "@pop" },
431
- "@default": "sigil"
432
- }
433
- }
434
- ],
435
- { include: "@sigilContentInterpol" }
436
- ],
437
- "sigilStart.noInterpol": [
438
- [
439
- /~([a-z]|[A-Z]+)@sigilStartDelimiter/,
440
- {
441
- token: "sigil.delimiter",
442
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
443
- }
444
- ]
445
- ],
446
- "sigilContinue.noInterpol": [
447
- // Ignore escaped sigil end
448
- [/(^|[^\\])\\@sigilEndDelimiter/, "sigil"],
449
- [
450
- /(@sigilEndDelimiter)@sigilModifiers/,
451
- {
452
- cases: {
453
- "$1==$S5": { token: "sigil.delimiter", next: "@pop" },
454
- "@default": "sigil"
455
- }
456
- }
457
- ],
458
- { include: "@sigilContent" }
459
- ],
460
- // Attributes
461
- attributes: [
462
- // Module @doc* attributes - tokenized as comments
463
- [
464
- /\@(module|type)?doc (~[sS])?"""/,
465
- {
466
- token: "comment.block.documentation",
467
- next: "@doubleQuotedHeredocDocstring"
468
- }
469
- ],
470
- [
471
- /\@(module|type)?doc (~[sS])?'''/,
472
- {
473
- token: "comment.block.documentation",
474
- next: "@singleQuotedHeredocDocstring"
475
- }
476
- ],
477
- [
478
- /\@(module|type)?doc (~[sS])?"/,
479
- {
480
- token: "comment.block.documentation",
481
- next: "@doubleQuotedStringDocstring"
482
- }
483
- ],
484
- [
485
- /\@(module|type)?doc (~[sS])?'/,
486
- {
487
- token: "comment.block.documentation",
488
- next: "@singleQuotedStringDocstring"
489
- }
490
- ],
491
- [/\@(module|type)?doc false/, "comment.block.documentation"],
492
- // Module attributes
493
- [/\@(@variableName)/, "variable"]
494
- ],
495
- doubleQuotedHeredocDocstring: [
496
- [/"""/, { token: "comment.block.documentation", next: "@pop" }],
497
- { include: "@docstringContent" }
498
- ],
499
- singleQuotedHeredocDocstring: [
500
- [/'''/, { token: "comment.block.documentation", next: "@pop" }],
501
- { include: "@docstringContent" }
502
- ],
503
- doubleQuotedStringDocstring: [
504
- [/"/, { token: "comment.block.documentation", next: "@pop" }],
505
- { include: "@docstringContent" }
506
- ],
507
- singleQuotedStringDocstring: [
508
- [/'/, { token: "comment.block.documentation", next: "@pop" }],
509
- { include: "@docstringContent" }
510
- ],
511
- // Operators, punctuation, brackets
512
- symbols: [
513
- // Code point operator (either with regular character ?a or an escaped one ?\n)
514
- [/\?(\\.|[^\\\s])/, "number.constant"],
515
- // Anonymous function arguments
516
- [/&\d+/, "operator"],
517
- // Bitshift operators (must go before delimiters, so that << >> don't match first)
518
- [/<<<|>>>/, "operator"],
519
- // Delimiter pairs
520
- [/[()\[\]\{\}]|<<|>>/, "@brackets"],
521
- // Triple dot is a valid name (must go before operators, so that .. doesn't match instead)
522
- [/\.\.\./, "identifier"],
523
- // Punctuation => (must go before operators, so it's not tokenized as = then >)
524
- [/=>/, "punctuation"],
525
- // Operators
526
- [/@operator/, "operator"],
527
- // Punctuation
528
- [/[:;,.%]/, "punctuation"]
529
- ],
530
- // Generic helpers
531
- stringContentInterpol: [
532
- { include: "@interpolation" },
533
- { include: "@escapeChar" },
534
- { include: "@stringContent" }
535
- ],
536
- stringContent: [[/./, "string"]],
537
- stringConstantContentInterpol: [
538
- { include: "@interpolation" },
539
- { include: "@escapeChar" },
540
- { include: "@stringConstantContent" }
541
- ],
542
- stringConstantContent: [[/./, "constant"]],
543
- regexpContentInterpol: [
544
- { include: "@interpolation" },
545
- { include: "@escapeChar" },
546
- { include: "@regexpContent" }
547
- ],
548
- regexpContent: [
549
- // # may be a regular regexp char, so we use a heuristic
550
- // assuming a # surrounded by whitespace is actually a comment.
551
- [/(\s)(#)(\s.*)$/, ["white", "comment.punctuation", "comment"]],
552
- [/./, "regexp"]
553
- ],
554
- sigilContentInterpol: [
555
- { include: "@interpolation" },
556
- { include: "@escapeChar" },
557
- { include: "@sigilContent" }
558
- ],
559
- sigilContent: [[/./, "sigil"]],
560
- docstringContent: [[/./, "comment.block.documentation"]],
561
- escapeChar: [[/@escape/, "constant.character.escape"]],
562
- interpolation: [[/#{/, { token: "delimiter.bracket.embed", next: "@interpolationContinue" }]],
563
- interpolationContinue: [
564
- [/}/, { token: "delimiter.bracket.embed", next: "@pop" }],
565
- // Interpolation brackets may contain arbitrary code,
566
- // so we simply match against all the root rules,
567
- // until we reach interpolation end (the above matches).
568
- { include: "@root" }
569
- ]
570
- }
571
- };
572
- export {
573
- e as conf,
574
- t as language
575
- };