monaco-editor11 1.2.1 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/editor.worker-iXcRX1Tq.js +26 -0
- package/dist/index.d.ts +2 -3
- package/dist/monaco-editor11.es.js +55 -0
- package/dist/monaco-editor11.umd.js +1 -0
- package/dist/views/Home.vue.d.ts +1 -1
- package/dist/worker/json.worker.js +0 -0
- package/package.json +9 -13
- package/dist/abap-BmV14C8H.js +0 -1
- package/dist/abap-CrvW7_qN.mjs +0 -1398
- package/dist/apex-BAOI8p1v.mjs +0 -327
- package/dist/apex-vQDebnNk.js +0 -1
- package/dist/azcli-BlCk_UqW.mjs +0 -68
- package/dist/azcli-C4hxwus7.js +0 -1
- package/dist/bat-DPoEelVx.mjs +0 -100
- package/dist/bat-DYHIOgJW.js +0 -1
- package/dist/bicep-BJDZ3U7c.js +0 -2
- package/dist/bicep-Cp1F394l.mjs +0 -102
- package/dist/cameligo-CWqtSlQs.mjs +0 -174
- package/dist/cameligo-l0J6eaPU.js +0 -1
- package/dist/clojure-BUv_1vEn.js +0 -1
- package/dist/clojure-CKBp32Gf.mjs +0 -761
- package/dist/coffee-CDo6vc-J.mjs +0 -232
- package/dist/coffee-Cw3141X6.js +0 -1
- package/dist/cpp-CHPWmTTa.js +0 -1
- package/dist/cpp-DokufPgf.mjs +0 -389
- package/dist/csharp-0ISFInBU.js +0 -1
- package/dist/csharp-BQi3szM0.mjs +0 -326
- package/dist/csp-BSGtCCZ-.mjs +0 -53
- package/dist/csp-Dcy9EUAZ.js +0 -1
- package/dist/css-DEPFDJfb.mjs +0 -187
- package/dist/css-UDjyEDNM.js +0 -3
- package/dist/css.worker.js +0 -66
- package/dist/cssMode-CZvh5Cxi.js +0 -1
- package/dist/cssMode-D5wFpBcJ.mjs +0 -141
- package/dist/cypher-BoSKj8sy.js +0 -1
- package/dist/cypher-DAb1vOxS.mjs +0 -263
- package/dist/dart-75fOVMIC.js +0 -1
- package/dist/dart-C8p4jewR.mjs +0 -281
- package/dist/dockerfile-CeTDdZJB.js +0 -1
- package/dist/dockerfile-DP0iLFPN.mjs +0 -130
- package/dist/ecl-BDQHA6fi.mjs +0 -456
- package/dist/ecl-BZ8GfbIS.js +0 -1
- package/dist/editor.worker.js +0 -1
- package/dist/editorWorkerHost-CXSl__Sw.mjs +0 -11917
- package/dist/editorWorkerHost-J3OLr02l.js +0 -33
- package/dist/elixir-D4II6kDM.mjs +0 -569
- package/dist/elixir-HwUoMs-6.js +0 -1
- package/dist/flow9-Co-egZvn.js +0 -1
- package/dist/flow9-StcnL-VB.mjs +0 -142
- package/dist/freemarker2-0KWO0y3D.mjs +0 -982
- package/dist/freemarker2-CWgJ4a-p.js +0 -3
- package/dist/fsharp-By4FMj_K.js +0 -1
- package/dist/fsharp-DdUVp3EN.mjs +0 -217
- package/dist/go-D0-3Iavh.js +0 -1
- package/dist/go-D1-I258M.mjs +0 -218
- package/dist/graphql-DWkL3f8U.mjs +0 -151
- package/dist/graphql-arXy5b1U.js +0 -1
- package/dist/handlebars-B3DRUYqI.js +0 -1
- package/dist/handlebars-CtTh3MzK.mjs +0 -412
- package/dist/hcl-DQpT3BXv.js +0 -1
- package/dist/hcl-D_0MNifv.mjs +0 -183
- package/dist/html-Bfagd5f8.mjs +0 -301
- package/dist/html-Cq6ODg2A.js +0 -1
- package/dist/htmlMode-BCWHN8H1.js +0 -1
- package/dist/htmlMode-Ca4o_48E.mjs +0 -152
- package/dist/index-BnVmN2qp.js +0 -875
- package/dist/index-CcXLAo11.js +0 -1
- package/dist/index-D7fx9aNv.mjs +0 -498
- package/dist/index-DnKFAZ-F.mjs +0 -117301
- package/dist/index.js +0 -1
- package/dist/ini-C4I2-MT7.mjs +0 -71
- package/dist/ini-CHrdBSR6.js +0 -1
- package/dist/initialize-7Tsg9DJ6.mjs +0 -44
- package/dist/initialize-8Cpp42Fp.js +0 -1
- package/dist/java-DkNlCtA8.js +0 -1
- package/dist/java-OBvaP_SS.mjs +0 -232
- package/dist/javascript-C_YSapv9.js +0 -1
- package/dist/javascript-D2KmymLa.mjs +0 -70
- package/dist/json.worker.js +0 -17
- package/dist/jsonMode-DaXUMuRa.js +0 -1
- package/dist/jsonMode-Dnqj4FWW.mjs +0 -306
- package/dist/julia-BmDH8Kkf.mjs +0 -511
- package/dist/julia-D2YHJdZy.js +0 -1
- package/dist/kotlin-BSyr2f_w.js +0 -1
- package/dist/kotlin-Dhu5AGOD.mjs +0 -252
- package/dist/less-C8csD237.js +0 -2
- package/dist/less-CzmjXREq.mjs +0 -162
- package/dist/lexon-CV2c4pN9.mjs +0 -157
- package/dist/lexon-Dg5XMXM-.js +0 -1
- package/dist/liquid-CQtA4TA-.mjs +0 -233
- package/dist/liquid-Dc6vO2KK.js +0 -1
- package/dist/lspLanguageFeatures-CeustN1U.js +0 -2
- package/dist/lspLanguageFeatures-DUzyYYsS.mjs +0 -534
- package/dist/lua-BOoO7Ej7.js +0 -1
- package/dist/lua-CFY5U8qF.mjs +0 -162
- package/dist/m3-BL_AnZVh.mjs +0 -210
- package/dist/m3-Bny7JARg.js +0 -1
- package/dist/main-B2xgQ6G2.mjs +0 -687
- package/dist/main-C27EQSK2.mjs +0 -947
- package/dist/main-DXJICgQq.js +0 -3
- package/dist/main-Dt1Bdcpc.js +0 -15
- package/dist/markdown-CWKQPXCv.mjs +0 -229
- package/dist/markdown-cseWCS9n.js +0 -1
- package/dist/mdx-C2nK3qTe.js +0 -1
- package/dist/mdx-cjfOdSKt.mjs +0 -158
- package/dist/mips-7JuqcyJ4.js +0 -1
- package/dist/mips-ButYmJ5E.mjs +0 -198
- package/dist/monaco-editor11.css +0 -1
- package/dist/msdax-BmYA5eV5.js +0 -1
- package/dist/msdax-C3cnXqDh.mjs +0 -375
- package/dist/mysql-CHTrPhJ_.js +0 -1
- package/dist/mysql-YlSHaf6G.mjs +0 -878
- package/dist/objective-c-CUdbM2R7.js +0 -1
- package/dist/objective-c-Dwnlproe.mjs +0 -183
- package/dist/pascal-CNC6uGuD.js +0 -1
- package/dist/pascal-UzGbSWEN.mjs +0 -251
- package/dist/pascaligo-BEZzSZnI.js +0 -1
- package/dist/pascaligo-CslTgu68.mjs +0 -164
- package/dist/perl-JOl0jAD9.js +0 -1
- package/dist/perl-oj6r_mgw.mjs +0 -626
- package/dist/pgsql-BlC3cJBr.js +0 -1
- package/dist/pgsql-DSBO0Mev.mjs +0 -851
- package/dist/php-6ijfJ2jK.js +0 -1
- package/dist/php-YzCD--7j.mjs +0 -500
- package/dist/pla-CmylB8vQ.mjs +0 -137
- package/dist/pla-DB8tU9Tm.js +0 -1
- package/dist/postiats-BMJJQsUH.js +0 -1
- package/dist/postiats-CLFW5gNY.mjs +0 -907
- package/dist/powerquery-CmOWUvlh.mjs +0 -890
- package/dist/powerquery-CoLfQ6__.js +0 -1
- package/dist/powershell-BA5owzqH.js +0 -1
- package/dist/powershell-fHQcmBLK.mjs +0 -239
- package/dist/protobuf-DUMRTG9C.js +0 -2
- package/dist/protobuf-p5BArb-9.mjs +0 -420
- package/dist/pug-D3HDBCR9.js +0 -1
- package/dist/pug-gVdUDvqf.mjs +0 -402
- package/dist/python-BaSW5leI.js +0 -1
- package/dist/python-DA6ByLCZ.mjs +0 -294
- package/dist/qsharp-DN7Y6XhL.js +0 -1
- package/dist/qsharp-DnrWSUlt.mjs +0 -301
- package/dist/r-Bc6rlFXl.js +0 -1
- package/dist/r-Cv309K2z.mjs +0 -243
- package/dist/razor-3z9XYGZf.mjs +0 -543
- package/dist/razor-nQE2Djhf.js +0 -1
- package/dist/redis-BVBmvApp.js +0 -1
- package/dist/redis-DTcS4wMj.mjs +0 -302
- package/dist/redshift-BdEMv0YI.js +0 -1
- package/dist/redshift-hLxZVESM.mjs +0 -809
- package/dist/restructuredtext-C898lK4f.mjs +0 -174
- package/dist/restructuredtext-Cwgkbiv3.js +0 -1
- package/dist/ruby-BPqQ0TOE.js +0 -1
- package/dist/ruby-CgKtnJIQ.mjs +0 -511
- package/dist/rust-DGojqpAN.js +0 -1
- package/dist/rust-bj8oxVnh.mjs +0 -343
- package/dist/sb-B572kJZe.js +0 -1
- package/dist/sb-DWynz26l.mjs +0 -115
- package/dist/scala-BL5z1UEd.mjs +0 -370
- package/dist/scala-CDQ1h1Nd.js +0 -1
- package/dist/scheme-CgaAfqMQ.js +0 -1
- package/dist/scheme-DUJsH6VU.mjs +0 -108
- package/dist/scss-CxjmhvaL.mjs +0 -262
- package/dist/scss-DZHIl239.js +0 -3
- package/dist/shell-D14Zs1dF.mjs +0 -221
- package/dist/shell-D5kOdfAA.js +0 -1
- package/dist/solidity-D6vCwnFo.js +0 -1
- package/dist/solidity-WyRm-BGK.mjs +0 -1367
- package/dist/sophia-BJdevZpo.js +0 -1
- package/dist/sophia-CKk-_Oa5.mjs +0 -199
- package/dist/sparql-DHtmINMZ.mjs +0 -201
- package/dist/sparql-v4dsLpAQ.js +0 -1
- package/dist/sql-Dqaj5JHC.mjs +0 -853
- package/dist/sql-RAt0uxGh.js +0 -1
- package/dist/st-Bj2IIaop.mjs +0 -416
- package/dist/st-CjwpLApO.js +0 -1
- package/dist/swift-BcIVfYEa.js +0 -3
- package/dist/swift-DwxP72iM.mjs +0 -312
- package/dist/systemverilog-CX2A8v2w.js +0 -1
- package/dist/systemverilog-D7wJfuql.mjs +0 -576
- package/dist/tcl-0ApMt-eC.mjs +0 -232
- package/dist/tcl-CCvdS1Ng.js +0 -1
- package/dist/ts.worker.js +0 -67706
- package/dist/tsMode-CieVaThB.js +0 -11
- package/dist/tsMode-pbVGEqHg.mjs +0 -946
- package/dist/twig-DxwbdmvQ.mjs +0 -392
- package/dist/twig-KWJe-gee.js +0 -1
- package/dist/typescript-CL7lZGgL.mjs +0 -336
- package/dist/typescript-D-fgoGBJ.js +0 -1
- package/dist/typespec-Fd-JwSuS.mjs +0 -117
- package/dist/typespec-gb5rMy4D.js +0 -1
- package/dist/vb-CxuyYE1I.mjs +0 -372
- package/dist/vb-D2rfixXK.js +0 -1
- package/dist/wgsl-DoEGc31J.mjs +0 -439
- package/dist/wgsl-Dpy8Oyoq.js +0 -298
- package/dist/xml-Dm8zU0Zq.mjs +0 -88
- package/dist/xml-luJ1w-__.js +0 -1
- package/dist/yaml-DDKFPb37.mjs +0 -199
- package/dist/yaml-DZkx0RTO.js +0 -1
|
@@ -1,420 +0,0 @@
|
|
|
1
|
-
const e = ["true", "false"], t = {
|
|
2
|
-
comments: {
|
|
3
|
-
lineComment: "//",
|
|
4
|
-
blockComment: ["/*", "*/"]
|
|
5
|
-
},
|
|
6
|
-
brackets: [
|
|
7
|
-
["{", "}"],
|
|
8
|
-
["[", "]"],
|
|
9
|
-
["(", ")"],
|
|
10
|
-
["<", ">"]
|
|
11
|
-
],
|
|
12
|
-
surroundingPairs: [
|
|
13
|
-
{ open: "{", close: "}" },
|
|
14
|
-
{ open: "[", close: "]" },
|
|
15
|
-
{ open: "(", close: ")" },
|
|
16
|
-
{ open: "<", close: ">" },
|
|
17
|
-
{ open: '"', close: '"' },
|
|
18
|
-
{ open: "'", close: "'" }
|
|
19
|
-
],
|
|
20
|
-
autoClosingPairs: [
|
|
21
|
-
{ open: "{", close: "}" },
|
|
22
|
-
{ open: "[", close: "]" },
|
|
23
|
-
{ open: "(", close: ")" },
|
|
24
|
-
{ open: "<", close: ">" },
|
|
25
|
-
{ open: '"', close: '"', notIn: ["string"] },
|
|
26
|
-
{ open: "'", close: "'", notIn: ["string"] }
|
|
27
|
-
],
|
|
28
|
-
autoCloseBefore: `.,=}])>'
|
|
29
|
-
`,
|
|
30
|
-
indentationRules: {
|
|
31
|
-
increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
|
32
|
-
decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
|
33
|
-
}
|
|
34
|
-
}, n = {
|
|
35
|
-
defaultToken: "",
|
|
36
|
-
tokenPostfix: ".proto",
|
|
37
|
-
brackets: [
|
|
38
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
39
|
-
{ open: "[", close: "]", token: "delimiter.square" },
|
|
40
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
41
|
-
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
42
|
-
],
|
|
43
|
-
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
44
|
-
keywords: [
|
|
45
|
-
"syntax",
|
|
46
|
-
"import",
|
|
47
|
-
"weak",
|
|
48
|
-
"public",
|
|
49
|
-
"package",
|
|
50
|
-
"option",
|
|
51
|
-
"repeated",
|
|
52
|
-
"oneof",
|
|
53
|
-
"map",
|
|
54
|
-
"reserved",
|
|
55
|
-
"to",
|
|
56
|
-
"max",
|
|
57
|
-
"enum",
|
|
58
|
-
"message",
|
|
59
|
-
"service",
|
|
60
|
-
"rpc",
|
|
61
|
-
"stream",
|
|
62
|
-
"returns",
|
|
63
|
-
"package",
|
|
64
|
-
"optional",
|
|
65
|
-
"true",
|
|
66
|
-
"false"
|
|
67
|
-
],
|
|
68
|
-
builtinTypes: [
|
|
69
|
-
"double",
|
|
70
|
-
"float",
|
|
71
|
-
"int32",
|
|
72
|
-
"int64",
|
|
73
|
-
"uint32",
|
|
74
|
-
"uint64",
|
|
75
|
-
"sint32",
|
|
76
|
-
"sint64",
|
|
77
|
-
"fixed32",
|
|
78
|
-
"fixed64",
|
|
79
|
-
"sfixed32",
|
|
80
|
-
"sfixed64",
|
|
81
|
-
"bool",
|
|
82
|
-
"string",
|
|
83
|
-
"bytes"
|
|
84
|
-
],
|
|
85
|
-
operators: ["=", "+", "-"],
|
|
86
|
-
namedLiterals: e,
|
|
87
|
-
escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
|
|
88
|
-
identifier: /[a-zA-Z]\w*/,
|
|
89
|
-
fullIdentifier: /@identifier(?:\s*\.\s*@identifier)*/,
|
|
90
|
-
optionName: /(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,
|
|
91
|
-
messageName: /@identifier/,
|
|
92
|
-
enumName: /@identifier/,
|
|
93
|
-
messageType: /\.?\s*(?:@identifier\s*\.\s*)*@messageName/,
|
|
94
|
-
enumType: /\.?\s*(?:@identifier\s*\.\s*)*@enumName/,
|
|
95
|
-
floatLit: /[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,
|
|
96
|
-
exponent: /[eE]\s*[+-]?\s*[0-9]+/,
|
|
97
|
-
boolLit: /true\b|false\b/,
|
|
98
|
-
decimalLit: /[1-9][0-9]*/,
|
|
99
|
-
octalLit: /0[0-7]*/,
|
|
100
|
-
hexLit: /0[xX][0-9a-fA-F]+/,
|
|
101
|
-
type: /double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,
|
|
102
|
-
keyType: /int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,
|
|
103
|
-
tokenizer: {
|
|
104
|
-
root: [
|
|
105
|
-
{ include: "@whitespace" },
|
|
106
|
-
[/syntax/, "keyword"],
|
|
107
|
-
[/=/, "operators"],
|
|
108
|
-
[/;/, "delimiter"],
|
|
109
|
-
[
|
|
110
|
-
/(")(proto3)(")/,
|
|
111
|
-
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto3" }]
|
|
112
|
-
],
|
|
113
|
-
[
|
|
114
|
-
/(")(proto2)(")/,
|
|
115
|
-
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto2" }]
|
|
116
|
-
],
|
|
117
|
-
[
|
|
118
|
-
// If no `syntax` provided, regarded as proto2
|
|
119
|
-
/.*?/,
|
|
120
|
-
{ token: "", switchTo: "@topLevel.proto2" }
|
|
121
|
-
]
|
|
122
|
-
],
|
|
123
|
-
topLevel: [
|
|
124
|
-
// whitespace
|
|
125
|
-
{ include: "@whitespace" },
|
|
126
|
-
{ include: "@constant" },
|
|
127
|
-
[/=/, "operators"],
|
|
128
|
-
[/[;.]/, "delimiter"],
|
|
129
|
-
[
|
|
130
|
-
/@fullIdentifier/,
|
|
131
|
-
{
|
|
132
|
-
cases: {
|
|
133
|
-
option: { token: "keyword", next: "@option.$S2" },
|
|
134
|
-
enum: { token: "keyword", next: "@enumDecl.$S2" },
|
|
135
|
-
message: { token: "keyword", next: "@messageDecl.$S2" },
|
|
136
|
-
service: { token: "keyword", next: "@serviceDecl.$S2" },
|
|
137
|
-
extend: {
|
|
138
|
-
cases: {
|
|
139
|
-
"$S2==proto2": { token: "keyword", next: "@extendDecl.$S2" }
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
"@keywords": "keyword",
|
|
143
|
-
"@default": "identifier"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
]
|
|
147
|
-
],
|
|
148
|
-
enumDecl: [
|
|
149
|
-
{ include: "@whitespace" },
|
|
150
|
-
[/@identifier/, "type.identifier"],
|
|
151
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@enumBody.$S2" }]
|
|
152
|
-
],
|
|
153
|
-
enumBody: [
|
|
154
|
-
{ include: "@whitespace" },
|
|
155
|
-
{ include: "@constant" },
|
|
156
|
-
[/=/, "operators"],
|
|
157
|
-
[/;/, "delimiter"],
|
|
158
|
-
[/option\b/, "keyword", "@option.$S2"],
|
|
159
|
-
[/@identifier/, "identifier"],
|
|
160
|
-
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
161
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
162
|
-
],
|
|
163
|
-
messageDecl: [
|
|
164
|
-
{ include: "@whitespace" },
|
|
165
|
-
[/@identifier/, "type.identifier"],
|
|
166
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }]
|
|
167
|
-
],
|
|
168
|
-
messageBody: [
|
|
169
|
-
{ include: "@whitespace" },
|
|
170
|
-
{ include: "@constant" },
|
|
171
|
-
[/=/, "operators"],
|
|
172
|
-
[/;/, "delimiter"],
|
|
173
|
-
[
|
|
174
|
-
"(map)(s*)(<)",
|
|
175
|
-
["keyword", "white", { token: "@brackets", bracket: "@open", next: "@map.$S2" }]
|
|
176
|
-
],
|
|
177
|
-
[
|
|
178
|
-
/@identifier/,
|
|
179
|
-
{
|
|
180
|
-
cases: {
|
|
181
|
-
option: { token: "keyword", next: "@option.$S2" },
|
|
182
|
-
enum: { token: "keyword", next: "@enumDecl.$S2" },
|
|
183
|
-
message: { token: "keyword", next: "@messageDecl.$S2" },
|
|
184
|
-
oneof: { token: "keyword", next: "@oneofDecl.$S2" },
|
|
185
|
-
extensions: {
|
|
186
|
-
cases: {
|
|
187
|
-
"$S2==proto2": { token: "keyword", next: "@reserved.$S2" }
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
reserved: { token: "keyword", next: "@reserved.$S2" },
|
|
191
|
-
"(?:repeated|optional)": { token: "keyword", next: "@field.$S2" },
|
|
192
|
-
required: {
|
|
193
|
-
cases: {
|
|
194
|
-
"$S2==proto2": { token: "keyword", next: "@field.$S2" }
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
"$S2==proto3": { token: "@rematch", next: "@field.$S2" }
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
202
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
203
|
-
],
|
|
204
|
-
extendDecl: [
|
|
205
|
-
{ include: "@whitespace" },
|
|
206
|
-
[/@identifier/, "type.identifier"],
|
|
207
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@extendBody.$S2" }]
|
|
208
|
-
],
|
|
209
|
-
extendBody: [
|
|
210
|
-
{ include: "@whitespace" },
|
|
211
|
-
{ include: "@constant" },
|
|
212
|
-
[/;/, "delimiter"],
|
|
213
|
-
[/(?:repeated|optional|required)/, "keyword", "@field.$S2"],
|
|
214
|
-
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
215
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
216
|
-
],
|
|
217
|
-
options: [
|
|
218
|
-
{ include: "@whitespace" },
|
|
219
|
-
{ include: "@constant" },
|
|
220
|
-
[/;/, "delimiter"],
|
|
221
|
-
[/@optionName/, "annotation"],
|
|
222
|
-
[/[()]/, "annotation.brackets"],
|
|
223
|
-
[/=/, "operator"],
|
|
224
|
-
[/\]/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
225
|
-
],
|
|
226
|
-
option: [
|
|
227
|
-
{ include: "@whitespace" },
|
|
228
|
-
[/@optionName/, "annotation"],
|
|
229
|
-
[/[()]/, "annotation.brackets"],
|
|
230
|
-
[/=/, "operator", "@pop"]
|
|
231
|
-
],
|
|
232
|
-
oneofDecl: [
|
|
233
|
-
{ include: "@whitespace" },
|
|
234
|
-
[/@identifier/, "identifier"],
|
|
235
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@oneofBody.$S2" }]
|
|
236
|
-
],
|
|
237
|
-
oneofBody: [
|
|
238
|
-
{ include: "@whitespace" },
|
|
239
|
-
{ include: "@constant" },
|
|
240
|
-
[/;/, "delimiter"],
|
|
241
|
-
[/(@identifier)(\s*)(=)/, ["identifier", "white", "delimiter"]],
|
|
242
|
-
[
|
|
243
|
-
/@fullIdentifier|\./,
|
|
244
|
-
{
|
|
245
|
-
cases: {
|
|
246
|
-
"@builtinTypes": "keyword",
|
|
247
|
-
"@default": "type.identifier"
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
],
|
|
251
|
-
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
252
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
253
|
-
],
|
|
254
|
-
reserved: [
|
|
255
|
-
{ include: "@whitespace" },
|
|
256
|
-
[/,/, "delimiter"],
|
|
257
|
-
[/;/, "delimiter", "@pop"],
|
|
258
|
-
{ include: "@constant" },
|
|
259
|
-
[/to\b|max\b/, "keyword"]
|
|
260
|
-
],
|
|
261
|
-
map: [
|
|
262
|
-
{ include: "@whitespace" },
|
|
263
|
-
[
|
|
264
|
-
/@fullIdentifier|\./,
|
|
265
|
-
{
|
|
266
|
-
cases: {
|
|
267
|
-
"@builtinTypes": "keyword",
|
|
268
|
-
"@default": "type.identifier"
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
[/,/, "delimiter"],
|
|
273
|
-
[/>/, { token: "@brackets", bracket: "@close", switchTo: "identifier" }]
|
|
274
|
-
],
|
|
275
|
-
field: [
|
|
276
|
-
{ include: "@whitespace" },
|
|
277
|
-
[
|
|
278
|
-
"group",
|
|
279
|
-
{
|
|
280
|
-
cases: {
|
|
281
|
-
"$S2==proto2": { token: "keyword", switchTo: "@groupDecl.$S2" }
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
[/(@identifier)(\s*)(=)/, ["identifier", "white", { token: "delimiter", next: "@pop" }]],
|
|
286
|
-
[
|
|
287
|
-
/@fullIdentifier|\./,
|
|
288
|
-
{
|
|
289
|
-
cases: {
|
|
290
|
-
"@builtinTypes": "keyword",
|
|
291
|
-
"@default": "type.identifier"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
]
|
|
295
|
-
],
|
|
296
|
-
groupDecl: [
|
|
297
|
-
{ include: "@whitespace" },
|
|
298
|
-
[/@identifier/, "identifier"],
|
|
299
|
-
["=", "operator"],
|
|
300
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }],
|
|
301
|
-
{ include: "@constant" }
|
|
302
|
-
],
|
|
303
|
-
type: [
|
|
304
|
-
{ include: "@whitespace" },
|
|
305
|
-
[/@identifier/, "type.identifier", "@pop"],
|
|
306
|
-
[/./, "delimiter"]
|
|
307
|
-
],
|
|
308
|
-
identifier: [{ include: "@whitespace" }, [/@identifier/, "identifier", "@pop"]],
|
|
309
|
-
serviceDecl: [
|
|
310
|
-
{ include: "@whitespace" },
|
|
311
|
-
[/@identifier/, "identifier"],
|
|
312
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@serviceBody.$S2" }]
|
|
313
|
-
],
|
|
314
|
-
serviceBody: [
|
|
315
|
-
{ include: "@whitespace" },
|
|
316
|
-
{ include: "@constant" },
|
|
317
|
-
[/;/, "delimiter"],
|
|
318
|
-
[/option\b/, "keyword", "@option.$S2"],
|
|
319
|
-
[/rpc\b/, "keyword", "@rpc.$S2"],
|
|
320
|
-
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
321
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
322
|
-
],
|
|
323
|
-
rpc: [
|
|
324
|
-
{ include: "@whitespace" },
|
|
325
|
-
[/@identifier/, "identifier"],
|
|
326
|
-
[/\(/, { token: "@brackets", bracket: "@open", switchTo: "@request.$S2" }],
|
|
327
|
-
[/{/, { token: "@brackets", bracket: "@open", next: "@methodOptions.$S2" }],
|
|
328
|
-
[/;/, "delimiter", "@pop"]
|
|
329
|
-
],
|
|
330
|
-
request: [
|
|
331
|
-
{ include: "@whitespace" },
|
|
332
|
-
[
|
|
333
|
-
/@messageType/,
|
|
334
|
-
{
|
|
335
|
-
cases: {
|
|
336
|
-
stream: { token: "keyword", next: "@type.$S2" },
|
|
337
|
-
"@default": "type.identifier"
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
],
|
|
341
|
-
[/\)/, { token: "@brackets", bracket: "@close", switchTo: "@returns.$S2" }]
|
|
342
|
-
],
|
|
343
|
-
returns: [
|
|
344
|
-
{ include: "@whitespace" },
|
|
345
|
-
[/returns\b/, "keyword"],
|
|
346
|
-
[/\(/, { token: "@brackets", bracket: "@open", switchTo: "@response.$S2" }]
|
|
347
|
-
],
|
|
348
|
-
response: [
|
|
349
|
-
{ include: "@whitespace" },
|
|
350
|
-
[
|
|
351
|
-
/@messageType/,
|
|
352
|
-
{
|
|
353
|
-
cases: {
|
|
354
|
-
stream: { token: "keyword", next: "@type.$S2" },
|
|
355
|
-
"@default": "type.identifier"
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
],
|
|
359
|
-
[/\)/, { token: "@brackets", bracket: "@close", switchTo: "@rpc.$S2" }]
|
|
360
|
-
],
|
|
361
|
-
methodOptions: [
|
|
362
|
-
{ include: "@whitespace" },
|
|
363
|
-
{ include: "@constant" },
|
|
364
|
-
[/;/, "delimiter"],
|
|
365
|
-
["option", "keyword"],
|
|
366
|
-
[/@optionName/, "annotation"],
|
|
367
|
-
[/[()]/, "annotation.brackets"],
|
|
368
|
-
[/=/, "operator"],
|
|
369
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
370
|
-
],
|
|
371
|
-
comment: [
|
|
372
|
-
[/[^\/*]+/, "comment"],
|
|
373
|
-
[/\/\*/, "comment", "@push"],
|
|
374
|
-
// nested comment
|
|
375
|
-
["\\*/", "comment", "@pop"],
|
|
376
|
-
[/[\/*]/, "comment"]
|
|
377
|
-
],
|
|
378
|
-
string: [
|
|
379
|
-
[/[^\\"]+/, "string"],
|
|
380
|
-
[/@escapes/, "string.escape"],
|
|
381
|
-
[/\\./, "string.escape.invalid"],
|
|
382
|
-
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
383
|
-
],
|
|
384
|
-
stringSingle: [
|
|
385
|
-
[/[^\\']+/, "string"],
|
|
386
|
-
[/@escapes/, "string.escape"],
|
|
387
|
-
[/\\./, "string.escape.invalid"],
|
|
388
|
-
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
389
|
-
],
|
|
390
|
-
constant: [
|
|
391
|
-
["@boolLit", "keyword.constant"],
|
|
392
|
-
["@hexLit", "number.hex"],
|
|
393
|
-
["@octalLit", "number.octal"],
|
|
394
|
-
["@decimalLit", "number"],
|
|
395
|
-
["@floatLit", "number.float"],
|
|
396
|
-
[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, "string.invalid"],
|
|
397
|
-
// non-terminated string
|
|
398
|
-
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
|
399
|
-
[/'/, { token: "string.quote", bracket: "@open", next: "@stringSingle" }],
|
|
400
|
-
[/{/, { token: "@brackets", bracket: "@open", next: "@prototext" }],
|
|
401
|
-
[/identifier/, "identifier"]
|
|
402
|
-
],
|
|
403
|
-
whitespace: [
|
|
404
|
-
[/[ \t\r\n]+/, "white"],
|
|
405
|
-
[/\/\*/, "comment", "@comment"],
|
|
406
|
-
[/\/\/.*$/, "comment"]
|
|
407
|
-
],
|
|
408
|
-
prototext: [
|
|
409
|
-
{ include: "@whitespace" },
|
|
410
|
-
{ include: "@constant" },
|
|
411
|
-
[/@identifier/, "identifier"],
|
|
412
|
-
[/[:;]/, "delimiter"],
|
|
413
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
414
|
-
]
|
|
415
|
-
}
|
|
416
|
-
};
|
|
417
|
-
export {
|
|
418
|
-
t as conf,
|
|
419
|
-
n as language
|
|
420
|
-
};
|
package/dist/pug-D3HDBCR9.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const 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;
|