monaco-editor11 1.2.1 → 1.2.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 (197) hide show
  1. package/dist/assets/editor.worker-iXcRX1Tq.js +26 -0
  2. package/dist/index.d.ts +2 -3
  3. package/dist/monaco-editor11.es.js +55 -0
  4. package/dist/monaco-editor11.umd.js +1 -0
  5. package/dist/views/Home.vue.d.ts +1 -1
  6. package/dist/worker/json.worker.js +0 -0
  7. package/package.json +9 -13
  8. package/dist/abap-BmV14C8H.js +0 -1
  9. package/dist/abap-CrvW7_qN.mjs +0 -1398
  10. package/dist/apex-BAOI8p1v.mjs +0 -327
  11. package/dist/apex-vQDebnNk.js +0 -1
  12. package/dist/azcli-BlCk_UqW.mjs +0 -68
  13. package/dist/azcli-C4hxwus7.js +0 -1
  14. package/dist/bat-DPoEelVx.mjs +0 -100
  15. package/dist/bat-DYHIOgJW.js +0 -1
  16. package/dist/bicep-BJDZ3U7c.js +0 -2
  17. package/dist/bicep-Cp1F394l.mjs +0 -102
  18. package/dist/cameligo-CWqtSlQs.mjs +0 -174
  19. package/dist/cameligo-l0J6eaPU.js +0 -1
  20. package/dist/clojure-BUv_1vEn.js +0 -1
  21. package/dist/clojure-CKBp32Gf.mjs +0 -761
  22. package/dist/coffee-CDo6vc-J.mjs +0 -232
  23. package/dist/coffee-Cw3141X6.js +0 -1
  24. package/dist/cpp-CHPWmTTa.js +0 -1
  25. package/dist/cpp-DokufPgf.mjs +0 -389
  26. package/dist/csharp-0ISFInBU.js +0 -1
  27. package/dist/csharp-BQi3szM0.mjs +0 -326
  28. package/dist/csp-BSGtCCZ-.mjs +0 -53
  29. package/dist/csp-Dcy9EUAZ.js +0 -1
  30. package/dist/css-DEPFDJfb.mjs +0 -187
  31. package/dist/css-UDjyEDNM.js +0 -3
  32. package/dist/css.worker.js +0 -66
  33. package/dist/cssMode-CZvh5Cxi.js +0 -1
  34. package/dist/cssMode-D5wFpBcJ.mjs +0 -141
  35. package/dist/cypher-BoSKj8sy.js +0 -1
  36. package/dist/cypher-DAb1vOxS.mjs +0 -263
  37. package/dist/dart-75fOVMIC.js +0 -1
  38. package/dist/dart-C8p4jewR.mjs +0 -281
  39. package/dist/dockerfile-CeTDdZJB.js +0 -1
  40. package/dist/dockerfile-DP0iLFPN.mjs +0 -130
  41. package/dist/ecl-BDQHA6fi.mjs +0 -456
  42. package/dist/ecl-BZ8GfbIS.js +0 -1
  43. package/dist/editor.worker.js +0 -1
  44. package/dist/editorWorkerHost-CXSl__Sw.mjs +0 -11917
  45. package/dist/editorWorkerHost-J3OLr02l.js +0 -33
  46. package/dist/elixir-D4II6kDM.mjs +0 -569
  47. package/dist/elixir-HwUoMs-6.js +0 -1
  48. package/dist/flow9-Co-egZvn.js +0 -1
  49. package/dist/flow9-StcnL-VB.mjs +0 -142
  50. package/dist/freemarker2-0KWO0y3D.mjs +0 -982
  51. package/dist/freemarker2-CWgJ4a-p.js +0 -3
  52. package/dist/fsharp-By4FMj_K.js +0 -1
  53. package/dist/fsharp-DdUVp3EN.mjs +0 -217
  54. package/dist/go-D0-3Iavh.js +0 -1
  55. package/dist/go-D1-I258M.mjs +0 -218
  56. package/dist/graphql-DWkL3f8U.mjs +0 -151
  57. package/dist/graphql-arXy5b1U.js +0 -1
  58. package/dist/handlebars-B3DRUYqI.js +0 -1
  59. package/dist/handlebars-CtTh3MzK.mjs +0 -412
  60. package/dist/hcl-DQpT3BXv.js +0 -1
  61. package/dist/hcl-D_0MNifv.mjs +0 -183
  62. package/dist/html-Bfagd5f8.mjs +0 -301
  63. package/dist/html-Cq6ODg2A.js +0 -1
  64. package/dist/htmlMode-BCWHN8H1.js +0 -1
  65. package/dist/htmlMode-Ca4o_48E.mjs +0 -152
  66. package/dist/index-BnVmN2qp.js +0 -875
  67. package/dist/index-CcXLAo11.js +0 -1
  68. package/dist/index-D7fx9aNv.mjs +0 -498
  69. package/dist/index-DnKFAZ-F.mjs +0 -117301
  70. package/dist/index.js +0 -1
  71. package/dist/ini-C4I2-MT7.mjs +0 -71
  72. package/dist/ini-CHrdBSR6.js +0 -1
  73. package/dist/initialize-7Tsg9DJ6.mjs +0 -44
  74. package/dist/initialize-8Cpp42Fp.js +0 -1
  75. package/dist/java-DkNlCtA8.js +0 -1
  76. package/dist/java-OBvaP_SS.mjs +0 -232
  77. package/dist/javascript-C_YSapv9.js +0 -1
  78. package/dist/javascript-D2KmymLa.mjs +0 -70
  79. package/dist/json.worker.js +0 -17
  80. package/dist/jsonMode-DaXUMuRa.js +0 -1
  81. package/dist/jsonMode-Dnqj4FWW.mjs +0 -306
  82. package/dist/julia-BmDH8Kkf.mjs +0 -511
  83. package/dist/julia-D2YHJdZy.js +0 -1
  84. package/dist/kotlin-BSyr2f_w.js +0 -1
  85. package/dist/kotlin-Dhu5AGOD.mjs +0 -252
  86. package/dist/less-C8csD237.js +0 -2
  87. package/dist/less-CzmjXREq.mjs +0 -162
  88. package/dist/lexon-CV2c4pN9.mjs +0 -157
  89. package/dist/lexon-Dg5XMXM-.js +0 -1
  90. package/dist/liquid-CQtA4TA-.mjs +0 -233
  91. package/dist/liquid-Dc6vO2KK.js +0 -1
  92. package/dist/lspLanguageFeatures-CeustN1U.js +0 -2
  93. package/dist/lspLanguageFeatures-DUzyYYsS.mjs +0 -534
  94. package/dist/lua-BOoO7Ej7.js +0 -1
  95. package/dist/lua-CFY5U8qF.mjs +0 -162
  96. package/dist/m3-BL_AnZVh.mjs +0 -210
  97. package/dist/m3-Bny7JARg.js +0 -1
  98. package/dist/main-B2xgQ6G2.mjs +0 -687
  99. package/dist/main-C27EQSK2.mjs +0 -947
  100. package/dist/main-DXJICgQq.js +0 -3
  101. package/dist/main-Dt1Bdcpc.js +0 -15
  102. package/dist/markdown-CWKQPXCv.mjs +0 -229
  103. package/dist/markdown-cseWCS9n.js +0 -1
  104. package/dist/mdx-C2nK3qTe.js +0 -1
  105. package/dist/mdx-cjfOdSKt.mjs +0 -158
  106. package/dist/mips-7JuqcyJ4.js +0 -1
  107. package/dist/mips-ButYmJ5E.mjs +0 -198
  108. package/dist/monaco-editor11.css +0 -1
  109. package/dist/msdax-BmYA5eV5.js +0 -1
  110. package/dist/msdax-C3cnXqDh.mjs +0 -375
  111. package/dist/mysql-CHTrPhJ_.js +0 -1
  112. package/dist/mysql-YlSHaf6G.mjs +0 -878
  113. package/dist/objective-c-CUdbM2R7.js +0 -1
  114. package/dist/objective-c-Dwnlproe.mjs +0 -183
  115. package/dist/pascal-CNC6uGuD.js +0 -1
  116. package/dist/pascal-UzGbSWEN.mjs +0 -251
  117. package/dist/pascaligo-BEZzSZnI.js +0 -1
  118. package/dist/pascaligo-CslTgu68.mjs +0 -164
  119. package/dist/perl-JOl0jAD9.js +0 -1
  120. package/dist/perl-oj6r_mgw.mjs +0 -626
  121. package/dist/pgsql-BlC3cJBr.js +0 -1
  122. package/dist/pgsql-DSBO0Mev.mjs +0 -851
  123. package/dist/php-6ijfJ2jK.js +0 -1
  124. package/dist/php-YzCD--7j.mjs +0 -500
  125. package/dist/pla-CmylB8vQ.mjs +0 -137
  126. package/dist/pla-DB8tU9Tm.js +0 -1
  127. package/dist/postiats-BMJJQsUH.js +0 -1
  128. package/dist/postiats-CLFW5gNY.mjs +0 -907
  129. package/dist/powerquery-CmOWUvlh.mjs +0 -890
  130. package/dist/powerquery-CoLfQ6__.js +0 -1
  131. package/dist/powershell-BA5owzqH.js +0 -1
  132. package/dist/powershell-fHQcmBLK.mjs +0 -239
  133. package/dist/protobuf-DUMRTG9C.js +0 -2
  134. package/dist/protobuf-p5BArb-9.mjs +0 -420
  135. package/dist/pug-D3HDBCR9.js +0 -1
  136. package/dist/pug-gVdUDvqf.mjs +0 -402
  137. package/dist/python-BaSW5leI.js +0 -1
  138. package/dist/python-DA6ByLCZ.mjs +0 -294
  139. package/dist/qsharp-DN7Y6XhL.js +0 -1
  140. package/dist/qsharp-DnrWSUlt.mjs +0 -301
  141. package/dist/r-Bc6rlFXl.js +0 -1
  142. package/dist/r-Cv309K2z.mjs +0 -243
  143. package/dist/razor-3z9XYGZf.mjs +0 -543
  144. package/dist/razor-nQE2Djhf.js +0 -1
  145. package/dist/redis-BVBmvApp.js +0 -1
  146. package/dist/redis-DTcS4wMj.mjs +0 -302
  147. package/dist/redshift-BdEMv0YI.js +0 -1
  148. package/dist/redshift-hLxZVESM.mjs +0 -809
  149. package/dist/restructuredtext-C898lK4f.mjs +0 -174
  150. package/dist/restructuredtext-Cwgkbiv3.js +0 -1
  151. package/dist/ruby-BPqQ0TOE.js +0 -1
  152. package/dist/ruby-CgKtnJIQ.mjs +0 -511
  153. package/dist/rust-DGojqpAN.js +0 -1
  154. package/dist/rust-bj8oxVnh.mjs +0 -343
  155. package/dist/sb-B572kJZe.js +0 -1
  156. package/dist/sb-DWynz26l.mjs +0 -115
  157. package/dist/scala-BL5z1UEd.mjs +0 -370
  158. package/dist/scala-CDQ1h1Nd.js +0 -1
  159. package/dist/scheme-CgaAfqMQ.js +0 -1
  160. package/dist/scheme-DUJsH6VU.mjs +0 -108
  161. package/dist/scss-CxjmhvaL.mjs +0 -262
  162. package/dist/scss-DZHIl239.js +0 -3
  163. package/dist/shell-D14Zs1dF.mjs +0 -221
  164. package/dist/shell-D5kOdfAA.js +0 -1
  165. package/dist/solidity-D6vCwnFo.js +0 -1
  166. package/dist/solidity-WyRm-BGK.mjs +0 -1367
  167. package/dist/sophia-BJdevZpo.js +0 -1
  168. package/dist/sophia-CKk-_Oa5.mjs +0 -199
  169. package/dist/sparql-DHtmINMZ.mjs +0 -201
  170. package/dist/sparql-v4dsLpAQ.js +0 -1
  171. package/dist/sql-Dqaj5JHC.mjs +0 -853
  172. package/dist/sql-RAt0uxGh.js +0 -1
  173. package/dist/st-Bj2IIaop.mjs +0 -416
  174. package/dist/st-CjwpLApO.js +0 -1
  175. package/dist/swift-BcIVfYEa.js +0 -3
  176. package/dist/swift-DwxP72iM.mjs +0 -312
  177. package/dist/systemverilog-CX2A8v2w.js +0 -1
  178. package/dist/systemverilog-D7wJfuql.mjs +0 -576
  179. package/dist/tcl-0ApMt-eC.mjs +0 -232
  180. package/dist/tcl-CCvdS1Ng.js +0 -1
  181. package/dist/ts.worker.js +0 -67706
  182. package/dist/tsMode-CieVaThB.js +0 -11
  183. package/dist/tsMode-pbVGEqHg.mjs +0 -946
  184. package/dist/twig-DxwbdmvQ.mjs +0 -392
  185. package/dist/twig-KWJe-gee.js +0 -1
  186. package/dist/typescript-CL7lZGgL.mjs +0 -336
  187. package/dist/typescript-D-fgoGBJ.js +0 -1
  188. package/dist/typespec-Fd-JwSuS.mjs +0 -117
  189. package/dist/typespec-gb5rMy4D.js +0 -1
  190. package/dist/vb-CxuyYE1I.mjs +0 -372
  191. package/dist/vb-D2rfixXK.js +0 -1
  192. package/dist/wgsl-DoEGc31J.mjs +0 -439
  193. package/dist/wgsl-Dpy8Oyoq.js +0 -298
  194. package/dist/xml-Dm8zU0Zq.mjs +0 -88
  195. package/dist/xml-luJ1w-__.js +0 -1
  196. package/dist/yaml-DDKFPb37.mjs +0 -199
  197. package/dist/yaml-DZkx0RTO.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BnVmN2qp.js"),t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.languages.IndentAction.Indent}}]},a={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};exports.conf=n;exports.language=a;
@@ -1,412 +0,0 @@
1
- import { l as e } from "./index-DnKFAZ-F.mjs";
2
- const t = [
3
- "area",
4
- "base",
5
- "br",
6
- "col",
7
- "embed",
8
- "hr",
9
- "img",
10
- "input",
11
- "keygen",
12
- "link",
13
- "menuitem",
14
- "meta",
15
- "param",
16
- "source",
17
- "track",
18
- "wbr"
19
- ], a = {
20
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
21
- comments: {
22
- blockComment: ["{{!--", "--}}"]
23
- },
24
- brackets: [
25
- ["<!--", "-->"],
26
- ["<", ">"],
27
- ["{{", "}}"],
28
- ["{", "}"],
29
- ["(", ")"]
30
- ],
31
- autoClosingPairs: [
32
- { open: "{", close: "}" },
33
- { open: "[", close: "]" },
34
- { open: "(", close: ")" },
35
- { open: '"', close: '"' },
36
- { open: "'", close: "'" }
37
- ],
38
- surroundingPairs: [
39
- { open: "<", close: ">" },
40
- { open: '"', close: '"' },
41
- { open: "'", close: "'" }
42
- ],
43
- onEnterRules: [
44
- {
45
- beforeText: new RegExp(
46
- `<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
47
- "i"
48
- ),
49
- afterText: /^<\/(\w[\w\d]*)\s*>$/i,
50
- action: {
51
- indentAction: e.IndentAction.IndentOutdent
52
- }
53
- },
54
- {
55
- beforeText: new RegExp(
56
- `<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
57
- "i"
58
- ),
59
- action: { indentAction: e.IndentAction.Indent }
60
- }
61
- ]
62
- }, m = {
63
- defaultToken: "",
64
- tokenPostfix: "",
65
- // ignoreCase: true,
66
- // The main tokenizer for our languages
67
- tokenizer: {
68
- root: [
69
- [/\{\{!--/, "comment.block.start.handlebars", "@commentBlock"],
70
- [/\{\{!/, "comment.start.handlebars", "@comment"],
71
- [/\{\{/, { token: "@rematch", switchTo: "@handlebarsInSimpleState.root" }],
72
- [/<!DOCTYPE/, "metatag.html", "@doctype"],
73
- [/<!--/, "comment.html", "@commentHtml"],
74
- [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
75
- [/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
76
- [/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
77
- [/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
78
- [/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
79
- [/</, "delimiter.html"],
80
- [/\{/, "delimiter.html"],
81
- [/[^<{]+/]
82
- // text
83
- ],
84
- doctype: [
85
- [
86
- /\{\{/,
87
- {
88
- token: "@rematch",
89
- switchTo: "@handlebarsInSimpleState.comment"
90
- }
91
- ],
92
- [/[^>]+/, "metatag.content.html"],
93
- [/>/, "metatag.html", "@pop"]
94
- ],
95
- comment: [
96
- [/\}\}/, "comment.end.handlebars", "@pop"],
97
- [/./, "comment.content.handlebars"]
98
- ],
99
- commentBlock: [
100
- [/--\}\}/, "comment.block.end.handlebars", "@pop"],
101
- [/./, "comment.content.handlebars"]
102
- ],
103
- commentHtml: [
104
- [
105
- /\{\{/,
106
- {
107
- token: "@rematch",
108
- switchTo: "@handlebarsInSimpleState.comment"
109
- }
110
- ],
111
- [/-->/, "comment.html", "@pop"],
112
- [/[^-]+/, "comment.content.html"],
113
- [/./, "comment.content.html"]
114
- ],
115
- otherTag: [
116
- [
117
- /\{\{/,
118
- {
119
- token: "@rematch",
120
- switchTo: "@handlebarsInSimpleState.otherTag"
121
- }
122
- ],
123
- [/\/?>/, "delimiter.html", "@pop"],
124
- [/"([^"]*)"/, "attribute.value"],
125
- [/'([^']*)'/, "attribute.value"],
126
- [/[\w\-]+/, "attribute.name"],
127
- [/=/, "delimiter"],
128
- [/[ \t\r\n]+/]
129
- // whitespace
130
- ],
131
- // -- BEGIN <script> tags handling
132
- // After <script
133
- script: [
134
- [
135
- /\{\{/,
136
- {
137
- token: "@rematch",
138
- switchTo: "@handlebarsInSimpleState.script"
139
- }
140
- ],
141
- [/type/, "attribute.name", "@scriptAfterType"],
142
- [/"([^"]*)"/, "attribute.value"],
143
- [/'([^']*)'/, "attribute.value"],
144
- [/[\w\-]+/, "attribute.name"],
145
- [/=/, "delimiter"],
146
- [
147
- />/,
148
- {
149
- token: "delimiter.html",
150
- next: "@scriptEmbedded.text/javascript",
151
- nextEmbedded: "text/javascript"
152
- }
153
- ],
154
- [/[ \t\r\n]+/],
155
- // whitespace
156
- [
157
- /(<\/)(script\s*)(>)/,
158
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
159
- ]
160
- ],
161
- // After <script ... type
162
- scriptAfterType: [
163
- [
164
- /\{\{/,
165
- {
166
- token: "@rematch",
167
- switchTo: "@handlebarsInSimpleState.scriptAfterType"
168
- }
169
- ],
170
- [/=/, "delimiter", "@scriptAfterTypeEquals"],
171
- [
172
- />/,
173
- {
174
- token: "delimiter.html",
175
- next: "@scriptEmbedded.text/javascript",
176
- nextEmbedded: "text/javascript"
177
- }
178
- ],
179
- // cover invalid e.g. <script type>
180
- [/[ \t\r\n]+/],
181
- // whitespace
182
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
183
- ],
184
- // After <script ... type =
185
- scriptAfterTypeEquals: [
186
- [
187
- /\{\{/,
188
- {
189
- token: "@rematch",
190
- switchTo: "@handlebarsInSimpleState.scriptAfterTypeEquals"
191
- }
192
- ],
193
- [
194
- /"([^"]*)"/,
195
- {
196
- token: "attribute.value",
197
- switchTo: "@scriptWithCustomType.$1"
198
- }
199
- ],
200
- [
201
- /'([^']*)'/,
202
- {
203
- token: "attribute.value",
204
- switchTo: "@scriptWithCustomType.$1"
205
- }
206
- ],
207
- [
208
- />/,
209
- {
210
- token: "delimiter.html",
211
- next: "@scriptEmbedded.text/javascript",
212
- nextEmbedded: "text/javascript"
213
- }
214
- ],
215
- // cover invalid e.g. <script type=>
216
- [/[ \t\r\n]+/],
217
- // whitespace
218
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
219
- ],
220
- // After <script ... type = $S2
221
- scriptWithCustomType: [
222
- [
223
- /\{\{/,
224
- {
225
- token: "@rematch",
226
- switchTo: "@handlebarsInSimpleState.scriptWithCustomType.$S2"
227
- }
228
- ],
229
- [
230
- />/,
231
- {
232
- token: "delimiter.html",
233
- next: "@scriptEmbedded.$S2",
234
- nextEmbedded: "$S2"
235
- }
236
- ],
237
- [/"([^"]*)"/, "attribute.value"],
238
- [/'([^']*)'/, "attribute.value"],
239
- [/[\w\-]+/, "attribute.name"],
240
- [/=/, "delimiter"],
241
- [/[ \t\r\n]+/],
242
- // whitespace
243
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
244
- ],
245
- scriptEmbedded: [
246
- [
247
- /\{\{/,
248
- {
249
- token: "@rematch",
250
- switchTo: "@handlebarsInEmbeddedState.scriptEmbedded.$S2",
251
- nextEmbedded: "@pop"
252
- }
253
- ],
254
- [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
255
- ],
256
- // -- END <script> tags handling
257
- // -- BEGIN <style> tags handling
258
- // After <style
259
- style: [
260
- [
261
- /\{\{/,
262
- {
263
- token: "@rematch",
264
- switchTo: "@handlebarsInSimpleState.style"
265
- }
266
- ],
267
- [/type/, "attribute.name", "@styleAfterType"],
268
- [/"([^"]*)"/, "attribute.value"],
269
- [/'([^']*)'/, "attribute.value"],
270
- [/[\w\-]+/, "attribute.name"],
271
- [/=/, "delimiter"],
272
- [
273
- />/,
274
- {
275
- token: "delimiter.html",
276
- next: "@styleEmbedded.text/css",
277
- nextEmbedded: "text/css"
278
- }
279
- ],
280
- [/[ \t\r\n]+/],
281
- // whitespace
282
- [
283
- /(<\/)(style\s*)(>)/,
284
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
285
- ]
286
- ],
287
- // After <style ... type
288
- styleAfterType: [
289
- [
290
- /\{\{/,
291
- {
292
- token: "@rematch",
293
- switchTo: "@handlebarsInSimpleState.styleAfterType"
294
- }
295
- ],
296
- [/=/, "delimiter", "@styleAfterTypeEquals"],
297
- [
298
- />/,
299
- {
300
- token: "delimiter.html",
301
- next: "@styleEmbedded.text/css",
302
- nextEmbedded: "text/css"
303
- }
304
- ],
305
- // cover invalid e.g. <style type>
306
- [/[ \t\r\n]+/],
307
- // whitespace
308
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
309
- ],
310
- // After <style ... type =
311
- styleAfterTypeEquals: [
312
- [
313
- /\{\{/,
314
- {
315
- token: "@rematch",
316
- switchTo: "@handlebarsInSimpleState.styleAfterTypeEquals"
317
- }
318
- ],
319
- [
320
- /"([^"]*)"/,
321
- {
322
- token: "attribute.value",
323
- switchTo: "@styleWithCustomType.$1"
324
- }
325
- ],
326
- [
327
- /'([^']*)'/,
328
- {
329
- token: "attribute.value",
330
- switchTo: "@styleWithCustomType.$1"
331
- }
332
- ],
333
- [
334
- />/,
335
- {
336
- token: "delimiter.html",
337
- next: "@styleEmbedded.text/css",
338
- nextEmbedded: "text/css"
339
- }
340
- ],
341
- // cover invalid e.g. <style type=>
342
- [/[ \t\r\n]+/],
343
- // whitespace
344
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
345
- ],
346
- // After <style ... type = $S2
347
- styleWithCustomType: [
348
- [
349
- /\{\{/,
350
- {
351
- token: "@rematch",
352
- switchTo: "@handlebarsInSimpleState.styleWithCustomType.$S2"
353
- }
354
- ],
355
- [
356
- />/,
357
- {
358
- token: "delimiter.html",
359
- next: "@styleEmbedded.$S2",
360
- nextEmbedded: "$S2"
361
- }
362
- ],
363
- [/"([^"]*)"/, "attribute.value"],
364
- [/'([^']*)'/, "attribute.value"],
365
- [/[\w\-]+/, "attribute.name"],
366
- [/=/, "delimiter"],
367
- [/[ \t\r\n]+/],
368
- // whitespace
369
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
370
- ],
371
- styleEmbedded: [
372
- [
373
- /\{\{/,
374
- {
375
- token: "@rematch",
376
- switchTo: "@handlebarsInEmbeddedState.styleEmbedded.$S2",
377
- nextEmbedded: "@pop"
378
- }
379
- ],
380
- [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
381
- ],
382
- // -- END <style> tags handling
383
- handlebarsInSimpleState: [
384
- [/\{\{\{?/, "delimiter.handlebars"],
385
- [/\}\}\}?/, { token: "delimiter.handlebars", switchTo: "@$S2.$S3" }],
386
- { include: "handlebarsRoot" }
387
- ],
388
- handlebarsInEmbeddedState: [
389
- [/\{\{\{?/, "delimiter.handlebars"],
390
- [
391
- /\}\}\}?/,
392
- {
393
- token: "delimiter.handlebars",
394
- switchTo: "@$S2.$S3",
395
- nextEmbedded: "$S3"
396
- }
397
- ],
398
- { include: "handlebarsRoot" }
399
- ],
400
- handlebarsRoot: [
401
- [/"[^"]*"/, "string.handlebars"],
402
- [/[#/][^\s}]+/, "keyword.helper.handlebars"],
403
- [/else\b/, "keyword.helper.handlebars"],
404
- [/[\s]+/],
405
- [/[^}]/, "variable.parameter.handlebars"]
406
- ]
407
- }
408
- };
409
- export {
410
- a as conf,
411
- m as language
412
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},t={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,terraformFunctions:/(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,terraformMainBlocks:/(module|data|terraform|resource|provider|variable|output|locals)/,tokenizer:{root:[[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["type","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["identifier","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,["identifier","","string","","operator","","@brackets"]],{include:"@terraform"}],terraform:[[/@terraformFunctions(\()/,["type","@brackets"]],[/[a-zA-Z_]\w*-*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"variable"}}],{include:"@whitespace"},{include:"@heredoc"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}};exports.conf=e;exports.language=t;
@@ -1,183 +0,0 @@
1
- const e = {
2
- comments: {
3
- lineComment: "#",
4
- blockComment: ["/*", "*/"]
5
- },
6
- brackets: [
7
- ["{", "}"],
8
- ["[", "]"],
9
- ["(", ")"]
10
- ],
11
- autoClosingPairs: [
12
- { open: "{", close: "}" },
13
- { open: "[", close: "]" },
14
- { open: "(", close: ")" },
15
- { open: '"', close: '"', notIn: ["string"] }
16
- ],
17
- surroundingPairs: [
18
- { open: "{", close: "}" },
19
- { open: "[", close: "]" },
20
- { open: "(", close: ")" },
21
- { open: '"', close: '"' }
22
- ]
23
- }, t = {
24
- defaultToken: "",
25
- tokenPostfix: ".hcl",
26
- keywords: [
27
- "var",
28
- "local",
29
- "path",
30
- "for_each",
31
- "any",
32
- "string",
33
- "number",
34
- "bool",
35
- "true",
36
- "false",
37
- "null",
38
- "if ",
39
- "else ",
40
- "endif ",
41
- "for ",
42
- "in",
43
- "endfor"
44
- ],
45
- operators: [
46
- "=",
47
- ">=",
48
- "<=",
49
- "==",
50
- "!=",
51
- "+",
52
- "-",
53
- "*",
54
- "/",
55
- "%",
56
- "&&",
57
- "||",
58
- "!",
59
- "<",
60
- ">",
61
- "?",
62
- "...",
63
- ":"
64
- ],
65
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
66
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
67
- terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,
68
- terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/,
69
- tokenizer: {
70
- root: [
71
- // highlight main blocks
72
- [
73
- /^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
74
- ["type", "", "string", "", "string", "", "@brackets"]
75
- ],
76
- // highlight all the remaining blocks
77
- [
78
- /(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
79
- ["identifier", "", "string", "", "string", "", "@brackets"]
80
- ],
81
- // highlight block
82
- [
83
- /(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,
84
- ["identifier", "", "string", "", "operator", "", "@brackets"]
85
- ],
86
- // terraform general highlight - shared with expressions
87
- { include: "@terraform" }
88
- ],
89
- terraform: [
90
- // highlight terraform functions
91
- [/@terraformFunctions(\()/, ["type", "@brackets"]],
92
- // all other words are variables or keywords
93
- [
94
- /[a-zA-Z_]\w*-*/,
95
- // must work with variables such as foo-bar and also with negative numbers
96
- {
97
- cases: {
98
- "@keywords": { token: "keyword.$0" },
99
- "@default": "variable"
100
- }
101
- }
102
- ],
103
- { include: "@whitespace" },
104
- { include: "@heredoc" },
105
- // delimiters and operators
106
- [/[{}()\[\]]/, "@brackets"],
107
- [/[<>](?!@symbols)/, "@brackets"],
108
- [
109
- /@symbols/,
110
- {
111
- cases: {
112
- "@operators": "operator",
113
- "@default": ""
114
- }
115
- }
116
- ],
117
- // numbers
118
- [/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
119
- [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
120
- [/\d[\d']*/, "number"],
121
- [/\d/, "number"],
122
- [/[;,.]/, "delimiter"],
123
- // delimiter: after number because of .\d floats
124
- // strings
125
- [/"/, "string", "@string"],
126
- // this will include expressions
127
- [/'/, "invalid"]
128
- ],
129
- heredoc: [
130
- [/<<[-]*\s*["]?([\w\-]+)["]?/, { token: "string.heredoc.delimiter", next: "@heredocBody.$1" }]
131
- ],
132
- heredocBody: [
133
- [
134
- /([\w\-]+)$/,
135
- {
136
- cases: {
137
- "$1==$S2": [
138
- {
139
- token: "string.heredoc.delimiter",
140
- next: "@popall"
141
- }
142
- ],
143
- "@default": "string.heredoc"
144
- }
145
- }
146
- ],
147
- [/./, "string.heredoc"]
148
- ],
149
- whitespace: [
150
- [/[ \t\r\n]+/, ""],
151
- [/\/\*/, "comment", "@comment"],
152
- [/\/\/.*$/, "comment"],
153
- [/#.*$/, "comment"]
154
- ],
155
- comment: [
156
- [/[^\/*]+/, "comment"],
157
- [/\*\//, "comment", "@pop"],
158
- [/[\/*]/, "comment"]
159
- ],
160
- string: [
161
- [/\$\{/, { token: "delimiter", next: "@stringExpression" }],
162
- [/[^\\"\$]+/, "string"],
163
- [/@escapes/, "string.escape"],
164
- [/\\./, "string.escape.invalid"],
165
- [/"/, "string", "@popall"]
166
- ],
167
- stringInsideExpression: [
168
- [/[^\\"]+/, "string"],
169
- [/@escapes/, "string.escape"],
170
- [/\\./, "string.escape.invalid"],
171
- [/"/, "string", "@pop"]
172
- ],
173
- stringExpression: [
174
- [/\}/, { token: "delimiter", next: "@pop" }],
175
- [/"/, "string", "@stringInsideExpression"],
176
- { include: "@terraform" }
177
- ]
178
- }
179
- };
180
- export {
181
- e as conf,
182
- t as language
183
- };