@kong-ui-public/monaco-editor 0.1.1 → 0.1.2-pr.2609.2ce4f4787.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/dist/abap-D0Neqhq6.js +1404 -0
- package/dist/apex-B5LhxkeG.js +332 -0
- package/dist/azcli-BrBH0QTU.js +74 -0
- package/dist/bat-BfzAov64.js +106 -0
- package/dist/bicep-C3bCSWel.js +108 -0
- package/dist/cameligo-sFL5plcd.js +180 -0
- package/dist/clojure-CfeExRz0.js +767 -0
- package/dist/coffee-Xws5K0WL.js +238 -0
- package/dist/cpp-CqOUEpxN.js +395 -0
- package/dist/csharp-DVLiBOZb.js +332 -0
- package/dist/csp-DVFp9bw5.js +59 -0
- package/dist/css-DwARn2R6.js +193 -0
- package/dist/cssMode-BRHW0OjB.js +1577 -0
- package/dist/cypher-uY0Mffat.js +269 -0
- package/dist/dart-D27H-mX_.js +287 -0
- package/dist/dockerfile-CmV85WZK.js +136 -0
- package/dist/ecl--fKn7yzB.js +462 -0
- package/dist/editor.main-BVWEsGeM.js +112170 -0
- package/dist/elixir-DUhH17ON.js +575 -0
- package/dist/flow9-B3Dx2LLe.js +148 -0
- package/dist/freemarker2-DrnILGvf.js +995 -0
- package/dist/fsharp-SyqBfUAR.js +223 -0
- package/dist/go-BbMR2tdT.js +224 -0
- package/dist/graphql-DDJE6tIl.js +157 -0
- package/dist/handlebars-D2vGkdp7.js +425 -0
- package/dist/hcl-YBvpaUqf.js +189 -0
- package/dist/html-D3HI-WFO.js +314 -0
- package/dist/htmlMode-CNpiDTvN.js +1587 -0
- package/dist/ini-Ct73dBtM.js +77 -0
- package/dist/java-C_jlkwoG.js +238 -0
- package/dist/javascript-DLZMP-Wa.js +76 -0
- package/dist/jsonMode-CEQtUpLb.js +2002 -0
- package/dist/julia-D8WE5U1e.js +517 -0
- package/dist/kotlin-Zy9aq5yB.js +259 -0
- package/dist/less-sZ0iHtE8.js +168 -0
- package/dist/lexon-CsdNL29A.js +163 -0
- package/dist/liquid-CnqLoV0A.js +246 -0
- package/dist/lua-C2YJo0zw.js +168 -0
- package/dist/m3-CPLP40SG.js +216 -0
- package/dist/markdown-B1mf5e0R.js +235 -0
- package/dist/mdx-C6hXTTY6.js +171 -0
- package/dist/mips-DA33BZX1.js +204 -0
- package/dist/monaco-editor.es.js +224 -14
- package/dist/monaco-editor.umd.js +1913 -1
- package/dist/msdax-CCYFIQsP.js +381 -0
- package/dist/mysql-hjmIjL-D.js +884 -0
- package/dist/objective-c-RRCpEmqC.js +189 -0
- package/dist/pascal-CeV8XfxB.js +257 -0
- package/dist/pascaligo-IEEGVJAJ.js +170 -0
- package/dist/perl-B5-QbHq_.js +632 -0
- package/dist/pgsql-s6kqEJmi.js +857 -0
- package/dist/php-CWWqzOo8.js +506 -0
- package/dist/pla-FSvb_YP_.js +143 -0
- package/dist/postiats-DQdscQXO.js +913 -0
- package/dist/powerquery-CtA5JA1I.js +896 -0
- package/dist/powershell-DglEq96N.js +245 -0
- package/dist/protobuf-BSepub3e.js +426 -0
- package/dist/pug-B1847F4G.js +408 -0
- package/dist/python-CGI_fE8F.js +307 -0
- package/dist/qsharp-D4i0Nqg9.js +307 -0
- package/dist/r-cdRigKxa.js +249 -0
- package/dist/razor-DNVpjohl.js +556 -0
- package/dist/redis-D9MFxvE8.js +308 -0
- package/dist/redshift-CmCnsvL-.js +815 -0
- package/dist/restructuredtext-CWy8J51t.js +180 -0
- package/dist/ruby-WP-c36m5.js +517 -0
- package/dist/rust-Q9FLdYpu.js +349 -0
- package/dist/sb-C54-JBGT.js +121 -0
- package/dist/scala-CzbFImc5.js +376 -0
- package/dist/scheme-BhfDmYN3.js +114 -0
- package/dist/scss-CEmiBXpS.js +268 -0
- package/dist/shell-Bmc1VhG0.js +227 -0
- package/dist/solidity-C9Q2I8Hh.js +1373 -0
- package/dist/sophia-jWa1UyKz.js +205 -0
- package/dist/sparql-CM7jctbc.js +207 -0
- package/dist/sql-WzihTkbg.js +859 -0
- package/dist/st-6y7_3aup.js +422 -0
- package/dist/style.css +1 -0
- package/dist/swift-k-0zxG_D.js +318 -0
- package/dist/systemverilog-Pnr5_rIP.js +582 -0
- package/dist/tcl-fNPXval8.js +238 -0
- package/dist/tsMode-CRUDJ1Gx.js +895 -0
- package/dist/twig-L2MkztkV.js +398 -0
- package/dist/types/composables/useMonacoEditor.d.ts +25 -0
- package/dist/types/composables/useMonacoEditor.d.ts.map +1 -0
- package/dist/types/constants/index.d.ts +3 -0
- package/dist/types/constants/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +78 -0
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +68 -1
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/typescript-C2FvJtQm.js +349 -0
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/vb-B5YC2xN9.js +378 -0
- package/dist/wgsl-B-_uRex7.js +445 -0
- package/dist/xml-e_XsfZP6.js +101 -0
- package/dist/yaml-DOzdDlyx.js +212 -0
- package/package.json +14 -8
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
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
|
+
{ open: "'", close: "'" }
|
|
23
|
+
],
|
|
24
|
+
surroundingPairs: [
|
|
25
|
+
{ open: "{", close: "}" },
|
|
26
|
+
{ open: "[", close: "]" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: '"', close: '"' },
|
|
29
|
+
{ open: "'", close: "'" }
|
|
30
|
+
]
|
|
31
|
+
}, n = {
|
|
32
|
+
defaultToken: "",
|
|
33
|
+
tokenPostfix: ".objective-c",
|
|
34
|
+
keywords: [
|
|
35
|
+
"#import",
|
|
36
|
+
"#include",
|
|
37
|
+
"#define",
|
|
38
|
+
"#else",
|
|
39
|
+
"#endif",
|
|
40
|
+
"#if",
|
|
41
|
+
"#ifdef",
|
|
42
|
+
"#ifndef",
|
|
43
|
+
"#ident",
|
|
44
|
+
"#undef",
|
|
45
|
+
"@class",
|
|
46
|
+
"@defs",
|
|
47
|
+
"@dynamic",
|
|
48
|
+
"@encode",
|
|
49
|
+
"@end",
|
|
50
|
+
"@implementation",
|
|
51
|
+
"@interface",
|
|
52
|
+
"@package",
|
|
53
|
+
"@private",
|
|
54
|
+
"@protected",
|
|
55
|
+
"@property",
|
|
56
|
+
"@protocol",
|
|
57
|
+
"@public",
|
|
58
|
+
"@selector",
|
|
59
|
+
"@synthesize",
|
|
60
|
+
"__declspec",
|
|
61
|
+
"assign",
|
|
62
|
+
"auto",
|
|
63
|
+
"BOOL",
|
|
64
|
+
"break",
|
|
65
|
+
"bycopy",
|
|
66
|
+
"byref",
|
|
67
|
+
"case",
|
|
68
|
+
"char",
|
|
69
|
+
"Class",
|
|
70
|
+
"const",
|
|
71
|
+
"copy",
|
|
72
|
+
"continue",
|
|
73
|
+
"default",
|
|
74
|
+
"do",
|
|
75
|
+
"double",
|
|
76
|
+
"else",
|
|
77
|
+
"enum",
|
|
78
|
+
"extern",
|
|
79
|
+
"FALSE",
|
|
80
|
+
"false",
|
|
81
|
+
"float",
|
|
82
|
+
"for",
|
|
83
|
+
"goto",
|
|
84
|
+
"if",
|
|
85
|
+
"in",
|
|
86
|
+
"int",
|
|
87
|
+
"id",
|
|
88
|
+
"inout",
|
|
89
|
+
"IMP",
|
|
90
|
+
"long",
|
|
91
|
+
"nil",
|
|
92
|
+
"nonatomic",
|
|
93
|
+
"NULL",
|
|
94
|
+
"oneway",
|
|
95
|
+
"out",
|
|
96
|
+
"private",
|
|
97
|
+
"public",
|
|
98
|
+
"protected",
|
|
99
|
+
"readwrite",
|
|
100
|
+
"readonly",
|
|
101
|
+
"register",
|
|
102
|
+
"return",
|
|
103
|
+
"SEL",
|
|
104
|
+
"self",
|
|
105
|
+
"short",
|
|
106
|
+
"signed",
|
|
107
|
+
"sizeof",
|
|
108
|
+
"static",
|
|
109
|
+
"struct",
|
|
110
|
+
"super",
|
|
111
|
+
"switch",
|
|
112
|
+
"typedef",
|
|
113
|
+
"TRUE",
|
|
114
|
+
"true",
|
|
115
|
+
"union",
|
|
116
|
+
"unsigned",
|
|
117
|
+
"volatile",
|
|
118
|
+
"void",
|
|
119
|
+
"while"
|
|
120
|
+
],
|
|
121
|
+
decpart: /\d(_?\d)*/,
|
|
122
|
+
decimal: /0|@decpart/,
|
|
123
|
+
tokenizer: {
|
|
124
|
+
root: [
|
|
125
|
+
{ include: "@comments" },
|
|
126
|
+
{ include: "@whitespace" },
|
|
127
|
+
{ include: "@numbers" },
|
|
128
|
+
{ include: "@strings" },
|
|
129
|
+
[/[,:;]/, "delimiter"],
|
|
130
|
+
[/[{}\[\]()<>]/, "@brackets"],
|
|
131
|
+
[
|
|
132
|
+
/[a-zA-Z@#]\w*/,
|
|
133
|
+
{
|
|
134
|
+
cases: {
|
|
135
|
+
"@keywords": "keyword",
|
|
136
|
+
"@default": "identifier"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/, "operator"]
|
|
141
|
+
],
|
|
142
|
+
whitespace: [[/\s+/, "white"]],
|
|
143
|
+
comments: [
|
|
144
|
+
["\\/\\*", "comment", "@comment"],
|
|
145
|
+
["\\/\\/+.*", "comment"]
|
|
146
|
+
],
|
|
147
|
+
comment: [
|
|
148
|
+
["\\*\\/", "comment", "@pop"],
|
|
149
|
+
[".", "comment"]
|
|
150
|
+
],
|
|
151
|
+
numbers: [
|
|
152
|
+
[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/, "number.hex"],
|
|
153
|
+
[
|
|
154
|
+
/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,
|
|
155
|
+
{
|
|
156
|
+
cases: {
|
|
157
|
+
"(\\d)*": "number",
|
|
158
|
+
$0: "number.float"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
],
|
|
163
|
+
// Recognize strings, including those broken across lines with \ (but not without)
|
|
164
|
+
strings: [
|
|
165
|
+
[/'$/, "string.escape", "@popall"],
|
|
166
|
+
[/'/, "string.escape", "@stringBody"],
|
|
167
|
+
[/"$/, "string.escape", "@popall"],
|
|
168
|
+
[/"/, "string.escape", "@dblStringBody"]
|
|
169
|
+
],
|
|
170
|
+
stringBody: [
|
|
171
|
+
[/[^\\']+$/, "string", "@popall"],
|
|
172
|
+
[/[^\\']+/, "string"],
|
|
173
|
+
[/\\./, "string"],
|
|
174
|
+
[/'/, "string.escape", "@popall"],
|
|
175
|
+
[/\\$/, "string"]
|
|
176
|
+
],
|
|
177
|
+
dblStringBody: [
|
|
178
|
+
[/[^\\"]+$/, "string", "@popall"],
|
|
179
|
+
[/[^\\"]+/, "string"],
|
|
180
|
+
[/\\./, "string"],
|
|
181
|
+
[/"/, "string.escape", "@popall"],
|
|
182
|
+
[/\\$/, "string"]
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
export {
|
|
187
|
+
e as conf,
|
|
188
|
+
n as language
|
|
189
|
+
};
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
// the default separators except `@$`
|
|
9
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
10
|
+
comments: {
|
|
11
|
+
lineComment: "//",
|
|
12
|
+
blockComment: ["{", "}"]
|
|
13
|
+
},
|
|
14
|
+
brackets: [
|
|
15
|
+
["{", "}"],
|
|
16
|
+
["[", "]"],
|
|
17
|
+
["(", ")"],
|
|
18
|
+
["<", ">"]
|
|
19
|
+
],
|
|
20
|
+
autoClosingPairs: [
|
|
21
|
+
{ open: "{", close: "}" },
|
|
22
|
+
{ open: "[", close: "]" },
|
|
23
|
+
{ open: "(", close: ")" },
|
|
24
|
+
{ open: "<", close: ">" },
|
|
25
|
+
{ open: "'", close: "'" }
|
|
26
|
+
],
|
|
27
|
+
surroundingPairs: [
|
|
28
|
+
{ open: "{", close: "}" },
|
|
29
|
+
{ open: "[", close: "]" },
|
|
30
|
+
{ open: "(", close: ")" },
|
|
31
|
+
{ open: "<", close: ">" },
|
|
32
|
+
{ open: "'", close: "'" }
|
|
33
|
+
],
|
|
34
|
+
folding: {
|
|
35
|
+
markers: {
|
|
36
|
+
start: new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),
|
|
37
|
+
end: new RegExp("^\\s*\\{\\$ENDREGION\\}")
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, t = {
|
|
41
|
+
defaultToken: "",
|
|
42
|
+
tokenPostfix: ".pascal",
|
|
43
|
+
ignoreCase: !0,
|
|
44
|
+
brackets: [
|
|
45
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
46
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
47
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
48
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
49
|
+
],
|
|
50
|
+
keywords: [
|
|
51
|
+
"absolute",
|
|
52
|
+
"abstract",
|
|
53
|
+
"all",
|
|
54
|
+
"and_then",
|
|
55
|
+
"array",
|
|
56
|
+
"as",
|
|
57
|
+
"asm",
|
|
58
|
+
"attribute",
|
|
59
|
+
"begin",
|
|
60
|
+
"bindable",
|
|
61
|
+
"case",
|
|
62
|
+
"class",
|
|
63
|
+
"const",
|
|
64
|
+
"contains",
|
|
65
|
+
"default",
|
|
66
|
+
"div",
|
|
67
|
+
"else",
|
|
68
|
+
"end",
|
|
69
|
+
"except",
|
|
70
|
+
"exports",
|
|
71
|
+
"external",
|
|
72
|
+
"far",
|
|
73
|
+
"file",
|
|
74
|
+
"finalization",
|
|
75
|
+
"finally",
|
|
76
|
+
"forward",
|
|
77
|
+
"generic",
|
|
78
|
+
"goto",
|
|
79
|
+
"if",
|
|
80
|
+
"implements",
|
|
81
|
+
"import",
|
|
82
|
+
"in",
|
|
83
|
+
"index",
|
|
84
|
+
"inherited",
|
|
85
|
+
"initialization",
|
|
86
|
+
"interrupt",
|
|
87
|
+
"is",
|
|
88
|
+
"label",
|
|
89
|
+
"library",
|
|
90
|
+
"mod",
|
|
91
|
+
"module",
|
|
92
|
+
"name",
|
|
93
|
+
"near",
|
|
94
|
+
"not",
|
|
95
|
+
"object",
|
|
96
|
+
"of",
|
|
97
|
+
"on",
|
|
98
|
+
"only",
|
|
99
|
+
"operator",
|
|
100
|
+
"or_else",
|
|
101
|
+
"otherwise",
|
|
102
|
+
"override",
|
|
103
|
+
"package",
|
|
104
|
+
"packed",
|
|
105
|
+
"pow",
|
|
106
|
+
"private",
|
|
107
|
+
"program",
|
|
108
|
+
"protected",
|
|
109
|
+
"public",
|
|
110
|
+
"published",
|
|
111
|
+
"interface",
|
|
112
|
+
"implementation",
|
|
113
|
+
"qualified",
|
|
114
|
+
"read",
|
|
115
|
+
"record",
|
|
116
|
+
"resident",
|
|
117
|
+
"requires",
|
|
118
|
+
"resourcestring",
|
|
119
|
+
"restricted",
|
|
120
|
+
"segment",
|
|
121
|
+
"set",
|
|
122
|
+
"shl",
|
|
123
|
+
"shr",
|
|
124
|
+
"specialize",
|
|
125
|
+
"stored",
|
|
126
|
+
"strict",
|
|
127
|
+
"then",
|
|
128
|
+
"threadvar",
|
|
129
|
+
"to",
|
|
130
|
+
"try",
|
|
131
|
+
"type",
|
|
132
|
+
"unit",
|
|
133
|
+
"uses",
|
|
134
|
+
"var",
|
|
135
|
+
"view",
|
|
136
|
+
"virtual",
|
|
137
|
+
"dynamic",
|
|
138
|
+
"overload",
|
|
139
|
+
"reintroduce",
|
|
140
|
+
"with",
|
|
141
|
+
"write",
|
|
142
|
+
"xor",
|
|
143
|
+
"true",
|
|
144
|
+
"false",
|
|
145
|
+
"procedure",
|
|
146
|
+
"function",
|
|
147
|
+
"constructor",
|
|
148
|
+
"destructor",
|
|
149
|
+
"property",
|
|
150
|
+
"break",
|
|
151
|
+
"continue",
|
|
152
|
+
"exit",
|
|
153
|
+
"abort",
|
|
154
|
+
"while",
|
|
155
|
+
"do",
|
|
156
|
+
"for",
|
|
157
|
+
"raise",
|
|
158
|
+
"repeat",
|
|
159
|
+
"until"
|
|
160
|
+
],
|
|
161
|
+
typeKeywords: [
|
|
162
|
+
"boolean",
|
|
163
|
+
"double",
|
|
164
|
+
"byte",
|
|
165
|
+
"integer",
|
|
166
|
+
"shortint",
|
|
167
|
+
"char",
|
|
168
|
+
"longint",
|
|
169
|
+
"float",
|
|
170
|
+
"string"
|
|
171
|
+
],
|
|
172
|
+
operators: [
|
|
173
|
+
"=",
|
|
174
|
+
">",
|
|
175
|
+
"<",
|
|
176
|
+
"<=",
|
|
177
|
+
">=",
|
|
178
|
+
"<>",
|
|
179
|
+
":",
|
|
180
|
+
":=",
|
|
181
|
+
"and",
|
|
182
|
+
"or",
|
|
183
|
+
"+",
|
|
184
|
+
"-",
|
|
185
|
+
"*",
|
|
186
|
+
"/",
|
|
187
|
+
"@",
|
|
188
|
+
"&",
|
|
189
|
+
"^",
|
|
190
|
+
"%"
|
|
191
|
+
],
|
|
192
|
+
// we include these common regular expressions
|
|
193
|
+
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
|
194
|
+
// The main tokenizer for our languages
|
|
195
|
+
tokenizer: {
|
|
196
|
+
root: [
|
|
197
|
+
// identifiers and keywords
|
|
198
|
+
[
|
|
199
|
+
/[a-zA-Z_][\w]*/,
|
|
200
|
+
{
|
|
201
|
+
cases: {
|
|
202
|
+
"@keywords": { token: "keyword.$0" },
|
|
203
|
+
"@default": "identifier"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
// whitespace
|
|
208
|
+
{ include: "@whitespace" },
|
|
209
|
+
// delimiters and operators
|
|
210
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
211
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
212
|
+
[
|
|
213
|
+
/@symbols/,
|
|
214
|
+
{
|
|
215
|
+
cases: {
|
|
216
|
+
"@operators": "delimiter",
|
|
217
|
+
"@default": ""
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
// numbers
|
|
222
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
223
|
+
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
|
224
|
+
[/\d+/, "number"],
|
|
225
|
+
// delimiter: after number because of .\d floats
|
|
226
|
+
[/[;,.]/, "delimiter"],
|
|
227
|
+
// strings
|
|
228
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
229
|
+
// non-teminated string
|
|
230
|
+
[/'/, "string", "@string"],
|
|
231
|
+
// characters
|
|
232
|
+
[/'[^\\']'/, "string"],
|
|
233
|
+
[/'/, "string.invalid"],
|
|
234
|
+
[/\#\d+/, "string"]
|
|
235
|
+
],
|
|
236
|
+
comment: [
|
|
237
|
+
[/[^\*\}]+/, "comment"],
|
|
238
|
+
//[/\(\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
|
239
|
+
[/\}/, "comment", "@pop"],
|
|
240
|
+
[/[\{]/, "comment"]
|
|
241
|
+
],
|
|
242
|
+
string: [
|
|
243
|
+
[/[^\\']+/, "string"],
|
|
244
|
+
[/\\./, "string.escape.invalid"],
|
|
245
|
+
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
246
|
+
],
|
|
247
|
+
whitespace: [
|
|
248
|
+
[/[ \t\r\n]+/, "white"],
|
|
249
|
+
[/\{/, "comment", "@comment"],
|
|
250
|
+
[/\/\/.*$/, "comment"]
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
export {
|
|
255
|
+
e as conf,
|
|
256
|
+
t as language
|
|
257
|
+
};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
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
|
+
],
|
|
18
|
+
autoClosingPairs: [
|
|
19
|
+
{ open: "{", close: "}" },
|
|
20
|
+
{ open: "[", close: "]" },
|
|
21
|
+
{ open: "(", close: ")" },
|
|
22
|
+
{ open: "<", close: ">" },
|
|
23
|
+
{ open: "'", close: "'" }
|
|
24
|
+
],
|
|
25
|
+
surroundingPairs: [
|
|
26
|
+
{ open: "{", close: "}" },
|
|
27
|
+
{ open: "[", close: "]" },
|
|
28
|
+
{ open: "(", close: ")" },
|
|
29
|
+
{ open: "<", close: ">" },
|
|
30
|
+
{ open: "'", close: "'" }
|
|
31
|
+
]
|
|
32
|
+
}, o = {
|
|
33
|
+
defaultToken: "",
|
|
34
|
+
tokenPostfix: ".pascaligo",
|
|
35
|
+
ignoreCase: !0,
|
|
36
|
+
brackets: [
|
|
37
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
38
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
39
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
40
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
41
|
+
],
|
|
42
|
+
keywords: [
|
|
43
|
+
"begin",
|
|
44
|
+
"block",
|
|
45
|
+
"case",
|
|
46
|
+
"const",
|
|
47
|
+
"else",
|
|
48
|
+
"end",
|
|
49
|
+
"fail",
|
|
50
|
+
"for",
|
|
51
|
+
"from",
|
|
52
|
+
"function",
|
|
53
|
+
"if",
|
|
54
|
+
"is",
|
|
55
|
+
"nil",
|
|
56
|
+
"of",
|
|
57
|
+
"remove",
|
|
58
|
+
"return",
|
|
59
|
+
"skip",
|
|
60
|
+
"then",
|
|
61
|
+
"type",
|
|
62
|
+
"var",
|
|
63
|
+
"while",
|
|
64
|
+
"with",
|
|
65
|
+
"option",
|
|
66
|
+
"None",
|
|
67
|
+
"transaction"
|
|
68
|
+
],
|
|
69
|
+
typeKeywords: [
|
|
70
|
+
"bool",
|
|
71
|
+
"int",
|
|
72
|
+
"list",
|
|
73
|
+
"map",
|
|
74
|
+
"nat",
|
|
75
|
+
"record",
|
|
76
|
+
"string",
|
|
77
|
+
"unit",
|
|
78
|
+
"address",
|
|
79
|
+
"map",
|
|
80
|
+
"mtz",
|
|
81
|
+
"xtz"
|
|
82
|
+
],
|
|
83
|
+
operators: [
|
|
84
|
+
"=",
|
|
85
|
+
">",
|
|
86
|
+
"<",
|
|
87
|
+
"<=",
|
|
88
|
+
">=",
|
|
89
|
+
"<>",
|
|
90
|
+
":",
|
|
91
|
+
":=",
|
|
92
|
+
"and",
|
|
93
|
+
"mod",
|
|
94
|
+
"or",
|
|
95
|
+
"+",
|
|
96
|
+
"-",
|
|
97
|
+
"*",
|
|
98
|
+
"/",
|
|
99
|
+
"@",
|
|
100
|
+
"&",
|
|
101
|
+
"^",
|
|
102
|
+
"%"
|
|
103
|
+
],
|
|
104
|
+
// we include these common regular expressions
|
|
105
|
+
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
|
106
|
+
// The main tokenizer for our languages
|
|
107
|
+
tokenizer: {
|
|
108
|
+
root: [
|
|
109
|
+
// identifiers and keywords
|
|
110
|
+
[
|
|
111
|
+
/[a-zA-Z_][\w]*/,
|
|
112
|
+
{
|
|
113
|
+
cases: {
|
|
114
|
+
"@keywords": { token: "keyword.$0" },
|
|
115
|
+
"@default": "identifier"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
// whitespace
|
|
120
|
+
{ include: "@whitespace" },
|
|
121
|
+
// delimiters and operators
|
|
122
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
123
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
124
|
+
[
|
|
125
|
+
/@symbols/,
|
|
126
|
+
{
|
|
127
|
+
cases: {
|
|
128
|
+
"@operators": "delimiter",
|
|
129
|
+
"@default": ""
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
// numbers
|
|
134
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
135
|
+
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
|
136
|
+
[/\d+/, "number"],
|
|
137
|
+
// delimiter: after number because of .\d floats
|
|
138
|
+
[/[;,.]/, "delimiter"],
|
|
139
|
+
// strings
|
|
140
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
141
|
+
// non-teminated string
|
|
142
|
+
[/'/, "string", "@string"],
|
|
143
|
+
// characters
|
|
144
|
+
[/'[^\\']'/, "string"],
|
|
145
|
+
[/'/, "string.invalid"],
|
|
146
|
+
[/\#\d+/, "string"]
|
|
147
|
+
],
|
|
148
|
+
/* */
|
|
149
|
+
comment: [
|
|
150
|
+
[/[^\(\*]+/, "comment"],
|
|
151
|
+
//[/\(\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
|
152
|
+
[/\*\)/, "comment", "@pop"],
|
|
153
|
+
[/\(\*/, "comment"]
|
|
154
|
+
],
|
|
155
|
+
string: [
|
|
156
|
+
[/[^\\']+/, "string"],
|
|
157
|
+
[/\\./, "string.escape.invalid"],
|
|
158
|
+
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
159
|
+
],
|
|
160
|
+
whitespace: [
|
|
161
|
+
[/[ \t\r\n]+/, "white"],
|
|
162
|
+
[/\(\*/, "comment", "@comment"],
|
|
163
|
+
[/\/\/.*$/, "comment"]
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
export {
|
|
168
|
+
e as conf,
|
|
169
|
+
o as language
|
|
170
|
+
};
|