@tuoyuan/code-editor 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/README.md +505 -0
  2. package/dist/CodeEditor.vue.d.ts +335 -0
  3. package/dist/abap-Ck4GwL0j.js +1404 -0
  4. package/dist/abap-Dm-grL-k.cjs +6 -0
  5. package/dist/apex-BcgYgERc.cjs +6 -0
  6. package/dist/apex-ODA7HKAJ.js +332 -0
  7. package/dist/azcli-CTIyen0u.cjs +6 -0
  8. package/dist/azcli-Cb6cb8s9.js +74 -0
  9. package/dist/bat-DNcko697.cjs +6 -0
  10. package/dist/bat-DTzY2NZq.js +106 -0
  11. package/dist/bicep-BMFU7f1t.js +108 -0
  12. package/dist/bicep-CaTas9h4.cjs +7 -0
  13. package/dist/cameligo-CI3fenw2.cjs +6 -0
  14. package/dist/cameligo-NLSSnjLV.js +180 -0
  15. package/dist/clojure-BGGaGC_c.cjs +6 -0
  16. package/dist/clojure-Du0upEOV.js +767 -0
  17. package/dist/coffee-ClJtyy1o.cjs +6 -0
  18. package/dist/coffee-v4uQlkM7.js +238 -0
  19. package/dist/cpp-C8lRvf76.cjs +6 -0
  20. package/dist/cpp-D8cWT5D_.js +395 -0
  21. package/dist/csharp-Czug7i7m.js +332 -0
  22. package/dist/csharp-DWhydAB-.cjs +6 -0
  23. package/dist/csp-BWvo8sOh.cjs +6 -0
  24. package/dist/csp-C8fx6eO8.js +59 -0
  25. package/dist/css-BpNIi06k.js +193 -0
  26. package/dist/css-CFi1nolN.cjs +8 -0
  27. package/dist/cssMode-BfZeZ0sl.js +1577 -0
  28. package/dist/cssMode-CroponXs.cjs +9 -0
  29. package/dist/cypher-C17znEzs.js +269 -0
  30. package/dist/cypher-CeoUqDHe.cjs +6 -0
  31. package/dist/dart-BmDOWGHn.cjs +6 -0
  32. package/dist/dart-CYyrqmCr.js +287 -0
  33. package/dist/dockerfile-BQUsBUh7.js +136 -0
  34. package/dist/dockerfile-CughGaD6.cjs +6 -0
  35. package/dist/ecl-BDDxLC55.cjs +6 -0
  36. package/dist/ecl-CJB68izO.js +462 -0
  37. package/dist/elixir-BPaYnkX2.cjs +6 -0
  38. package/dist/elixir-DljgmHqx.js +575 -0
  39. package/dist/flow9-0BfLJTIY.js +148 -0
  40. package/dist/flow9-BYsSavfX.cjs +6 -0
  41. package/dist/formatter.d.ts +16 -0
  42. package/dist/freemarker2-CpMdvAfd.cjs +8 -0
  43. package/dist/freemarker2-DVRVJu0B.js +995 -0
  44. package/dist/fsharp-SmZEcjiu.cjs +6 -0
  45. package/dist/fsharp-lmsaS1LJ.js +223 -0
  46. package/dist/go-Tv83ayL9.js +224 -0
  47. package/dist/go-xVW5xrOi.cjs +6 -0
  48. package/dist/graphql-BH1G4Uv8.js +157 -0
  49. package/dist/graphql-BaJ0LkdR.cjs +6 -0
  50. package/dist/handlebars-8AMUT0_r.cjs +6 -0
  51. package/dist/handlebars-cspegSxe.js +425 -0
  52. package/dist/hcl-9tXVo0Oo.js +189 -0
  53. package/dist/hcl-BTIq68i_.cjs +6 -0
  54. package/dist/html-Bvlf1Z20.cjs +6 -0
  55. package/dist/html-zabMn0fr.js +314 -0
  56. package/dist/htmlMode-B3y58LIC.cjs +9 -0
  57. package/dist/htmlMode-jXZ-OnTX.js +1587 -0
  58. package/dist/index-BvnET_j2.js +132407 -0
  59. package/dist/index-CjGIE44E.cjs +1197 -0
  60. package/dist/index.d.ts +5 -0
  61. package/dist/index.js +1 -0
  62. package/dist/index.mjs +5 -0
  63. package/dist/ini-CJdCU2Im.cjs +6 -0
  64. package/dist/ini-DZX3aW6M.js +77 -0
  65. package/dist/java-Day25zBa.cjs +6 -0
  66. package/dist/java-Q9NjwWso.js +238 -0
  67. package/dist/javascript-BF91TgD3.js +76 -0
  68. package/dist/javascript-QgWqIxzo.cjs +6 -0
  69. package/dist/jsonMode-Chpjh-RM.cjs +15 -0
  70. package/dist/jsonMode-DD3uMliY.js +2002 -0
  71. package/dist/julia-BqwBsF5P.cjs +6 -0
  72. package/dist/julia-QQBeypPo.js +517 -0
  73. package/dist/kotlin-2AnhId0p.js +259 -0
  74. package/dist/kotlin-B4u9iQDL.cjs +6 -0
  75. package/dist/less-CWxTTuX7.cjs +7 -0
  76. package/dist/less-Daawp9Qu.js +168 -0
  77. package/dist/lexon-B1xVKv1m.cjs +6 -0
  78. package/dist/lexon-CqxA-4g1.js +163 -0
  79. package/dist/liquid-CsQKIvsE.cjs +6 -0
  80. package/dist/liquid-DxypC1q6.js +246 -0
  81. package/dist/lua-C9DR8JqQ.js +168 -0
  82. package/dist/lua-GQ1AlIpR.cjs +6 -0
  83. package/dist/m3-ChnU6a_2.cjs +6 -0
  84. package/dist/m3-ChoO2Aeo.js +216 -0
  85. package/dist/markdown-vGe7N__p.js +235 -0
  86. package/dist/markdown-yRKnCzup.cjs +6 -0
  87. package/dist/mdx-BvsKvd6j.cjs +6 -0
  88. package/dist/mdx-DZRrNJcb.js +171 -0
  89. package/dist/mips-B35Tctk9.js +204 -0
  90. package/dist/mips-DE1-KCxg.cjs +6 -0
  91. package/dist/monaco-worker.d.ts +2 -0
  92. package/dist/msdax-CKduWRE-.js +381 -0
  93. package/dist/msdax-D0cml5wZ.cjs +6 -0
  94. package/dist/mysql-D4V3ltpC.js +884 -0
  95. package/dist/mysql-DLWkbGoZ.cjs +6 -0
  96. package/dist/objective-c-CaS419yz.js +189 -0
  97. package/dist/objective-c-aq90HTjV.cjs +6 -0
  98. package/dist/pascal-CzzqMa-q.js +257 -0
  99. package/dist/pascal-Tx_vZ5dG.cjs +6 -0
  100. package/dist/pascaligo-DPbJfhBm.js +170 -0
  101. package/dist/pascaligo-D_Ri2CTv.cjs +6 -0
  102. package/dist/perl-CswrnJgZ.cjs +6 -0
  103. package/dist/perl-DiakDHGa.js +632 -0
  104. package/dist/pgsql-CCS271_e.cjs +6 -0
  105. package/dist/pgsql-FgzHGfbe.js +857 -0
  106. package/dist/php-BtenrrrR.cjs +6 -0
  107. package/dist/php-DeEgUIDo.js +506 -0
  108. package/dist/pla-BtA__bSx.js +143 -0
  109. package/dist/pla-DqtRVxAK.cjs +6 -0
  110. package/dist/postiats-CDpKZOjz.js +913 -0
  111. package/dist/postiats-CMjeSPtv.cjs +6 -0
  112. package/dist/powerquery-C4wMFtve.js +896 -0
  113. package/dist/powerquery-DMrlf6nl.cjs +6 -0
  114. package/dist/powershell-BIXcUAIq.js +245 -0
  115. package/dist/powershell-BzvWvXBW.cjs +6 -0
  116. package/dist/protobuf-BHrBiKx5.js +426 -0
  117. package/dist/protobuf-BkfVMs3q.cjs +7 -0
  118. package/dist/pug-BgHHt25K.cjs +6 -0
  119. package/dist/pug-D_c6Bxex.js +408 -0
  120. package/dist/python-CDI0D2Kf.cjs +6 -0
  121. package/dist/python-CXOcTmBp.js +307 -0
  122. package/dist/qsharp-BS_wm4zq.cjs +6 -0
  123. package/dist/qsharp-Bmp6Uoth.js +291 -0
  124. package/dist/r-Cw-pZRR6.js +249 -0
  125. package/dist/r-XsO4bdi0.cjs +6 -0
  126. package/dist/razor-CAIWGDkN.cjs +6 -0
  127. package/dist/razor-Do5Lpn1p.js +556 -0
  128. package/dist/redis-D5elYsZS.cjs +6 -0
  129. package/dist/redis-DSkWtKTU.js +308 -0
  130. package/dist/redshift-BrAReR9w.cjs +6 -0
  131. package/dist/redshift-G3V-UH7H.js +815 -0
  132. package/dist/restructuredtext-C3HS0Vuf.js +180 -0
  133. package/dist/restructuredtext-CzNfc37y.cjs +6 -0
  134. package/dist/ruby-CFRrX6F7.cjs +6 -0
  135. package/dist/ruby-DdxOY_t-.js +517 -0
  136. package/dist/rust-BgYTY-pT.cjs +6 -0
  137. package/dist/rust-CHLNe-uh.js +349 -0
  138. package/dist/sb-DjdwHjNi.cjs +6 -0
  139. package/dist/sb-VgZvRVjv.js +121 -0
  140. package/dist/scala-BEo281v6.js +376 -0
  141. package/dist/scala-C9e5dt2E.cjs +6 -0
  142. package/dist/scheme-BPzKEKRg.cjs +6 -0
  143. package/dist/scheme-BwtlTEx9.js +114 -0
  144. package/dist/scss-B_KRI23k.cjs +8 -0
  145. package/dist/scss-DNHJcE5b.js +268 -0
  146. package/dist/shell-961u9U9E.cjs +6 -0
  147. package/dist/shell-CYXbUHt6.js +227 -0
  148. package/dist/solidity-B94td9D0.js +1373 -0
  149. package/dist/solidity-DyAQZQb-.cjs +6 -0
  150. package/dist/sophia-C67C1dNJ.cjs +6 -0
  151. package/dist/sophia-CgOMMImk.js +205 -0
  152. package/dist/sparql-CmRbqkGW.js +207 -0
  153. package/dist/sparql-DTHixtMm.cjs +6 -0
  154. package/dist/sql-CX8rIh5F.cjs +6 -0
  155. package/dist/sql-DVsVTphc.js +859 -0
  156. package/dist/st-ATFa4Vu3.js +422 -0
  157. package/dist/st-CBQkFfzG.cjs +6 -0
  158. package/dist/style.css +1 -0
  159. package/dist/swift-K4rp2L0u.js +318 -0
  160. package/dist/swift-XvmCMD7s.cjs +8 -0
  161. package/dist/systemverilog-D0lDJRC5.cjs +6 -0
  162. package/dist/systemverilog-YgLuECrg.js +582 -0
  163. package/dist/tcl-BHcJGOmo.js +238 -0
  164. package/dist/tcl-Ju0vlxf3.cjs +6 -0
  165. package/dist/tsMode-D7bHvHeH.cjs +16 -0
  166. package/dist/tsMode-DiYbk3vf.js +895 -0
  167. package/dist/twig-B1JhL8Uy.cjs +6 -0
  168. package/dist/twig-sVb_x968.js +398 -0
  169. package/dist/types.d.ts +16 -0
  170. package/dist/typescript-CI6w3N2S.cjs +6 -0
  171. package/dist/typescript-DFdjl8Xj.js +349 -0
  172. package/dist/typespec-BSdcQAUL.js +123 -0
  173. package/dist/typespec-u6UGyzVa.cjs +6 -0
  174. package/dist/vb-BZywMj6s.js +378 -0
  175. package/dist/vb-CB1voSvV.cjs +6 -0
  176. package/dist/wgsl-eG2bS915.js +445 -0
  177. package/dist/wgsl-eXQZam6Q.cjs +303 -0
  178. package/dist/xml-CJndgX4z.js +101 -0
  179. package/dist/xml-CO5xAOVk.cjs +6 -0
  180. package/dist/yaml--krIkoJ8.js +212 -0
  181. package/dist/yaml-BYk2IWKs.cjs +6 -0
  182. package/package.json +73 -0
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","π","ℯ","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","÷","∈","∉","∋","∌","∘","√","∛","∩","∪","≈","≉","≠","≡","≢","≤","≥","⊆","⊇","⊈","⊉","⊊","⊋","⊻"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/π|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}};exports.conf=e;exports.language=t;
@@ -0,0 +1,517 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/
7
+ var e = {
8
+ brackets: [
9
+ ["{", "}"],
10
+ ["[", "]"],
11
+ ["(", ")"]
12
+ ],
13
+ autoClosingPairs: [
14
+ { open: "{", close: "}" },
15
+ { open: "[", close: "]" },
16
+ { open: "(", close: ")" },
17
+ { open: '"', close: '"' },
18
+ { open: "'", close: "'" }
19
+ ],
20
+ surroundingPairs: [
21
+ { open: "{", close: "}" },
22
+ { open: "[", close: "]" },
23
+ { open: "(", close: ")" },
24
+ { open: '"', close: '"' },
25
+ { open: "'", close: "'" }
26
+ ]
27
+ }, t = {
28
+ tokenPostfix: ".julia",
29
+ keywords: [
30
+ "begin",
31
+ "while",
32
+ "if",
33
+ "for",
34
+ "try",
35
+ "return",
36
+ "break",
37
+ "continue",
38
+ "function",
39
+ "macro",
40
+ "quote",
41
+ "let",
42
+ "local",
43
+ "global",
44
+ "const",
45
+ "do",
46
+ "struct",
47
+ "module",
48
+ "baremodule",
49
+ "using",
50
+ "import",
51
+ "export",
52
+ "end",
53
+ "else",
54
+ "elseif",
55
+ "catch",
56
+ "finally",
57
+ "mutable",
58
+ "primitive",
59
+ "abstract",
60
+ "type",
61
+ "in",
62
+ "isa",
63
+ "where",
64
+ "new"
65
+ ],
66
+ types: [
67
+ "LinRange",
68
+ "LineNumberNode",
69
+ "LinearIndices",
70
+ "LoadError",
71
+ "MIME",
72
+ "Matrix",
73
+ "Method",
74
+ "MethodError",
75
+ "Missing",
76
+ "MissingException",
77
+ "Module",
78
+ "NTuple",
79
+ "NamedTuple",
80
+ "Nothing",
81
+ "Number",
82
+ "OrdinalRange",
83
+ "OutOfMemoryError",
84
+ "OverflowError",
85
+ "Pair",
86
+ "PartialQuickSort",
87
+ "PermutedDimsArray",
88
+ "Pipe",
89
+ "Ptr",
90
+ "QuoteNode",
91
+ "Rational",
92
+ "RawFD",
93
+ "ReadOnlyMemoryError",
94
+ "Real",
95
+ "ReentrantLock",
96
+ "Ref",
97
+ "Regex",
98
+ "RegexMatch",
99
+ "RoundingMode",
100
+ "SegmentationFault",
101
+ "Set",
102
+ "Signed",
103
+ "Some",
104
+ "StackOverflowError",
105
+ "StepRange",
106
+ "StepRangeLen",
107
+ "StridedArray",
108
+ "StridedMatrix",
109
+ "StridedVecOrMat",
110
+ "StridedVector",
111
+ "String",
112
+ "StringIndexError",
113
+ "SubArray",
114
+ "SubString",
115
+ "SubstitutionString",
116
+ "Symbol",
117
+ "SystemError",
118
+ "Task",
119
+ "Text",
120
+ "TextDisplay",
121
+ "Timer",
122
+ "Tuple",
123
+ "Type",
124
+ "TypeError",
125
+ "TypeVar",
126
+ "UInt",
127
+ "UInt128",
128
+ "UInt16",
129
+ "UInt32",
130
+ "UInt64",
131
+ "UInt8",
132
+ "UndefInitializer",
133
+ "AbstractArray",
134
+ "UndefKeywordError",
135
+ "AbstractChannel",
136
+ "UndefRefError",
137
+ "AbstractChar",
138
+ "UndefVarError",
139
+ "AbstractDict",
140
+ "Union",
141
+ "AbstractDisplay",
142
+ "UnionAll",
143
+ "AbstractFloat",
144
+ "UnitRange",
145
+ "AbstractIrrational",
146
+ "Unsigned",
147
+ "AbstractMatrix",
148
+ "AbstractRange",
149
+ "Val",
150
+ "AbstractSet",
151
+ "Vararg",
152
+ "AbstractString",
153
+ "VecElement",
154
+ "AbstractUnitRange",
155
+ "VecOrMat",
156
+ "AbstractVecOrMat",
157
+ "Vector",
158
+ "AbstractVector",
159
+ "VersionNumber",
160
+ "Any",
161
+ "WeakKeyDict",
162
+ "ArgumentError",
163
+ "WeakRef",
164
+ "Array",
165
+ "AssertionError",
166
+ "BigFloat",
167
+ "BigInt",
168
+ "BitArray",
169
+ "BitMatrix",
170
+ "BitSet",
171
+ "BitVector",
172
+ "Bool",
173
+ "BoundsError",
174
+ "CapturedException",
175
+ "CartesianIndex",
176
+ "CartesianIndices",
177
+ "Cchar",
178
+ "Cdouble",
179
+ "Cfloat",
180
+ "Channel",
181
+ "Char",
182
+ "Cint",
183
+ "Cintmax_t",
184
+ "Clong",
185
+ "Clonglong",
186
+ "Cmd",
187
+ "Colon",
188
+ "Complex",
189
+ "ComplexF16",
190
+ "ComplexF32",
191
+ "ComplexF64",
192
+ "CompositeException",
193
+ "Condition",
194
+ "Cptrdiff_t",
195
+ "Cshort",
196
+ "Csize_t",
197
+ "Cssize_t",
198
+ "Cstring",
199
+ "Cuchar",
200
+ "Cuint",
201
+ "Cuintmax_t",
202
+ "Culong",
203
+ "Culonglong",
204
+ "Cushort",
205
+ "Cvoid",
206
+ "Cwchar_t",
207
+ "Cwstring",
208
+ "DataType",
209
+ "DenseArray",
210
+ "DenseMatrix",
211
+ "DenseVecOrMat",
212
+ "DenseVector",
213
+ "Dict",
214
+ "DimensionMismatch",
215
+ "Dims",
216
+ "DivideError",
217
+ "DomainError",
218
+ "EOFError",
219
+ "Enum",
220
+ "ErrorException",
221
+ "Exception",
222
+ "ExponentialBackOff",
223
+ "Expr",
224
+ "Float16",
225
+ "Float32",
226
+ "Float64",
227
+ "Function",
228
+ "GlobalRef",
229
+ "HTML",
230
+ "IO",
231
+ "IOBuffer",
232
+ "IOContext",
233
+ "IOStream",
234
+ "IdDict",
235
+ "IndexCartesian",
236
+ "IndexLinear",
237
+ "IndexStyle",
238
+ "InexactError",
239
+ "InitError",
240
+ "Int",
241
+ "Int128",
242
+ "Int16",
243
+ "Int32",
244
+ "Int64",
245
+ "Int8",
246
+ "Integer",
247
+ "InterruptException",
248
+ "InvalidStateException",
249
+ "Irrational",
250
+ "KeyError"
251
+ ],
252
+ keywordops: ["<:", ">:", ":", "=>", "...", ".", "->", "?"],
253
+ allops: /[^\w\d\s()\[\]{}"'#]+/,
254
+ constants: [
255
+ "true",
256
+ "false",
257
+ "nothing",
258
+ "missing",
259
+ "undef",
260
+ "Inf",
261
+ "pi",
262
+ "NaN",
263
+ "π",
264
+ "ℯ",
265
+ "ans",
266
+ "PROGRAM_FILE",
267
+ "ARGS",
268
+ "C_NULL",
269
+ "VERSION",
270
+ "DEPOT_PATH",
271
+ "LOAD_PATH"
272
+ ],
273
+ operators: [
274
+ "!",
275
+ "!=",
276
+ "!==",
277
+ "%",
278
+ "&",
279
+ "*",
280
+ "+",
281
+ "-",
282
+ "/",
283
+ "//",
284
+ "<",
285
+ "<<",
286
+ "<=",
287
+ "==",
288
+ "===",
289
+ "=>",
290
+ ">",
291
+ ">=",
292
+ ">>",
293
+ ">>>",
294
+ "\\",
295
+ "^",
296
+ "|",
297
+ "|>",
298
+ "~",
299
+ "÷",
300
+ "∈",
301
+ "∉",
302
+ "∋",
303
+ "∌",
304
+ "∘",
305
+ "√",
306
+ "∛",
307
+ "∩",
308
+ "∪",
309
+ "≈",
310
+ "≉",
311
+ "≠",
312
+ "≡",
313
+ "≢",
314
+ "≤",
315
+ "≥",
316
+ "⊆",
317
+ "⊇",
318
+ "⊈",
319
+ "⊉",
320
+ "⊊",
321
+ "⊋",
322
+ "⊻"
323
+ ],
324
+ brackets: [
325
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
326
+ { open: "{", close: "}", token: "delimiter.curly" },
327
+ { open: "[", close: "]", token: "delimiter.square" }
328
+ ],
329
+ ident: /π|ℯ|\b(?!\d)\w+\b/,
330
+ // escape sequences
331
+ escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
332
+ escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
333
+ // The main tokenizer for our languages
334
+ tokenizer: {
335
+ root: [
336
+ [/(::)\s*|\b(isa)\s+/, "keyword", "@typeanno"],
337
+ [/\b(isa)(\s*\(@ident\s*,\s*)/, ["keyword", { token: "", next: "@typeanno" }]],
338
+ [/\b(type|struct)[ \t]+/, "keyword", "@typeanno"],
339
+ // symbols
340
+ [/^\s*:@ident[!?]?/, "metatag"],
341
+ [/(return)(\s*:@ident[!?]?)/, ["keyword", "metatag"]],
342
+ [/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/, ["", "metatag"]],
343
+ [/:\(/, "metatag", "@quote"],
344
+ // regular expressions
345
+ [/r"""/, "regexp.delim", "@tregexp"],
346
+ [/r"/, "regexp.delim", "@sregexp"],
347
+ // strings
348
+ [/raw"""/, "string.delim", "@rtstring"],
349
+ [/[bv]?"""/, "string.delim", "@dtstring"],
350
+ [/raw"/, "string.delim", "@rsstring"],
351
+ [/[bv]?"/, "string.delim", "@dsstring"],
352
+ [
353
+ /(@ident)\{/,
354
+ {
355
+ cases: {
356
+ "$1@types": { token: "type", next: "@gen" },
357
+ "@default": { token: "type", next: "@gen" }
358
+ }
359
+ }
360
+ ],
361
+ [
362
+ /@ident[!?'']?(?=\.?\()/,
363
+ {
364
+ cases: {
365
+ "@types": "type",
366
+ "@keywords": "keyword",
367
+ "@constants": "variable",
368
+ "@default": "keyword.flow"
369
+ }
370
+ }
371
+ ],
372
+ [
373
+ /@ident[!?']?/,
374
+ {
375
+ cases: {
376
+ "@types": "type",
377
+ "@keywords": "keyword",
378
+ "@constants": "variable",
379
+ "@default": "identifier"
380
+ }
381
+ }
382
+ ],
383
+ [/\$\w+/, "key"],
384
+ [/\$\(/, "key", "@paste"],
385
+ [/@@@ident/, "annotation"],
386
+ // whitespace
387
+ { include: "@whitespace" },
388
+ // characters
389
+ [/'(?:@escapes|.)'/, "string.character"],
390
+ // delimiters and operators
391
+ [/[()\[\]{}]/, "@brackets"],
392
+ [
393
+ /@allops/,
394
+ {
395
+ cases: {
396
+ "@keywordops": "keyword",
397
+ "@operators": "operator"
398
+ }
399
+ }
400
+ ],
401
+ [/[;,]/, "delimiter"],
402
+ // numbers
403
+ [/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"],
404
+ [/0[_oO][0-7](_?[0-7])*/, "number.octal"],
405
+ [/0[bB][01](_?[01])*/, "number.binary"],
406
+ [/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/, "number"]
407
+ ],
408
+ // type
409
+ typeanno: [
410
+ [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@gen"],
411
+ [/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/, ["type", "keyword"]],
412
+ [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type", "@pop"],
413
+ ["", "", "@pop"]
414
+ ],
415
+ // generic type
416
+ gen: [
417
+ [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@push"],
418
+ [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type"],
419
+ [/<:/, "keyword"],
420
+ [/(\})(\s*<:\s*)/, ["type", { token: "keyword", next: "@pop" }]],
421
+ [/\}/, "type", "@pop"],
422
+ { include: "@root" }
423
+ ],
424
+ // $(...)
425
+ quote: [
426
+ [/\$\(/, "key", "@paste"],
427
+ [/\(/, "@brackets", "@paren"],
428
+ [/\)/, "metatag", "@pop"],
429
+ { include: "@root" }
430
+ ],
431
+ // :(...)
432
+ paste: [
433
+ [/:\(/, "metatag", "@quote"],
434
+ [/\(/, "@brackets", "@paren"],
435
+ [/\)/, "key", "@pop"],
436
+ { include: "@root" }
437
+ ],
438
+ // (...)
439
+ paren: [
440
+ [/\$\(/, "key", "@paste"],
441
+ [/:\(/, "metatag", "@quote"],
442
+ [/\(/, "@brackets", "@push"],
443
+ [/\)/, "@brackets", "@pop"],
444
+ { include: "@root" }
445
+ ],
446
+ // r"egex string"
447
+ sregexp: [
448
+ [/^.*/, "invalid"],
449
+ [/[^\\"()\[\]{}]/, "regexp"],
450
+ [/[()\[\]{}]/, "@brackets"],
451
+ [/\\./, "operator.scss"],
452
+ [/"[imsx]*/, "regexp.delim", "@pop"]
453
+ ],
454
+ tregexp: [
455
+ [/[^\\"()\[\]{}]/, "regexp"],
456
+ [/[()\[\]{}]/, "@brackets"],
457
+ [/\\./, "operator.scss"],
458
+ [/"(?!"")/, "string"],
459
+ [/"""[imsx]*/, "regexp.delim", "@pop"]
460
+ ],
461
+ // raw"string"
462
+ rsstring: [
463
+ [/^.*/, "invalid"],
464
+ [/[^\\"]/, "string"],
465
+ [/\\./, "string.escape"],
466
+ [/"/, "string.delim", "@pop"]
467
+ ],
468
+ rtstring: [
469
+ [/[^\\"]/, "string"],
470
+ [/\\./, "string.escape"],
471
+ [/"(?!"")/, "string"],
472
+ [/"""/, "string.delim", "@pop"]
473
+ ],
474
+ // "string".
475
+ dsstring: [
476
+ [/^.*/, "invalid"],
477
+ [/[^\\"\$]/, "string"],
478
+ [/\$/, "", "@interpolated"],
479
+ [/@escapes/, "string.escape"],
480
+ [/\\./, "string.escape.invalid"],
481
+ [/"/, "string.delim", "@pop"]
482
+ ],
483
+ dtstring: [
484
+ [/[^\\"\$]/, "string"],
485
+ [/\$/, "", "@interpolated"],
486
+ [/@escapes/, "string.escape"],
487
+ [/\\./, "string.escape.invalid"],
488
+ [/"(?!"")/, "string"],
489
+ [/"""/, "string.delim", "@pop"]
490
+ ],
491
+ // interpolated sequence
492
+ interpolated: [
493
+ [/\(/, { token: "", switchTo: "@interpolated_compound" }],
494
+ [/[a-zA-Z_]\w*/, "identifier"],
495
+ ["", "", "@pop"]
496
+ // just a $ is interpreted as a $
497
+ ],
498
+ // any code
499
+ interpolated_compound: [[/\)/, "", "@pop"], { include: "@root" }],
500
+ // whitespace & comments
501
+ whitespace: [
502
+ [/[ \t\r\n]+/, ""],
503
+ [/#=/, "comment", "@multi_comment"],
504
+ [/#.*$/, "comment"]
505
+ ],
506
+ multi_comment: [
507
+ [/#=/, "comment", "@push"],
508
+ [/=#/, "comment", "@pop"],
509
+ [/=(?!#)|#(?!=)/, "comment"],
510
+ [/[^#=]+/, "comment"]
511
+ ]
512
+ }
513
+ };
514
+ export {
515
+ e as conf,
516
+ t as language
517
+ };