@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,426 @@
|
|
|
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 = ["true", "false"], t = {
|
|
8
|
+
comments: {
|
|
9
|
+
lineComment: "//",
|
|
10
|
+
blockComment: ["/*", "*/"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"],
|
|
16
|
+
["<", ">"]
|
|
17
|
+
],
|
|
18
|
+
surroundingPairs: [
|
|
19
|
+
{ open: "{", close: "}" },
|
|
20
|
+
{ open: "[", close: "]" },
|
|
21
|
+
{ open: "(", close: ")" },
|
|
22
|
+
{ open: "<", close: ">" },
|
|
23
|
+
{ open: '"', close: '"' },
|
|
24
|
+
{ open: "'", close: "'" }
|
|
25
|
+
],
|
|
26
|
+
autoClosingPairs: [
|
|
27
|
+
{ open: "{", close: "}" },
|
|
28
|
+
{ open: "[", close: "]" },
|
|
29
|
+
{ open: "(", close: ")" },
|
|
30
|
+
{ open: "<", close: ">" },
|
|
31
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
32
|
+
{ open: "'", close: "'", notIn: ["string"] }
|
|
33
|
+
],
|
|
34
|
+
autoCloseBefore: `.,=}])>'
|
|
35
|
+
`,
|
|
36
|
+
indentationRules: {
|
|
37
|
+
increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
|
38
|
+
decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
|
39
|
+
}
|
|
40
|
+
}, n = {
|
|
41
|
+
defaultToken: "",
|
|
42
|
+
tokenPostfix: ".proto",
|
|
43
|
+
brackets: [
|
|
44
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
45
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
46
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
47
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
48
|
+
],
|
|
49
|
+
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
50
|
+
keywords: [
|
|
51
|
+
"syntax",
|
|
52
|
+
"import",
|
|
53
|
+
"weak",
|
|
54
|
+
"public",
|
|
55
|
+
"package",
|
|
56
|
+
"option",
|
|
57
|
+
"repeated",
|
|
58
|
+
"oneof",
|
|
59
|
+
"map",
|
|
60
|
+
"reserved",
|
|
61
|
+
"to",
|
|
62
|
+
"max",
|
|
63
|
+
"enum",
|
|
64
|
+
"message",
|
|
65
|
+
"service",
|
|
66
|
+
"rpc",
|
|
67
|
+
"stream",
|
|
68
|
+
"returns",
|
|
69
|
+
"package",
|
|
70
|
+
"optional",
|
|
71
|
+
"true",
|
|
72
|
+
"false"
|
|
73
|
+
],
|
|
74
|
+
builtinTypes: [
|
|
75
|
+
"double",
|
|
76
|
+
"float",
|
|
77
|
+
"int32",
|
|
78
|
+
"int64",
|
|
79
|
+
"uint32",
|
|
80
|
+
"uint64",
|
|
81
|
+
"sint32",
|
|
82
|
+
"sint64",
|
|
83
|
+
"fixed32",
|
|
84
|
+
"fixed64",
|
|
85
|
+
"sfixed32",
|
|
86
|
+
"sfixed64",
|
|
87
|
+
"bool",
|
|
88
|
+
"string",
|
|
89
|
+
"bytes"
|
|
90
|
+
],
|
|
91
|
+
operators: ["=", "+", "-"],
|
|
92
|
+
namedLiterals: e,
|
|
93
|
+
escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
|
|
94
|
+
identifier: /[a-zA-Z]\w*/,
|
|
95
|
+
fullIdentifier: /@identifier(?:\s*\.\s*@identifier)*/,
|
|
96
|
+
optionName: /(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,
|
|
97
|
+
messageName: /@identifier/,
|
|
98
|
+
enumName: /@identifier/,
|
|
99
|
+
messageType: /\.?\s*(?:@identifier\s*\.\s*)*@messageName/,
|
|
100
|
+
enumType: /\.?\s*(?:@identifier\s*\.\s*)*@enumName/,
|
|
101
|
+
floatLit: /[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,
|
|
102
|
+
exponent: /[eE]\s*[+-]?\s*[0-9]+/,
|
|
103
|
+
boolLit: /true\b|false\b/,
|
|
104
|
+
decimalLit: /[1-9][0-9]*/,
|
|
105
|
+
octalLit: /0[0-7]*/,
|
|
106
|
+
hexLit: /0[xX][0-9a-fA-F]+/,
|
|
107
|
+
type: /double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,
|
|
108
|
+
keyType: /int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,
|
|
109
|
+
tokenizer: {
|
|
110
|
+
root: [
|
|
111
|
+
{ include: "@whitespace" },
|
|
112
|
+
[/syntax/, "keyword"],
|
|
113
|
+
[/=/, "operators"],
|
|
114
|
+
[/;/, "delimiter"],
|
|
115
|
+
[
|
|
116
|
+
/(")(proto3)(")/,
|
|
117
|
+
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto3" }]
|
|
118
|
+
],
|
|
119
|
+
[
|
|
120
|
+
/(")(proto2)(")/,
|
|
121
|
+
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto2" }]
|
|
122
|
+
],
|
|
123
|
+
[
|
|
124
|
+
// If no `syntax` provided, regarded as proto2
|
|
125
|
+
/.*?/,
|
|
126
|
+
{ token: "", switchTo: "@topLevel.proto2" }
|
|
127
|
+
]
|
|
128
|
+
],
|
|
129
|
+
topLevel: [
|
|
130
|
+
// whitespace
|
|
131
|
+
{ include: "@whitespace" },
|
|
132
|
+
{ include: "@constant" },
|
|
133
|
+
[/=/, "operators"],
|
|
134
|
+
[/[;.]/, "delimiter"],
|
|
135
|
+
[
|
|
136
|
+
/@fullIdentifier/,
|
|
137
|
+
{
|
|
138
|
+
cases: {
|
|
139
|
+
option: { token: "keyword", next: "@option.$S2" },
|
|
140
|
+
enum: { token: "keyword", next: "@enumDecl.$S2" },
|
|
141
|
+
message: { token: "keyword", next: "@messageDecl.$S2" },
|
|
142
|
+
service: { token: "keyword", next: "@serviceDecl.$S2" },
|
|
143
|
+
extend: {
|
|
144
|
+
cases: {
|
|
145
|
+
"$S2==proto2": { token: "keyword", next: "@extendDecl.$S2" }
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"@keywords": "keyword",
|
|
149
|
+
"@default": "identifier"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
],
|
|
154
|
+
enumDecl: [
|
|
155
|
+
{ include: "@whitespace" },
|
|
156
|
+
[/@identifier/, "type.identifier"],
|
|
157
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@enumBody.$S2" }]
|
|
158
|
+
],
|
|
159
|
+
enumBody: [
|
|
160
|
+
{ include: "@whitespace" },
|
|
161
|
+
{ include: "@constant" },
|
|
162
|
+
[/=/, "operators"],
|
|
163
|
+
[/;/, "delimiter"],
|
|
164
|
+
[/option\b/, "keyword", "@option.$S2"],
|
|
165
|
+
[/@identifier/, "identifier"],
|
|
166
|
+
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
167
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
168
|
+
],
|
|
169
|
+
messageDecl: [
|
|
170
|
+
{ include: "@whitespace" },
|
|
171
|
+
[/@identifier/, "type.identifier"],
|
|
172
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }]
|
|
173
|
+
],
|
|
174
|
+
messageBody: [
|
|
175
|
+
{ include: "@whitespace" },
|
|
176
|
+
{ include: "@constant" },
|
|
177
|
+
[/=/, "operators"],
|
|
178
|
+
[/;/, "delimiter"],
|
|
179
|
+
[
|
|
180
|
+
"(map)(s*)(<)",
|
|
181
|
+
["keyword", "white", { token: "@brackets", bracket: "@open", next: "@map.$S2" }]
|
|
182
|
+
],
|
|
183
|
+
[
|
|
184
|
+
/@identifier/,
|
|
185
|
+
{
|
|
186
|
+
cases: {
|
|
187
|
+
option: { token: "keyword", next: "@option.$S2" },
|
|
188
|
+
enum: { token: "keyword", next: "@enumDecl.$S2" },
|
|
189
|
+
message: { token: "keyword", next: "@messageDecl.$S2" },
|
|
190
|
+
oneof: { token: "keyword", next: "@oneofDecl.$S2" },
|
|
191
|
+
extensions: {
|
|
192
|
+
cases: {
|
|
193
|
+
"$S2==proto2": { token: "keyword", next: "@reserved.$S2" }
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
reserved: { token: "keyword", next: "@reserved.$S2" },
|
|
197
|
+
"(?:repeated|optional)": { token: "keyword", next: "@field.$S2" },
|
|
198
|
+
required: {
|
|
199
|
+
cases: {
|
|
200
|
+
"$S2==proto2": { token: "keyword", next: "@field.$S2" }
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"$S2==proto3": { token: "@rematch", next: "@field.$S2" }
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
208
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
209
|
+
],
|
|
210
|
+
extendDecl: [
|
|
211
|
+
{ include: "@whitespace" },
|
|
212
|
+
[/@identifier/, "type.identifier"],
|
|
213
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@extendBody.$S2" }]
|
|
214
|
+
],
|
|
215
|
+
extendBody: [
|
|
216
|
+
{ include: "@whitespace" },
|
|
217
|
+
{ include: "@constant" },
|
|
218
|
+
[/;/, "delimiter"],
|
|
219
|
+
[/(?:repeated|optional|required)/, "keyword", "@field.$S2"],
|
|
220
|
+
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
221
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
222
|
+
],
|
|
223
|
+
options: [
|
|
224
|
+
{ include: "@whitespace" },
|
|
225
|
+
{ include: "@constant" },
|
|
226
|
+
[/;/, "delimiter"],
|
|
227
|
+
[/@optionName/, "annotation"],
|
|
228
|
+
[/[()]/, "annotation.brackets"],
|
|
229
|
+
[/=/, "operator"],
|
|
230
|
+
[/\]/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
231
|
+
],
|
|
232
|
+
option: [
|
|
233
|
+
{ include: "@whitespace" },
|
|
234
|
+
[/@optionName/, "annotation"],
|
|
235
|
+
[/[()]/, "annotation.brackets"],
|
|
236
|
+
[/=/, "operator", "@pop"]
|
|
237
|
+
],
|
|
238
|
+
oneofDecl: [
|
|
239
|
+
{ include: "@whitespace" },
|
|
240
|
+
[/@identifier/, "identifier"],
|
|
241
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@oneofBody.$S2" }]
|
|
242
|
+
],
|
|
243
|
+
oneofBody: [
|
|
244
|
+
{ include: "@whitespace" },
|
|
245
|
+
{ include: "@constant" },
|
|
246
|
+
[/;/, "delimiter"],
|
|
247
|
+
[/(@identifier)(\s*)(=)/, ["identifier", "white", "delimiter"]],
|
|
248
|
+
[
|
|
249
|
+
/@fullIdentifier|\./,
|
|
250
|
+
{
|
|
251
|
+
cases: {
|
|
252
|
+
"@builtinTypes": "keyword",
|
|
253
|
+
"@default": "type.identifier"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
258
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
259
|
+
],
|
|
260
|
+
reserved: [
|
|
261
|
+
{ include: "@whitespace" },
|
|
262
|
+
[/,/, "delimiter"],
|
|
263
|
+
[/;/, "delimiter", "@pop"],
|
|
264
|
+
{ include: "@constant" },
|
|
265
|
+
[/to\b|max\b/, "keyword"]
|
|
266
|
+
],
|
|
267
|
+
map: [
|
|
268
|
+
{ include: "@whitespace" },
|
|
269
|
+
[
|
|
270
|
+
/@fullIdentifier|\./,
|
|
271
|
+
{
|
|
272
|
+
cases: {
|
|
273
|
+
"@builtinTypes": "keyword",
|
|
274
|
+
"@default": "type.identifier"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
[/,/, "delimiter"],
|
|
279
|
+
[/>/, { token: "@brackets", bracket: "@close", switchTo: "identifier" }]
|
|
280
|
+
],
|
|
281
|
+
field: [
|
|
282
|
+
{ include: "@whitespace" },
|
|
283
|
+
[
|
|
284
|
+
"group",
|
|
285
|
+
{
|
|
286
|
+
cases: {
|
|
287
|
+
"$S2==proto2": { token: "keyword", switchTo: "@groupDecl.$S2" }
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
[/(@identifier)(\s*)(=)/, ["identifier", "white", { token: "delimiter", next: "@pop" }]],
|
|
292
|
+
[
|
|
293
|
+
/@fullIdentifier|\./,
|
|
294
|
+
{
|
|
295
|
+
cases: {
|
|
296
|
+
"@builtinTypes": "keyword",
|
|
297
|
+
"@default": "type.identifier"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
],
|
|
302
|
+
groupDecl: [
|
|
303
|
+
{ include: "@whitespace" },
|
|
304
|
+
[/@identifier/, "identifier"],
|
|
305
|
+
["=", "operator"],
|
|
306
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }],
|
|
307
|
+
{ include: "@constant" }
|
|
308
|
+
],
|
|
309
|
+
type: [
|
|
310
|
+
{ include: "@whitespace" },
|
|
311
|
+
[/@identifier/, "type.identifier", "@pop"],
|
|
312
|
+
[/./, "delimiter"]
|
|
313
|
+
],
|
|
314
|
+
identifier: [{ include: "@whitespace" }, [/@identifier/, "identifier", "@pop"]],
|
|
315
|
+
serviceDecl: [
|
|
316
|
+
{ include: "@whitespace" },
|
|
317
|
+
[/@identifier/, "identifier"],
|
|
318
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@serviceBody.$S2" }]
|
|
319
|
+
],
|
|
320
|
+
serviceBody: [
|
|
321
|
+
{ include: "@whitespace" },
|
|
322
|
+
{ include: "@constant" },
|
|
323
|
+
[/;/, "delimiter"],
|
|
324
|
+
[/option\b/, "keyword", "@option.$S2"],
|
|
325
|
+
[/rpc\b/, "keyword", "@rpc.$S2"],
|
|
326
|
+
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
327
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
328
|
+
],
|
|
329
|
+
rpc: [
|
|
330
|
+
{ include: "@whitespace" },
|
|
331
|
+
[/@identifier/, "identifier"],
|
|
332
|
+
[/\(/, { token: "@brackets", bracket: "@open", switchTo: "@request.$S2" }],
|
|
333
|
+
[/{/, { token: "@brackets", bracket: "@open", next: "@methodOptions.$S2" }],
|
|
334
|
+
[/;/, "delimiter", "@pop"]
|
|
335
|
+
],
|
|
336
|
+
request: [
|
|
337
|
+
{ include: "@whitespace" },
|
|
338
|
+
[
|
|
339
|
+
/@messageType/,
|
|
340
|
+
{
|
|
341
|
+
cases: {
|
|
342
|
+
stream: { token: "keyword", next: "@type.$S2" },
|
|
343
|
+
"@default": "type.identifier"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
[/\)/, { token: "@brackets", bracket: "@close", switchTo: "@returns.$S2" }]
|
|
348
|
+
],
|
|
349
|
+
returns: [
|
|
350
|
+
{ include: "@whitespace" },
|
|
351
|
+
[/returns\b/, "keyword"],
|
|
352
|
+
[/\(/, { token: "@brackets", bracket: "@open", switchTo: "@response.$S2" }]
|
|
353
|
+
],
|
|
354
|
+
response: [
|
|
355
|
+
{ include: "@whitespace" },
|
|
356
|
+
[
|
|
357
|
+
/@messageType/,
|
|
358
|
+
{
|
|
359
|
+
cases: {
|
|
360
|
+
stream: { token: "keyword", next: "@type.$S2" },
|
|
361
|
+
"@default": "type.identifier"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
[/\)/, { token: "@brackets", bracket: "@close", switchTo: "@rpc.$S2" }]
|
|
366
|
+
],
|
|
367
|
+
methodOptions: [
|
|
368
|
+
{ include: "@whitespace" },
|
|
369
|
+
{ include: "@constant" },
|
|
370
|
+
[/;/, "delimiter"],
|
|
371
|
+
["option", "keyword"],
|
|
372
|
+
[/@optionName/, "annotation"],
|
|
373
|
+
[/[()]/, "annotation.brackets"],
|
|
374
|
+
[/=/, "operator"],
|
|
375
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
376
|
+
],
|
|
377
|
+
comment: [
|
|
378
|
+
[/[^\/*]+/, "comment"],
|
|
379
|
+
[/\/\*/, "comment", "@push"],
|
|
380
|
+
// nested comment
|
|
381
|
+
["\\*/", "comment", "@pop"],
|
|
382
|
+
[/[\/*]/, "comment"]
|
|
383
|
+
],
|
|
384
|
+
string: [
|
|
385
|
+
[/[^\\"]+/, "string"],
|
|
386
|
+
[/@escapes/, "string.escape"],
|
|
387
|
+
[/\\./, "string.escape.invalid"],
|
|
388
|
+
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
389
|
+
],
|
|
390
|
+
stringSingle: [
|
|
391
|
+
[/[^\\']+/, "string"],
|
|
392
|
+
[/@escapes/, "string.escape"],
|
|
393
|
+
[/\\./, "string.escape.invalid"],
|
|
394
|
+
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
395
|
+
],
|
|
396
|
+
constant: [
|
|
397
|
+
["@boolLit", "keyword.constant"],
|
|
398
|
+
["@hexLit", "number.hex"],
|
|
399
|
+
["@octalLit", "number.octal"],
|
|
400
|
+
["@decimalLit", "number"],
|
|
401
|
+
["@floatLit", "number.float"],
|
|
402
|
+
[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, "string.invalid"],
|
|
403
|
+
// non-terminated string
|
|
404
|
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
|
405
|
+
[/'/, { token: "string.quote", bracket: "@open", next: "@stringSingle" }],
|
|
406
|
+
[/{/, { token: "@brackets", bracket: "@open", next: "@prototext" }],
|
|
407
|
+
[/identifier/, "identifier"]
|
|
408
|
+
],
|
|
409
|
+
whitespace: [
|
|
410
|
+
[/[ \t\r\n]+/, "white"],
|
|
411
|
+
[/\/\*/, "comment", "@comment"],
|
|
412
|
+
[/\/\/.*$/, "comment"]
|
|
413
|
+
],
|
|
414
|
+
prototext: [
|
|
415
|
+
{ include: "@whitespace" },
|
|
416
|
+
{ include: "@constant" },
|
|
417
|
+
[/@identifier/, "identifier"],
|
|
418
|
+
[/[:;]/, "delimiter"],
|
|
419
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
export {
|
|
424
|
+
t as conf,
|
|
425
|
+
n as language
|
|
426
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
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=["true","false"],t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],autoCloseBefore:`.,=}])>'
|
|
7
|
+
`,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},n={defaultToken:"",tokenPostfix:".proto",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:["syntax","import","weak","public","package","option","repeated","oneof","map","reserved","to","max","enum","message","service","rpc","stream","returns","package","optional","true","false"],builtinTypes:["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],operators:["=","+","-"],namedLiterals:e,escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",identifier:/[a-zA-Z]\w*/,fullIdentifier:/@identifier(?:\s*\.\s*@identifier)*/,optionName:/(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,messageName:/@identifier/,enumName:/@identifier/,messageType:/\.?\s*(?:@identifier\s*\.\s*)*@messageName/,enumType:/\.?\s*(?:@identifier\s*\.\s*)*@enumName/,floatLit:/[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,exponent:/[eE]\s*[+-]?\s*[0-9]+/,boolLit:/true\b|false\b/,decimalLit:/[1-9][0-9]*/,octalLit:/0[0-7]*/,hexLit:/0[xX][0-9a-fA-F]+/,type:/double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,keyType:/int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,tokenizer:{root:[{include:"@whitespace"},[/syntax/,"keyword"],[/=/,"operators"],[/;/,"delimiter"],[/(")(proto3)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto3"}]],[/(")(proto2)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto2"}]],[/.*?/,{token:"",switchTo:"@topLevel.proto2"}]],topLevel:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/[;.]/,"delimiter"],[/@fullIdentifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},service:{token:"keyword",next:"@serviceDecl.$S2"},extend:{cases:{"$S2==proto2":{token:"keyword",next:"@extendDecl.$S2"}}},"@keywords":"keyword","@default":"identifier"}}]],enumDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@enumBody.$S2"}]],enumBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/@identifier/,"identifier"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],messageDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}]],messageBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],["(map)(s*)(<)",["keyword","white",{token:"@brackets",bracket:"@open",next:"@map.$S2"}]],[/@identifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},oneof:{token:"keyword",next:"@oneofDecl.$S2"},extensions:{cases:{"$S2==proto2":{token:"keyword",next:"@reserved.$S2"}}},reserved:{token:"keyword",next:"@reserved.$S2"},"(?:repeated|optional)":{token:"keyword",next:"@field.$S2"},required:{cases:{"$S2==proto2":{token:"keyword",next:"@field.$S2"}}},"$S2==proto3":{token:"@rematch",next:"@field.$S2"}}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],extendDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@extendBody.$S2"}]],extendBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(?:repeated|optional|required)/,"keyword","@field.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],options:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/\]/,{token:"@brackets",bracket:"@close",next:"@pop"}]],option:[{include:"@whitespace"},[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator","@pop"]],oneofDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@oneofBody.$S2"}]],oneofBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(@identifier)(\s*)(=)/,["identifier","white","delimiter"]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],reserved:[{include:"@whitespace"},[/,/,"delimiter"],[/;/,"delimiter","@pop"],{include:"@constant"},[/to\b|max\b/,"keyword"]],map:[{include:"@whitespace"},[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/,/,"delimiter"],[/>/,{token:"@brackets",bracket:"@close",switchTo:"identifier"}]],field:[{include:"@whitespace"},["group",{cases:{"$S2==proto2":{token:"keyword",switchTo:"@groupDecl.$S2"}}}],[/(@identifier)(\s*)(=)/,["identifier","white",{token:"delimiter",next:"@pop"}]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}]],groupDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],["=","operator"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}],{include:"@constant"}],type:[{include:"@whitespace"},[/@identifier/,"type.identifier","@pop"],[/./,"delimiter"]],identifier:[{include:"@whitespace"},[/@identifier/,"identifier","@pop"]],serviceDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@serviceBody.$S2"}]],serviceBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/rpc\b/,"keyword","@rpc.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],rpc:[{include:"@whitespace"},[/@identifier/,"identifier"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@request.$S2"}],[/{/,{token:"@brackets",bracket:"@open",next:"@methodOptions.$S2"}],[/;/,"delimiter","@pop"]],request:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@returns.$S2"}]],returns:[{include:"@whitespace"},[/returns\b/,"keyword"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@response.$S2"}]],response:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@rpc.$S2"}]],methodOptions:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],["option","keyword"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],constant:[["@boolLit","keyword.constant"],["@hexLit","number.hex"],["@octalLit","number.octal"],["@decimalLit","number"],["@floatLit","number.float"],[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'/,{token:"string.quote",bracket:"@open",next:"@stringSingle"}],[/{/,{token:"@brackets",bracket:"@open",next:"@prototext"}],[/identifier/,"identifier"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],prototext:[{include:"@whitespace"},{include:"@constant"},[/@identifier/,"identifier"],[/[:;]/,"delimiter"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]]}};exports.conf=t;exports.language=n;
|
|
@@ -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:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},t={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}};exports.conf=e;exports.language=t;
|