@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.
- package/README.md +505 -0
- package/dist/CodeEditor.vue.d.ts +335 -0
- package/dist/abap-Ck4GwL0j.js +1404 -0
- package/dist/abap-Dm-grL-k.cjs +6 -0
- package/dist/apex-BcgYgERc.cjs +6 -0
- package/dist/apex-ODA7HKAJ.js +332 -0
- package/dist/azcli-CTIyen0u.cjs +6 -0
- package/dist/azcli-Cb6cb8s9.js +74 -0
- package/dist/bat-DNcko697.cjs +6 -0
- package/dist/bat-DTzY2NZq.js +106 -0
- package/dist/bicep-BMFU7f1t.js +108 -0
- package/dist/bicep-CaTas9h4.cjs +7 -0
- package/dist/cameligo-CI3fenw2.cjs +6 -0
- package/dist/cameligo-NLSSnjLV.js +180 -0
- package/dist/clojure-BGGaGC_c.cjs +6 -0
- package/dist/clojure-Du0upEOV.js +767 -0
- package/dist/coffee-ClJtyy1o.cjs +6 -0
- package/dist/coffee-v4uQlkM7.js +238 -0
- package/dist/cpp-C8lRvf76.cjs +6 -0
- package/dist/cpp-D8cWT5D_.js +395 -0
- package/dist/csharp-Czug7i7m.js +332 -0
- package/dist/csharp-DWhydAB-.cjs +6 -0
- package/dist/csp-BWvo8sOh.cjs +6 -0
- package/dist/csp-C8fx6eO8.js +59 -0
- package/dist/css-BpNIi06k.js +193 -0
- package/dist/css-CFi1nolN.cjs +8 -0
- package/dist/cssMode-BfZeZ0sl.js +1577 -0
- package/dist/cssMode-CroponXs.cjs +9 -0
- package/dist/cypher-C17znEzs.js +269 -0
- package/dist/cypher-CeoUqDHe.cjs +6 -0
- package/dist/dart-BmDOWGHn.cjs +6 -0
- package/dist/dart-CYyrqmCr.js +287 -0
- package/dist/dockerfile-BQUsBUh7.js +136 -0
- package/dist/dockerfile-CughGaD6.cjs +6 -0
- package/dist/ecl-BDDxLC55.cjs +6 -0
- package/dist/ecl-CJB68izO.js +462 -0
- package/dist/elixir-BPaYnkX2.cjs +6 -0
- package/dist/elixir-DljgmHqx.js +575 -0
- package/dist/flow9-0BfLJTIY.js +148 -0
- package/dist/flow9-BYsSavfX.cjs +6 -0
- package/dist/formatter.d.ts +16 -0
- package/dist/freemarker2-CpMdvAfd.cjs +8 -0
- package/dist/freemarker2-DVRVJu0B.js +995 -0
- package/dist/fsharp-SmZEcjiu.cjs +6 -0
- package/dist/fsharp-lmsaS1LJ.js +223 -0
- package/dist/go-Tv83ayL9.js +224 -0
- package/dist/go-xVW5xrOi.cjs +6 -0
- package/dist/graphql-BH1G4Uv8.js +157 -0
- package/dist/graphql-BaJ0LkdR.cjs +6 -0
- package/dist/handlebars-8AMUT0_r.cjs +6 -0
- package/dist/handlebars-cspegSxe.js +425 -0
- package/dist/hcl-9tXVo0Oo.js +189 -0
- package/dist/hcl-BTIq68i_.cjs +6 -0
- package/dist/html-Bvlf1Z20.cjs +6 -0
- package/dist/html-zabMn0fr.js +314 -0
- package/dist/htmlMode-B3y58LIC.cjs +9 -0
- package/dist/htmlMode-jXZ-OnTX.js +1587 -0
- package/dist/index-BvnET_j2.js +132407 -0
- package/dist/index-CjGIE44E.cjs +1197 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +5 -0
- package/dist/ini-CJdCU2Im.cjs +6 -0
- package/dist/ini-DZX3aW6M.js +77 -0
- package/dist/java-Day25zBa.cjs +6 -0
- package/dist/java-Q9NjwWso.js +238 -0
- package/dist/javascript-BF91TgD3.js +76 -0
- package/dist/javascript-QgWqIxzo.cjs +6 -0
- package/dist/jsonMode-Chpjh-RM.cjs +15 -0
- package/dist/jsonMode-DD3uMliY.js +2002 -0
- package/dist/julia-BqwBsF5P.cjs +6 -0
- package/dist/julia-QQBeypPo.js +517 -0
- package/dist/kotlin-2AnhId0p.js +259 -0
- package/dist/kotlin-B4u9iQDL.cjs +6 -0
- package/dist/less-CWxTTuX7.cjs +7 -0
- package/dist/less-Daawp9Qu.js +168 -0
- package/dist/lexon-B1xVKv1m.cjs +6 -0
- package/dist/lexon-CqxA-4g1.js +163 -0
- package/dist/liquid-CsQKIvsE.cjs +6 -0
- package/dist/liquid-DxypC1q6.js +246 -0
- package/dist/lua-C9DR8JqQ.js +168 -0
- package/dist/lua-GQ1AlIpR.cjs +6 -0
- package/dist/m3-ChnU6a_2.cjs +6 -0
- package/dist/m3-ChoO2Aeo.js +216 -0
- package/dist/markdown-vGe7N__p.js +235 -0
- package/dist/markdown-yRKnCzup.cjs +6 -0
- package/dist/mdx-BvsKvd6j.cjs +6 -0
- package/dist/mdx-DZRrNJcb.js +171 -0
- package/dist/mips-B35Tctk9.js +204 -0
- package/dist/mips-DE1-KCxg.cjs +6 -0
- package/dist/monaco-worker.d.ts +2 -0
- package/dist/msdax-CKduWRE-.js +381 -0
- package/dist/msdax-D0cml5wZ.cjs +6 -0
- package/dist/mysql-D4V3ltpC.js +884 -0
- package/dist/mysql-DLWkbGoZ.cjs +6 -0
- package/dist/objective-c-CaS419yz.js +189 -0
- package/dist/objective-c-aq90HTjV.cjs +6 -0
- package/dist/pascal-CzzqMa-q.js +257 -0
- package/dist/pascal-Tx_vZ5dG.cjs +6 -0
- package/dist/pascaligo-DPbJfhBm.js +170 -0
- package/dist/pascaligo-D_Ri2CTv.cjs +6 -0
- package/dist/perl-CswrnJgZ.cjs +6 -0
- package/dist/perl-DiakDHGa.js +632 -0
- package/dist/pgsql-CCS271_e.cjs +6 -0
- package/dist/pgsql-FgzHGfbe.js +857 -0
- package/dist/php-BtenrrrR.cjs +6 -0
- package/dist/php-DeEgUIDo.js +506 -0
- package/dist/pla-BtA__bSx.js +143 -0
- package/dist/pla-DqtRVxAK.cjs +6 -0
- package/dist/postiats-CDpKZOjz.js +913 -0
- package/dist/postiats-CMjeSPtv.cjs +6 -0
- package/dist/powerquery-C4wMFtve.js +896 -0
- package/dist/powerquery-DMrlf6nl.cjs +6 -0
- package/dist/powershell-BIXcUAIq.js +245 -0
- package/dist/powershell-BzvWvXBW.cjs +6 -0
- package/dist/protobuf-BHrBiKx5.js +426 -0
- package/dist/protobuf-BkfVMs3q.cjs +7 -0
- package/dist/pug-BgHHt25K.cjs +6 -0
- package/dist/pug-D_c6Bxex.js +408 -0
- package/dist/python-CDI0D2Kf.cjs +6 -0
- package/dist/python-CXOcTmBp.js +307 -0
- package/dist/qsharp-BS_wm4zq.cjs +6 -0
- package/dist/qsharp-Bmp6Uoth.js +291 -0
- package/dist/r-Cw-pZRR6.js +249 -0
- package/dist/r-XsO4bdi0.cjs +6 -0
- package/dist/razor-CAIWGDkN.cjs +6 -0
- package/dist/razor-Do5Lpn1p.js +556 -0
- package/dist/redis-D5elYsZS.cjs +6 -0
- package/dist/redis-DSkWtKTU.js +308 -0
- package/dist/redshift-BrAReR9w.cjs +6 -0
- package/dist/redshift-G3V-UH7H.js +815 -0
- package/dist/restructuredtext-C3HS0Vuf.js +180 -0
- package/dist/restructuredtext-CzNfc37y.cjs +6 -0
- package/dist/ruby-CFRrX6F7.cjs +6 -0
- package/dist/ruby-DdxOY_t-.js +517 -0
- package/dist/rust-BgYTY-pT.cjs +6 -0
- package/dist/rust-CHLNe-uh.js +349 -0
- package/dist/sb-DjdwHjNi.cjs +6 -0
- package/dist/sb-VgZvRVjv.js +121 -0
- package/dist/scala-BEo281v6.js +376 -0
- package/dist/scala-C9e5dt2E.cjs +6 -0
- package/dist/scheme-BPzKEKRg.cjs +6 -0
- package/dist/scheme-BwtlTEx9.js +114 -0
- package/dist/scss-B_KRI23k.cjs +8 -0
- package/dist/scss-DNHJcE5b.js +268 -0
- package/dist/shell-961u9U9E.cjs +6 -0
- package/dist/shell-CYXbUHt6.js +227 -0
- package/dist/solidity-B94td9D0.js +1373 -0
- package/dist/solidity-DyAQZQb-.cjs +6 -0
- package/dist/sophia-C67C1dNJ.cjs +6 -0
- package/dist/sophia-CgOMMImk.js +205 -0
- package/dist/sparql-CmRbqkGW.js +207 -0
- package/dist/sparql-DTHixtMm.cjs +6 -0
- package/dist/sql-CX8rIh5F.cjs +6 -0
- package/dist/sql-DVsVTphc.js +859 -0
- package/dist/st-ATFa4Vu3.js +422 -0
- package/dist/st-CBQkFfzG.cjs +6 -0
- package/dist/style.css +1 -0
- package/dist/swift-K4rp2L0u.js +318 -0
- package/dist/swift-XvmCMD7s.cjs +8 -0
- package/dist/systemverilog-D0lDJRC5.cjs +6 -0
- package/dist/systemverilog-YgLuECrg.js +582 -0
- package/dist/tcl-BHcJGOmo.js +238 -0
- package/dist/tcl-Ju0vlxf3.cjs +6 -0
- package/dist/tsMode-D7bHvHeH.cjs +16 -0
- package/dist/tsMode-DiYbk3vf.js +895 -0
- package/dist/twig-B1JhL8Uy.cjs +6 -0
- package/dist/twig-sVb_x968.js +398 -0
- package/dist/types.d.ts +16 -0
- package/dist/typescript-CI6w3N2S.cjs +6 -0
- package/dist/typescript-DFdjl8Xj.js +349 -0
- package/dist/typespec-BSdcQAUL.js +123 -0
- package/dist/typespec-u6UGyzVa.cjs +6 -0
- package/dist/vb-BZywMj6s.js +378 -0
- package/dist/vb-CB1voSvV.cjs +6 -0
- package/dist/wgsl-eG2bS915.js +445 -0
- package/dist/wgsl-eXQZam6Q.cjs +303 -0
- package/dist/xml-CJndgX4z.js +101 -0
- package/dist/xml-CO5xAOVk.cjs +6 -0
- package/dist/yaml--krIkoJ8.js +212 -0
- package/dist/yaml-BYk2IWKs.cjs +6 -0
- 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={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},n={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=><!~?:&|+\-*\^%;\.,\/]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/[uU]?[yslnLI]?/,floatsuffix:/[fFmM]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[<.*>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}};exports.conf=e;exports.language=n;
|
|
@@ -0,0 +1,223 @@
|
|
|
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
|
+
comments: {
|
|
9
|
+
lineComment: "//",
|
|
10
|
+
blockComment: ["(*", "*)"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"]
|
|
16
|
+
],
|
|
17
|
+
autoClosingPairs: [
|
|
18
|
+
{ open: "{", close: "}" },
|
|
19
|
+
{ open: "[", close: "]" },
|
|
20
|
+
{ open: "(", close: ")" },
|
|
21
|
+
{ open: '"', close: '"' }
|
|
22
|
+
],
|
|
23
|
+
surroundingPairs: [
|
|
24
|
+
{ open: "{", close: "}" },
|
|
25
|
+
{ open: "[", close: "]" },
|
|
26
|
+
{ open: "(", close: ")" },
|
|
27
|
+
{ open: '"', close: '"' },
|
|
28
|
+
{ open: "'", close: "'" }
|
|
29
|
+
],
|
|
30
|
+
folding: {
|
|
31
|
+
markers: {
|
|
32
|
+
start: new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),
|
|
33
|
+
end: new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}, n = {
|
|
37
|
+
defaultToken: "",
|
|
38
|
+
tokenPostfix: ".fs",
|
|
39
|
+
keywords: [
|
|
40
|
+
"abstract",
|
|
41
|
+
"and",
|
|
42
|
+
"atomic",
|
|
43
|
+
"as",
|
|
44
|
+
"assert",
|
|
45
|
+
"asr",
|
|
46
|
+
"base",
|
|
47
|
+
"begin",
|
|
48
|
+
"break",
|
|
49
|
+
"checked",
|
|
50
|
+
"component",
|
|
51
|
+
"const",
|
|
52
|
+
"constraint",
|
|
53
|
+
"constructor",
|
|
54
|
+
"continue",
|
|
55
|
+
"class",
|
|
56
|
+
"default",
|
|
57
|
+
"delegate",
|
|
58
|
+
"do",
|
|
59
|
+
"done",
|
|
60
|
+
"downcast",
|
|
61
|
+
"downto",
|
|
62
|
+
"elif",
|
|
63
|
+
"else",
|
|
64
|
+
"end",
|
|
65
|
+
"exception",
|
|
66
|
+
"eager",
|
|
67
|
+
"event",
|
|
68
|
+
"external",
|
|
69
|
+
"extern",
|
|
70
|
+
"false",
|
|
71
|
+
"finally",
|
|
72
|
+
"for",
|
|
73
|
+
"fun",
|
|
74
|
+
"function",
|
|
75
|
+
"fixed",
|
|
76
|
+
"functor",
|
|
77
|
+
"global",
|
|
78
|
+
"if",
|
|
79
|
+
"in",
|
|
80
|
+
"include",
|
|
81
|
+
"inherit",
|
|
82
|
+
"inline",
|
|
83
|
+
"interface",
|
|
84
|
+
"internal",
|
|
85
|
+
"land",
|
|
86
|
+
"lor",
|
|
87
|
+
"lsl",
|
|
88
|
+
"lsr",
|
|
89
|
+
"lxor",
|
|
90
|
+
"lazy",
|
|
91
|
+
"let",
|
|
92
|
+
"match",
|
|
93
|
+
"member",
|
|
94
|
+
"mod",
|
|
95
|
+
"module",
|
|
96
|
+
"mutable",
|
|
97
|
+
"namespace",
|
|
98
|
+
"method",
|
|
99
|
+
"mixin",
|
|
100
|
+
"new",
|
|
101
|
+
"not",
|
|
102
|
+
"null",
|
|
103
|
+
"of",
|
|
104
|
+
"open",
|
|
105
|
+
"or",
|
|
106
|
+
"object",
|
|
107
|
+
"override",
|
|
108
|
+
"private",
|
|
109
|
+
"parallel",
|
|
110
|
+
"process",
|
|
111
|
+
"protected",
|
|
112
|
+
"pure",
|
|
113
|
+
"public",
|
|
114
|
+
"rec",
|
|
115
|
+
"return",
|
|
116
|
+
"static",
|
|
117
|
+
"sealed",
|
|
118
|
+
"struct",
|
|
119
|
+
"sig",
|
|
120
|
+
"then",
|
|
121
|
+
"to",
|
|
122
|
+
"true",
|
|
123
|
+
"tailcall",
|
|
124
|
+
"trait",
|
|
125
|
+
"try",
|
|
126
|
+
"type",
|
|
127
|
+
"upcast",
|
|
128
|
+
"use",
|
|
129
|
+
"val",
|
|
130
|
+
"void",
|
|
131
|
+
"virtual",
|
|
132
|
+
"volatile",
|
|
133
|
+
"when",
|
|
134
|
+
"while",
|
|
135
|
+
"with",
|
|
136
|
+
"yield"
|
|
137
|
+
],
|
|
138
|
+
// we include these common regular expressions
|
|
139
|
+
symbols: /[=><!~?:&|+\-*\^%;\.,\/]+/,
|
|
140
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
141
|
+
integersuffix: /[uU]?[yslnLI]?/,
|
|
142
|
+
floatsuffix: /[fFmM]?/,
|
|
143
|
+
// The main tokenizer for our languages
|
|
144
|
+
tokenizer: {
|
|
145
|
+
root: [
|
|
146
|
+
// identifiers and keywords
|
|
147
|
+
[
|
|
148
|
+
/[a-zA-Z_]\w*/,
|
|
149
|
+
{
|
|
150
|
+
cases: {
|
|
151
|
+
"@keywords": { token: "keyword.$0" },
|
|
152
|
+
"@default": "identifier"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
// whitespace
|
|
157
|
+
{ include: "@whitespace" },
|
|
158
|
+
// [< attributes >].
|
|
159
|
+
[/\[<.*>\]/, "annotation"],
|
|
160
|
+
// Preprocessor directive
|
|
161
|
+
[/^#(if|else|endif)/, "keyword"],
|
|
162
|
+
// delimiters and operators
|
|
163
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
164
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
165
|
+
[/@symbols/, "delimiter"],
|
|
166
|
+
// numbers
|
|
167
|
+
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
168
|
+
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
169
|
+
[/0x[0-9a-fA-F]+LF/, "number.float"],
|
|
170
|
+
[/0x[0-9a-fA-F]+(@integersuffix)/, "number.hex"],
|
|
171
|
+
[/0b[0-1]+(@integersuffix)/, "number.bin"],
|
|
172
|
+
[/\d+(@integersuffix)/, "number"],
|
|
173
|
+
// delimiter: after number because of .\d floats
|
|
174
|
+
[/[;,.]/, "delimiter"],
|
|
175
|
+
// strings
|
|
176
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
177
|
+
// non-teminated string
|
|
178
|
+
[/"""/, "string", '@string."""'],
|
|
179
|
+
[/"/, "string", '@string."'],
|
|
180
|
+
// literal string
|
|
181
|
+
[/\@"/, { token: "string.quote", next: "@litstring" }],
|
|
182
|
+
// characters
|
|
183
|
+
[/'[^\\']'B?/, "string"],
|
|
184
|
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
185
|
+
[/'/, "string.invalid"]
|
|
186
|
+
],
|
|
187
|
+
whitespace: [
|
|
188
|
+
[/[ \t\r\n]+/, ""],
|
|
189
|
+
[/\(\*(?!\))/, "comment", "@comment"],
|
|
190
|
+
[/\/\/.*$/, "comment"]
|
|
191
|
+
],
|
|
192
|
+
comment: [
|
|
193
|
+
[/[^*(]+/, "comment"],
|
|
194
|
+
[/\*\)/, "comment", "@pop"],
|
|
195
|
+
[/\*/, "comment"],
|
|
196
|
+
[/\(\*\)/, "comment"],
|
|
197
|
+
[/\(/, "comment"]
|
|
198
|
+
],
|
|
199
|
+
string: [
|
|
200
|
+
[/[^\\"]+/, "string"],
|
|
201
|
+
[/@escapes/, "string.escape"],
|
|
202
|
+
[/\\./, "string.escape.invalid"],
|
|
203
|
+
[
|
|
204
|
+
/("""|"B?)/,
|
|
205
|
+
{
|
|
206
|
+
cases: {
|
|
207
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
208
|
+
"@default": "string"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
],
|
|
213
|
+
litstring: [
|
|
214
|
+
[/[^"]+/, "string"],
|
|
215
|
+
[/""/, "string.escape"],
|
|
216
|
+
[/"/, { token: "string.quote", next: "@pop" }]
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
export {
|
|
221
|
+
e as conf,
|
|
222
|
+
n as language
|
|
223
|
+
};
|
|
@@ -0,0 +1,224 @@
|
|
|
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
|
+
comments: {
|
|
9
|
+
lineComment: "//",
|
|
10
|
+
blockComment: ["/*", "*/"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"]
|
|
16
|
+
],
|
|
17
|
+
autoClosingPairs: [
|
|
18
|
+
{ open: "{", close: "}" },
|
|
19
|
+
{ open: "[", close: "]" },
|
|
20
|
+
{ open: "(", close: ")" },
|
|
21
|
+
{ open: "`", close: "`", notIn: ["string"] },
|
|
22
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
23
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
|
24
|
+
],
|
|
25
|
+
surroundingPairs: [
|
|
26
|
+
{ open: "{", close: "}" },
|
|
27
|
+
{ open: "[", close: "]" },
|
|
28
|
+
{ open: "(", close: ")" },
|
|
29
|
+
{ open: "`", close: "`" },
|
|
30
|
+
{ open: '"', close: '"' },
|
|
31
|
+
{ open: "'", close: "'" }
|
|
32
|
+
]
|
|
33
|
+
}, n = {
|
|
34
|
+
defaultToken: "",
|
|
35
|
+
tokenPostfix: ".go",
|
|
36
|
+
keywords: [
|
|
37
|
+
"break",
|
|
38
|
+
"case",
|
|
39
|
+
"chan",
|
|
40
|
+
"const",
|
|
41
|
+
"continue",
|
|
42
|
+
"default",
|
|
43
|
+
"defer",
|
|
44
|
+
"else",
|
|
45
|
+
"fallthrough",
|
|
46
|
+
"for",
|
|
47
|
+
"func",
|
|
48
|
+
"go",
|
|
49
|
+
"goto",
|
|
50
|
+
"if",
|
|
51
|
+
"import",
|
|
52
|
+
"interface",
|
|
53
|
+
"map",
|
|
54
|
+
"package",
|
|
55
|
+
"range",
|
|
56
|
+
"return",
|
|
57
|
+
"select",
|
|
58
|
+
"struct",
|
|
59
|
+
"switch",
|
|
60
|
+
"type",
|
|
61
|
+
"var",
|
|
62
|
+
"bool",
|
|
63
|
+
"true",
|
|
64
|
+
"false",
|
|
65
|
+
"uint8",
|
|
66
|
+
"uint16",
|
|
67
|
+
"uint32",
|
|
68
|
+
"uint64",
|
|
69
|
+
"int8",
|
|
70
|
+
"int16",
|
|
71
|
+
"int32",
|
|
72
|
+
"int64",
|
|
73
|
+
"float32",
|
|
74
|
+
"float64",
|
|
75
|
+
"complex64",
|
|
76
|
+
"complex128",
|
|
77
|
+
"byte",
|
|
78
|
+
"rune",
|
|
79
|
+
"uint",
|
|
80
|
+
"int",
|
|
81
|
+
"uintptr",
|
|
82
|
+
"string",
|
|
83
|
+
"nil"
|
|
84
|
+
],
|
|
85
|
+
operators: [
|
|
86
|
+
"+",
|
|
87
|
+
"-",
|
|
88
|
+
"*",
|
|
89
|
+
"/",
|
|
90
|
+
"%",
|
|
91
|
+
"&",
|
|
92
|
+
"|",
|
|
93
|
+
"^",
|
|
94
|
+
"<<",
|
|
95
|
+
">>",
|
|
96
|
+
"&^",
|
|
97
|
+
"+=",
|
|
98
|
+
"-=",
|
|
99
|
+
"*=",
|
|
100
|
+
"/=",
|
|
101
|
+
"%=",
|
|
102
|
+
"&=",
|
|
103
|
+
"|=",
|
|
104
|
+
"^=",
|
|
105
|
+
"<<=",
|
|
106
|
+
">>=",
|
|
107
|
+
"&^=",
|
|
108
|
+
"&&",
|
|
109
|
+
"||",
|
|
110
|
+
"<-",
|
|
111
|
+
"++",
|
|
112
|
+
"--",
|
|
113
|
+
"==",
|
|
114
|
+
"<",
|
|
115
|
+
">",
|
|
116
|
+
"=",
|
|
117
|
+
"!",
|
|
118
|
+
"!=",
|
|
119
|
+
"<=",
|
|
120
|
+
">=",
|
|
121
|
+
":=",
|
|
122
|
+
"...",
|
|
123
|
+
"(",
|
|
124
|
+
")",
|
|
125
|
+
"",
|
|
126
|
+
"]",
|
|
127
|
+
"{",
|
|
128
|
+
"}",
|
|
129
|
+
",",
|
|
130
|
+
";",
|
|
131
|
+
".",
|
|
132
|
+
":"
|
|
133
|
+
],
|
|
134
|
+
// we include these common regular expressions
|
|
135
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
136
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
137
|
+
// The main tokenizer for our languages
|
|
138
|
+
tokenizer: {
|
|
139
|
+
root: [
|
|
140
|
+
// identifiers and keywords
|
|
141
|
+
[
|
|
142
|
+
/[a-zA-Z_]\w*/,
|
|
143
|
+
{
|
|
144
|
+
cases: {
|
|
145
|
+
"@keywords": { token: "keyword.$0" },
|
|
146
|
+
"@default": "identifier"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
// whitespace
|
|
151
|
+
{ include: "@whitespace" },
|
|
152
|
+
// [[ attributes ]].
|
|
153
|
+
[/\[\[.*\]\]/, "annotation"],
|
|
154
|
+
// Preprocessor directive
|
|
155
|
+
[/^\s*#\w+/, "keyword"],
|
|
156
|
+
// delimiters and operators
|
|
157
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
158
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
159
|
+
[
|
|
160
|
+
/@symbols/,
|
|
161
|
+
{
|
|
162
|
+
cases: {
|
|
163
|
+
"@operators": "delimiter",
|
|
164
|
+
"@default": ""
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
// numbers
|
|
169
|
+
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
|
|
170
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
171
|
+
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex"],
|
|
172
|
+
[/0[0-7']*[0-7]/, "number.octal"],
|
|
173
|
+
[/0[bB][0-1']*[0-1]/, "number.binary"],
|
|
174
|
+
[/\d[\d']*/, "number"],
|
|
175
|
+
[/\d/, "number"],
|
|
176
|
+
// delimiter: after number because of .\d floats
|
|
177
|
+
[/[;,.]/, "delimiter"],
|
|
178
|
+
// strings
|
|
179
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
180
|
+
// non-teminated string
|
|
181
|
+
[/"/, "string", "@string"],
|
|
182
|
+
[/`/, "string", "@rawstring"],
|
|
183
|
+
// characters
|
|
184
|
+
[/'[^\\']'/, "string"],
|
|
185
|
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
186
|
+
[/'/, "string.invalid"]
|
|
187
|
+
],
|
|
188
|
+
whitespace: [
|
|
189
|
+
[/[ \t\r\n]+/, ""],
|
|
190
|
+
[/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
|
|
191
|
+
[/\/\*/, "comment", "@comment"],
|
|
192
|
+
[/\/\/.*$/, "comment"]
|
|
193
|
+
],
|
|
194
|
+
comment: [
|
|
195
|
+
[/[^\/*]+/, "comment"],
|
|
196
|
+
// [/\/\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
|
197
|
+
// [/\/\*/, 'comment.invalid' ], // this breaks block comments in the shape of /* //*/
|
|
198
|
+
[/\*\//, "comment", "@pop"],
|
|
199
|
+
[/[\/*]/, "comment"]
|
|
200
|
+
],
|
|
201
|
+
//Identical copy of comment above, except for the addition of .doc
|
|
202
|
+
doccomment: [
|
|
203
|
+
[/[^\/*]+/, "comment.doc"],
|
|
204
|
+
// [/\/\*/, 'comment.doc', '@push' ], // nested comment not allowed :-(
|
|
205
|
+
[/\/\*/, "comment.doc.invalid"],
|
|
206
|
+
[/\*\//, "comment.doc", "@pop"],
|
|
207
|
+
[/[\/*]/, "comment.doc"]
|
|
208
|
+
],
|
|
209
|
+
string: [
|
|
210
|
+
[/[^\\"]+/, "string"],
|
|
211
|
+
[/@escapes/, "string.escape"],
|
|
212
|
+
[/\\./, "string.escape.invalid"],
|
|
213
|
+
[/"/, "string", "@pop"]
|
|
214
|
+
],
|
|
215
|
+
rawstring: [
|
|
216
|
+
[/[^\`]/, "string"],
|
|
217
|
+
[/`/, "string", "@pop"]
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
export {
|
|
222
|
+
e as conf,
|
|
223
|
+
n as language
|
|
224
|
+
};
|
|
@@ -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={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},n={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}};exports.conf=e;exports.language=n;
|
|
@@ -0,0 +1,157 @@
|
|
|
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
|
+
comments: {
|
|
9
|
+
lineComment: "#"
|
|
10
|
+
},
|
|
11
|
+
brackets: [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"]
|
|
15
|
+
],
|
|
16
|
+
autoClosingPairs: [
|
|
17
|
+
{ open: "{", close: "}" },
|
|
18
|
+
{ open: "[", close: "]" },
|
|
19
|
+
{ open: "(", close: ")" },
|
|
20
|
+
{ open: '"""', close: '"""', notIn: ["string", "comment"] },
|
|
21
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
|
22
|
+
],
|
|
23
|
+
surroundingPairs: [
|
|
24
|
+
{ open: "{", close: "}" },
|
|
25
|
+
{ open: "[", close: "]" },
|
|
26
|
+
{ open: "(", close: ")" },
|
|
27
|
+
{ open: '"""', close: '"""' },
|
|
28
|
+
{ open: '"', close: '"' }
|
|
29
|
+
],
|
|
30
|
+
folding: {
|
|
31
|
+
offSide: !0
|
|
32
|
+
}
|
|
33
|
+
}, n = {
|
|
34
|
+
// Set defaultToken to invalid to see what you do not tokenize yet
|
|
35
|
+
defaultToken: "invalid",
|
|
36
|
+
tokenPostfix: ".gql",
|
|
37
|
+
keywords: [
|
|
38
|
+
"null",
|
|
39
|
+
"true",
|
|
40
|
+
"false",
|
|
41
|
+
"query",
|
|
42
|
+
"mutation",
|
|
43
|
+
"subscription",
|
|
44
|
+
"extend",
|
|
45
|
+
"schema",
|
|
46
|
+
"directive",
|
|
47
|
+
"scalar",
|
|
48
|
+
"type",
|
|
49
|
+
"interface",
|
|
50
|
+
"union",
|
|
51
|
+
"enum",
|
|
52
|
+
"input",
|
|
53
|
+
"implements",
|
|
54
|
+
"fragment",
|
|
55
|
+
"on"
|
|
56
|
+
],
|
|
57
|
+
typeKeywords: ["Int", "Float", "String", "Boolean", "ID"],
|
|
58
|
+
directiveLocations: [
|
|
59
|
+
"SCHEMA",
|
|
60
|
+
"SCALAR",
|
|
61
|
+
"OBJECT",
|
|
62
|
+
"FIELD_DEFINITION",
|
|
63
|
+
"ARGUMENT_DEFINITION",
|
|
64
|
+
"INTERFACE",
|
|
65
|
+
"UNION",
|
|
66
|
+
"ENUM",
|
|
67
|
+
"ENUM_VALUE",
|
|
68
|
+
"INPUT_OBJECT",
|
|
69
|
+
"INPUT_FIELD_DEFINITION",
|
|
70
|
+
"QUERY",
|
|
71
|
+
"MUTATION",
|
|
72
|
+
"SUBSCRIPTION",
|
|
73
|
+
"FIELD",
|
|
74
|
+
"FRAGMENT_DEFINITION",
|
|
75
|
+
"FRAGMENT_SPREAD",
|
|
76
|
+
"INLINE_FRAGMENT",
|
|
77
|
+
"VARIABLE_DEFINITION"
|
|
78
|
+
],
|
|
79
|
+
operators: ["=", "!", "?", ":", "&", "|"],
|
|
80
|
+
// we include these common regular expressions
|
|
81
|
+
symbols: /[=!?:&|]+/,
|
|
82
|
+
// https://facebook.github.io/graphql/draft/#sec-String-Value
|
|
83
|
+
escapes: /\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,
|
|
84
|
+
// The main tokenizer for our languages
|
|
85
|
+
tokenizer: {
|
|
86
|
+
root: [
|
|
87
|
+
// fields and argument names
|
|
88
|
+
[
|
|
89
|
+
/[a-z_][\w$]*/,
|
|
90
|
+
{
|
|
91
|
+
cases: {
|
|
92
|
+
"@keywords": "keyword",
|
|
93
|
+
"@default": "key.identifier"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
// identify typed input variables
|
|
98
|
+
[
|
|
99
|
+
/[$][\w$]*/,
|
|
100
|
+
{
|
|
101
|
+
cases: {
|
|
102
|
+
"@keywords": "keyword",
|
|
103
|
+
"@default": "argument.identifier"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
// to show class names nicely
|
|
108
|
+
[
|
|
109
|
+
/[A-Z][\w\$]*/,
|
|
110
|
+
{
|
|
111
|
+
cases: {
|
|
112
|
+
"@typeKeywords": "keyword",
|
|
113
|
+
"@default": "type.identifier"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
// whitespace
|
|
118
|
+
{ include: "@whitespace" },
|
|
119
|
+
// delimiters and operators
|
|
120
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
121
|
+
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
|
|
122
|
+
// @ annotations.
|
|
123
|
+
// As an example, we emit a debugging log message on these tokens.
|
|
124
|
+
// Note: message are supressed during the first load -- change some lines to see them.
|
|
125
|
+
[/@\s*[a-zA-Z_\$][\w\$]*/, { token: "annotation", log: "annotation token: $0" }],
|
|
126
|
+
// numbers
|
|
127
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
128
|
+
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
129
|
+
[/\d+/, "number"],
|
|
130
|
+
// delimiter: after number because of .\d floats
|
|
131
|
+
[/[;,.]/, "delimiter"],
|
|
132
|
+
[/"""/, { token: "string", next: "@mlstring", nextEmbedded: "markdown" }],
|
|
133
|
+
// strings
|
|
134
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
135
|
+
// non-teminated string
|
|
136
|
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
|
|
137
|
+
],
|
|
138
|
+
mlstring: [
|
|
139
|
+
[/[^"]+/, "string"],
|
|
140
|
+
['"""', { token: "string", next: "@pop", nextEmbedded: "@pop" }]
|
|
141
|
+
],
|
|
142
|
+
string: [
|
|
143
|
+
[/[^\\"]+/, "string"],
|
|
144
|
+
[/@escapes/, "string.escape"],
|
|
145
|
+
[/\\./, "string.escape.invalid"],
|
|
146
|
+
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
147
|
+
],
|
|
148
|
+
whitespace: [
|
|
149
|
+
[/[ \t\r\n]+/, ""],
|
|
150
|
+
[/#.*$/, "comment"]
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
export {
|
|
155
|
+
e as conf,
|
|
156
|
+
n as language
|
|
157
|
+
};
|
|
@@ -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={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},n={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}};exports.conf=e;exports.language=n;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CjGIE44E.cjs");/*!-----------------------------------------------------------------------------
|
|
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 i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of d(e))!c.call(t,n)&&n!==r&&i(t,n,{get:()=>e[n],enumerable:!(o=s(e,n))||o.enumerable});return t},h=(t,e,r)=>(p(t,e,"default"),r),a={};h(a,l.monaco_editor_core_star);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],b={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(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},u={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=b;exports.language=u;
|