sun-form-v3 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/abap-DfvySaIJ.js +1404 -0
- package/dist/apex-B__0irD3.js +332 -0
- package/dist/assets/css.worker-OK053IOu.js +84 -0
- package/dist/assets/editor.worker-D9iUZyMP.js +11 -0
- package/dist/assets/html.worker-CL40hqKM.js +458 -0
- package/dist/assets/json.worker-6f9bhSHY.js +42 -0
- package/dist/assets/ts.worker-B6g3wjaE.js +37021 -0
- package/dist/azcli-CDMGhRmx.js +74 -0
- package/dist/bat-0Mk8aqzx.js +106 -0
- package/dist/bicep-BBi_I06Z.js +108 -0
- package/dist/cameligo-D0G_Zm6X.js +180 -0
- package/dist/clojure-o2ZKLeMp.js +767 -0
- package/dist/coffee-DOQff5VC.js +238 -0
- package/dist/cpp-CQGJnWhD.js +395 -0
- package/dist/csharp-C1jLsHl8.js +332 -0
- package/dist/csp-C_ttMQaW.js +59 -0
- package/dist/css-BC202kVV.js +193 -0
- package/dist/cssMode-B1EfCgI8.js +1541 -0
- package/dist/cypher-DwtEH7Fi.js +269 -0
- package/dist/dart-D9XknsP2.js +287 -0
- package/dist/dockerfile-DgsNjqqa.js +136 -0
- package/dist/ecl-BAMCHBl6.js +462 -0
- package/dist/elixir-CegIttP8.js +575 -0
- package/dist/favicon.ico +0 -0
- package/dist/flow9-9608t7UV.js +148 -0
- package/dist/freemarker2-h6KT8ady.js +995 -0
- package/dist/fsharp-CCtt9-1_.js +223 -0
- package/dist/go-CGUIPbct.js +224 -0
- package/dist/graphql-BNRIFFIn.js +157 -0
- package/dist/handlebars-BHZuehiC.js +425 -0
- package/dist/hcl-C__KLIXe.js +189 -0
- package/dist/html-6Ymm1XSw.js +314 -0
- package/dist/htmlMode-CAySWI08.js +1551 -0
- package/dist/index-BFqQeX1r.js +124463 -0
- package/dist/index-DmlyKQU2.js +150 -0
- package/dist/ini-CeKYn_zA.js +77 -0
- package/dist/java-Dm24deQl.js +238 -0
- package/dist/javascript-C6XEOgkR.js +76 -0
- package/dist/jsonMode-D68tkk9K.js +1957 -0
- package/dist/julia-BImNW7VE.js +517 -0
- package/dist/kotlin-BfE79GEb.js +259 -0
- package/dist/less-DglNOcaC.js +168 -0
- package/dist/lexon-BA0dRz9Q.js +163 -0
- package/dist/liquid-CU5E8KbZ.js +246 -0
- package/dist/lua-DMkWzJcm.js +168 -0
- package/dist/m3-sA-5shO8.js +216 -0
- package/dist/markdown-OYRB1igA.js +235 -0
- package/dist/mdx-BpgDRrDC.js +171 -0
- package/dist/mips-rRzkJ_7G.js +204 -0
- package/dist/msdax-DoVJdUhd.js +381 -0
- package/dist/mysql-Ty44IHXo.js +884 -0
- package/dist/objective-c-VUfyhYrA.js +189 -0
- package/dist/pascal-DkASiYyw.js +257 -0
- package/dist/pascaligo-p-ELPlVO.js +170 -0
- package/dist/perl-Cjl1FxLZ.js +632 -0
- package/dist/pgsql-DjVenF7s.js +857 -0
- package/dist/php-CwvGzZOO.js +506 -0
- package/dist/pla-Br1iaBIV.js +143 -0
- package/dist/postiats-BaeP8zZY.js +913 -0
- package/dist/powerquery-CLCshuo8.js +896 -0
- package/dist/powershell-CZV50w5N.js +245 -0
- package/dist/protobuf-MV3XTewJ.js +426 -0
- package/dist/pug-DkDg4c4l.js +408 -0
- package/dist/python-DtsYOFU9.js +282 -0
- package/dist/qsharp-BAtiKA97.js +291 -0
- package/dist/r-8ocrd-h-.js +249 -0
- package/dist/razor-74xZSF1p.js +556 -0
- package/dist/redis-9sZiddxc.js +308 -0
- package/dist/redshift-DQfTOGC0.js +815 -0
- package/dist/restructuredtext-DXU-vkgr.js +180 -0
- package/dist/ruby-DotfqwMf.js +517 -0
- package/dist/rust-BIauJ5KN.js +349 -0
- package/dist/sb-CmWMvDEV.js +121 -0
- package/dist/scala-C81brEbk.js +376 -0
- package/dist/scheme-D0pcFz2x.js +114 -0
- package/dist/scss-BOdN2fGG.js +268 -0
- package/dist/shell-6E09eAkU.js +227 -0
- package/dist/solidity-CWStzA1K.js +1373 -0
- package/dist/sophia-76Sb6CWe.js +205 -0
- package/dist/sparql-BmZTkOWT.js +207 -0
- package/dist/sql-Cs9TBAW5.js +859 -0
- package/dist/st-B-rqE1Bu.js +422 -0
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +2 -47
- package/dist/sun-form-v3.umd.js +1909 -1
- package/dist/swift-Btsj6YxQ.js +318 -0
- package/dist/systemverilog-B3RHBRa2.js +582 -0
- package/dist/tcl-Dpj776pn.js +238 -0
- package/dist/tsMode-CEJACLKl.js +886 -0
- package/dist/twig-Bb9JmBsE.js +398 -0
- package/dist/typescript-IVLrzKMv.js +349 -0
- package/dist/typespec-CDWeg3SU.js +123 -0
- package/dist/vb-DEXnYwEI.js +378 -0
- package/dist/wgsl-D602c1lx.js +445 -0
- package/dist/xml-BZDLqqLQ.js +101 -0
- package/dist/yaml-Icb94D4j.js +212 -0
- package/package.json +16 -6
- package/src/assets/styles/element/index.scss +15 -0
- package/src/assets/styles/index.css +3 -0
@@ -0,0 +1,189 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
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.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
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.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
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
|
+
};
|