act-plus 1.1.22 → 1.1.24
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/act-plus.js +6 -5
- package/act-plus.umd.cjs +94 -1722
- package/lib/{configBtns-c4e55eb0.js → configBtns-15591aad.js} +51 -50
- package/lib/{configFileds-b79642bc.js → configFileds-a045430e.js} +5 -4
- package/lib/{configTable-21f37060.js → configTable-0285d3f8.js} +32 -31
- package/lib/{dialogAddField-535d4a6c.js → dialogAddField-f474439d.js} +5 -4
- package/lib/{dialogConfigBtn-f4b70a91.js → dialogConfigBtn-c97ccee8.js} +5 -4
- package/lib/{dialogSiteComponentsParams-a99a4d71.js → dialogSiteComponentsParams-e2c5b8dd.js} +1 -1
- package/lib/{index-cb908890.js → index-36c9cd81.js} +15 -14
- package/lib/{index-f2795fa7.js → index-3e20553c.js} +11 -10
- package/lib/{index-79e6c123.js → index-7de949f6.js} +4 -3
- package/lib/{index-742c1da3.js → index-85deefc8.js} +5 -4
- package/lib/index-d0c3be37.js +68438 -0
- package/lib/{index-14906725.js → index-f58e1535.js} +31 -30
- package/package.json +1 -1
- package/style.css +1 -1
- package/assets/css.worker-1af1972f.js +0 -84
- package/assets/editor.worker-df55e1ff.js +0 -8
- package/assets/html.worker-38c267f1.js +0 -456
- package/assets/json.worker-bf861c27.js +0 -39
- package/assets/ts.worker-e151483b.js +0 -33972
- package/lib/abap-1354785f.js +0 -1314
- package/lib/apex-279d4f27.js +0 -315
- package/lib/azcli-ba812c55.js +0 -74
- package/lib/bat-4d77495d.js +0 -95
- package/lib/bicep-7b240724.js +0 -108
- package/lib/cameligo-5d2daeb8.js +0 -168
- package/lib/clojure-b7ea12a3.js +0 -754
- package/lib/coffee-1a8cfbf4.js +0 -228
- package/lib/cpp-642b10c4.js +0 -387
- package/lib/csharp-d987ddad.js +0 -320
- package/lib/csp-96407af0.js +0 -57
- package/lib/css-5dd354ac.js +0 -186
- package/lib/cssMode-049c1acb.js +0 -1448
- package/lib/cypher-11e5a4b6.js +0 -262
- package/lib/dart-5d209f63.js +0 -270
- package/lib/dockerfile-8739cff7.js +0 -132
- package/lib/ecl-a20c5155.js +0 -454
- package/lib/elixir-8b028584.js +0 -467
- package/lib/flow9-0dea2e73.js +0 -141
- package/lib/freemarker2-c93dec09.js +0 -646
- package/lib/fsharp-49a70fad.js +0 -210
- package/lib/go-46e3b371.js +0 -208
- package/lib/graphql-51a577e5.js +0 -141
- package/lib/handlebars-8a7428d8.js +0 -394
- package/lib/hcl-56b85754.js +0 -177
- package/lib/html-2fad443c.js +0 -284
- package/lib/htmlMode-3c13e1c6.js +0 -1458
- package/lib/index-a2634eef.js +0 -162522
- package/lib/ini-1d58d82f.js +0 -68
- package/lib/java-cd017f60.js +0 -221
- package/lib/javascript-2ec13b45.js +0 -78
- package/lib/jsonMode-33ed8d99.js +0 -1869
- package/lib/julia-a0caf483.js +0 -496
- package/lib/kotlin-c6e52a56.js +0 -245
- package/lib/less-718543b4.js +0 -168
- package/lib/lexon-5e6e7a44.js +0 -151
- package/lib/liquid-40ee460a.js +0 -241
- package/lib/lua-f159160b.js +0 -157
- package/lib/m3-aadaf771.js +0 -210
- package/lib/markdown-9b448c46.js +0 -202
- package/lib/mips-161e49ce.js +0 -194
- package/lib/msdax-f65cb1e6.js +0 -377
- package/lib/mysql-24549dd1.js +0 -875
- package/lib/objective-c-e129a5ca.js +0 -188
- package/lib/pascal-4ccdf5ce.js +0 -245
- package/lib/pascaligo-a9603dcd.js +0 -158
- package/lib/perl-ba1fb97a.js +0 -599
- package/lib/pgsql-89978310.js +0 -843
- package/lib/php-987b9d87.js +0 -471
- package/lib/pla-96c2695d.js +0 -131
- package/lib/postiats-7b52ebac.js +0 -544
- package/lib/powerquery-8954ec26.js +0 -890
- package/lib/powershell-f00d0274.js +0 -233
- package/lib/protobuf-3eb85f80.js +0 -422
- package/lib/pug-6fab415a.js +0 -393
- package/lib/python-852dc2c1.js +0 -262
- package/lib/qsharp-4792f872.js +0 -282
- package/lib/r-630f5d6b.js +0 -245
- package/lib/razor-c24d586d.js +0 -515
- package/lib/redis-276b8288.js +0 -298
- package/lib/redshift-520a7359.js +0 -806
- package/lib/restructuredtext-4676a3fc.js +0 -162
- package/lib/ruby-764137cd.js +0 -444
- package/lib/rust-97f8f6e1.js +0 -337
- package/lib/sb-8c22f14c.js +0 -110
- package/lib/scala-c68c650c.js +0 -353
- package/lib/scheme-e6a52cb0.js +0 -114
- package/lib/scss-45104c77.js +0 -244
- package/lib/shell-09452d42.js +0 -224
- package/lib/solidity-d4979008.js +0 -1351
- package/lib/sophia-21995caf.js +0 -190
- package/lib/sparql-5088743c.js +0 -193
- package/lib/sql-63ec8e76.js +0 -818
- package/lib/st-fa9ab362.js +0 -414
- package/lib/swift-abdf1835.js +0 -315
- package/lib/systemverilog-a4f858ed.js +0 -556
- package/lib/tcl-8adf937f.js +0 -232
- package/lib/tsMode-6d6244be.js +0 -792
- package/lib/twig-404eb73e.js +0 -323
- package/lib/typescript-807ce4d9.js +0 -330
- package/lib/vb-e21e8153.js +0 -364
- package/lib/xml-cc91b485.js +0 -98
- package/lib/yaml-f2de88bb.js +0 -187
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
8
|
-
brackets: [
|
|
9
|
-
["{", "}"],
|
|
10
|
-
["[", "]"],
|
|
11
|
-
["(", ")"]
|
|
12
|
-
],
|
|
13
|
-
autoClosingPairs: [
|
|
14
|
-
{ open: "{", close: "}" },
|
|
15
|
-
{ open: "[", close: "]" },
|
|
16
|
-
{ open: "(", close: ")" },
|
|
17
|
-
{ open: "<", close: ">", notIn: ["string"] }
|
|
18
|
-
],
|
|
19
|
-
surroundingPairs: [
|
|
20
|
-
{ open: "(", close: ")" },
|
|
21
|
-
{ open: "[", close: "]" },
|
|
22
|
-
{ open: "`", close: "`" }
|
|
23
|
-
],
|
|
24
|
-
folding: {
|
|
25
|
-
markers: {
|
|
26
|
-
start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),
|
|
27
|
-
end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}, n = {
|
|
31
|
-
defaultToken: "",
|
|
32
|
-
tokenPostfix: ".rst",
|
|
33
|
-
control: /[\\`*_\[\]{}()#+\-\.!]/,
|
|
34
|
-
escapes: /\\(?:@control)/,
|
|
35
|
-
empty: [
|
|
36
|
-
"area",
|
|
37
|
-
"base",
|
|
38
|
-
"basefont",
|
|
39
|
-
"br",
|
|
40
|
-
"col",
|
|
41
|
-
"frame",
|
|
42
|
-
"hr",
|
|
43
|
-
"img",
|
|
44
|
-
"input",
|
|
45
|
-
"isindex",
|
|
46
|
-
"link",
|
|
47
|
-
"meta",
|
|
48
|
-
"param"
|
|
49
|
-
],
|
|
50
|
-
alphanumerics: /[A-Za-z0-9]/,
|
|
51
|
-
simpleRefNameWithoutBq: /(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,
|
|
52
|
-
simpleRefName: /(?:`@phrase`|@simpleRefNameWithoutBq)/,
|
|
53
|
-
phrase: /@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,
|
|
54
|
-
citationName: /[A-Za-z][A-Za-z0-9-_.]*/,
|
|
55
|
-
blockLiteralStart: /(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,
|
|
56
|
-
precedingChars: /(?:[ -:/'"<([{])/,
|
|
57
|
-
followingChars: /(?:[ -.,:;!?/'")\]}>]|$)/,
|
|
58
|
-
punctuation: /(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,
|
|
59
|
-
tokenizer: {
|
|
60
|
-
root: [
|
|
61
|
-
[/^(@punctuation{3,}$){1,1}?/, "keyword"],
|
|
62
|
-
[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/, "keyword"],
|
|
63
|
-
[/([ ]::)\s*$/, "keyword", "@blankLineOfLiteralBlocks"],
|
|
64
|
-
[/(::)\s*$/, "keyword", "@blankLineOfLiteralBlocks"],
|
|
65
|
-
{ include: "@tables" },
|
|
66
|
-
{ include: "@explicitMarkupBlocks" },
|
|
67
|
-
{ include: "@inlineMarkup" }
|
|
68
|
-
],
|
|
69
|
-
explicitMarkupBlocks: [
|
|
70
|
-
{ include: "@citations" },
|
|
71
|
-
{ include: "@footnotes" },
|
|
72
|
-
[
|
|
73
|
-
/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,
|
|
74
|
-
[{ token: "", next: "subsequentLines" }, "keyword", "", ""]
|
|
75
|
-
],
|
|
76
|
-
[
|
|
77
|
-
/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,
|
|
78
|
-
[{ token: "", next: "hyperlinks" }, "", "", "string.link", "", "", "string.link"]
|
|
79
|
-
],
|
|
80
|
-
[
|
|
81
|
-
/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,
|
|
82
|
-
[{ token: "", next: "subsequentLines" }, "", "", "", "string.link"]
|
|
83
|
-
],
|
|
84
|
-
[/^(__\s+)(.+)/, ["", "string.link"]],
|
|
85
|
-
[
|
|
86
|
-
/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,
|
|
87
|
-
[{ token: "", next: "subsequentLines" }, "", "string.link", "", "keyword", ""],
|
|
88
|
-
"@rawBlocks"
|
|
89
|
-
],
|
|
90
|
-
[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/, ["", "string.link", ""]],
|
|
91
|
-
[/^(\.\.)([ ].*)$/, [{ token: "", next: "@comments" }, "comment"]]
|
|
92
|
-
],
|
|
93
|
-
inlineMarkup: [
|
|
94
|
-
{ include: "@citationsReference" },
|
|
95
|
-
{ include: "@footnotesReference" },
|
|
96
|
-
[/(@simpleRefName)(_{1,2})/, ["string.link", ""]],
|
|
97
|
-
[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/, ["", "string.link", "", "string.link", "", "", ""]],
|
|
98
|
-
[/\*\*([^\\*]|\*(?!\*))+\*\*/, "strong"],
|
|
99
|
-
[/\*[^*]+\*/, "emphasis"],
|
|
100
|
-
[/(``)((?:[^`]|\`(?!`))+)(``)/, ["", "keyword", ""]],
|
|
101
|
-
[/(__\s+)(.+)/, ["", "keyword"]],
|
|
102
|
-
[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/, ["", "keyword", "", "", ""]],
|
|
103
|
-
[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/, ["", "", "", "keyword", ""]],
|
|
104
|
-
[/(`)([^`]+)(`)/, ""],
|
|
105
|
-
[/(_`)(@phrase)(`)/, ["", "string.link", ""]]
|
|
106
|
-
],
|
|
107
|
-
citations: [
|
|
108
|
-
[
|
|
109
|
-
/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,
|
|
110
|
-
[{ token: "", next: "@subsequentLines" }, "string.link", "", ""]
|
|
111
|
-
]
|
|
112
|
-
],
|
|
113
|
-
citationsReference: [[/(\[)(@citationName)(\]_)/, ["", "string.link", ""]]],
|
|
114
|
-
footnotes: [
|
|
115
|
-
[
|
|
116
|
-
/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,
|
|
117
|
-
[{ token: "", next: "@subsequentLines" }, "string.link", ""]
|
|
118
|
-
],
|
|
119
|
-
[
|
|
120
|
-
/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,
|
|
121
|
-
[{ token: "", next: "@subsequentLines" }, "string.link", "", ""]
|
|
122
|
-
],
|
|
123
|
-
[
|
|
124
|
-
/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,
|
|
125
|
-
[{ token: "", next: "@subsequentLines" }, "string.link", "", ""]
|
|
126
|
-
]
|
|
127
|
-
],
|
|
128
|
-
footnotesReference: [
|
|
129
|
-
[/(\[)([0-9]+)(\])(_)/, ["", "string.link", "", ""]],
|
|
130
|
-
[/(\[)(#@simpleRefName?)(\])(_)/, ["", "string.link", "", ""]],
|
|
131
|
-
[/(\[)(\*)(\])(_)/, ["", "string.link", "", ""]]
|
|
132
|
-
],
|
|
133
|
-
blankLineOfLiteralBlocks: [
|
|
134
|
-
[/^$/, "", "@subsequentLinesOfLiteralBlocks"],
|
|
135
|
-
[/^.*$/, "", "@pop"]
|
|
136
|
-
],
|
|
137
|
-
subsequentLinesOfLiteralBlocks: [
|
|
138
|
-
[/(@blockLiteralStart+)(.*)/, ["keyword", ""]],
|
|
139
|
-
[/^(?!blockLiteralStart)/, "", "@popall"]
|
|
140
|
-
],
|
|
141
|
-
subsequentLines: [
|
|
142
|
-
[/^[\s]+.*/, ""],
|
|
143
|
-
[/^(?!\s)/, "", "@pop"]
|
|
144
|
-
],
|
|
145
|
-
hyperlinks: [
|
|
146
|
-
[/^[\s]+.*/, "string.link"],
|
|
147
|
-
[/^(?!\s)/, "", "@pop"]
|
|
148
|
-
],
|
|
149
|
-
comments: [
|
|
150
|
-
[/^[\s]+.*/, "comment"],
|
|
151
|
-
[/^(?!\s)/, "", "@pop"]
|
|
152
|
-
],
|
|
153
|
-
tables: [
|
|
154
|
-
[/\+-[+-]+/, "keyword"],
|
|
155
|
-
[/\+=[+=]+/, "keyword"]
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
export {
|
|
160
|
-
e as conf,
|
|
161
|
-
n as language
|
|
162
|
-
};
|
package/lib/ruby-764137cd.js
DELETED
|
@@ -1,444 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
|
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: ["=begin", "=end"]
|
|
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
|
-
indentationRules: {
|
|
32
|
-
increaseIndentPattern: new RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`),
|
|
33
|
-
decreaseIndentPattern: new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")
|
|
34
|
-
}
|
|
35
|
-
}, t = {
|
|
36
|
-
tokenPostfix: ".ruby",
|
|
37
|
-
keywords: [
|
|
38
|
-
"__LINE__",
|
|
39
|
-
"__ENCODING__",
|
|
40
|
-
"__FILE__",
|
|
41
|
-
"BEGIN",
|
|
42
|
-
"END",
|
|
43
|
-
"alias",
|
|
44
|
-
"and",
|
|
45
|
-
"begin",
|
|
46
|
-
"break",
|
|
47
|
-
"case",
|
|
48
|
-
"class",
|
|
49
|
-
"def",
|
|
50
|
-
"defined?",
|
|
51
|
-
"do",
|
|
52
|
-
"else",
|
|
53
|
-
"elsif",
|
|
54
|
-
"end",
|
|
55
|
-
"ensure",
|
|
56
|
-
"for",
|
|
57
|
-
"false",
|
|
58
|
-
"if",
|
|
59
|
-
"in",
|
|
60
|
-
"module",
|
|
61
|
-
"next",
|
|
62
|
-
"nil",
|
|
63
|
-
"not",
|
|
64
|
-
"or",
|
|
65
|
-
"redo",
|
|
66
|
-
"rescue",
|
|
67
|
-
"retry",
|
|
68
|
-
"return",
|
|
69
|
-
"self",
|
|
70
|
-
"super",
|
|
71
|
-
"then",
|
|
72
|
-
"true",
|
|
73
|
-
"undef",
|
|
74
|
-
"unless",
|
|
75
|
-
"until",
|
|
76
|
-
"when",
|
|
77
|
-
"while",
|
|
78
|
-
"yield"
|
|
79
|
-
],
|
|
80
|
-
keywordops: ["::", "..", "...", "?", ":", "=>"],
|
|
81
|
-
builtins: [
|
|
82
|
-
"require",
|
|
83
|
-
"public",
|
|
84
|
-
"private",
|
|
85
|
-
"include",
|
|
86
|
-
"extend",
|
|
87
|
-
"attr_reader",
|
|
88
|
-
"protected",
|
|
89
|
-
"private_class_method",
|
|
90
|
-
"protected_class_method",
|
|
91
|
-
"new"
|
|
92
|
-
],
|
|
93
|
-
declarations: [
|
|
94
|
-
"module",
|
|
95
|
-
"class",
|
|
96
|
-
"def",
|
|
97
|
-
"case",
|
|
98
|
-
"do",
|
|
99
|
-
"begin",
|
|
100
|
-
"for",
|
|
101
|
-
"if",
|
|
102
|
-
"while",
|
|
103
|
-
"until",
|
|
104
|
-
"unless"
|
|
105
|
-
],
|
|
106
|
-
linedecls: ["def", "case", "do", "begin", "for", "if", "while", "until", "unless"],
|
|
107
|
-
operators: [
|
|
108
|
-
"^",
|
|
109
|
-
"&",
|
|
110
|
-
"|",
|
|
111
|
-
"<=>",
|
|
112
|
-
"==",
|
|
113
|
-
"===",
|
|
114
|
-
"!~",
|
|
115
|
-
"=~",
|
|
116
|
-
">",
|
|
117
|
-
">=",
|
|
118
|
-
"<",
|
|
119
|
-
"<=",
|
|
120
|
-
"<<",
|
|
121
|
-
">>",
|
|
122
|
-
"+",
|
|
123
|
-
"-",
|
|
124
|
-
"*",
|
|
125
|
-
"/",
|
|
126
|
-
"%",
|
|
127
|
-
"**",
|
|
128
|
-
"~",
|
|
129
|
-
"+@",
|
|
130
|
-
"-@",
|
|
131
|
-
"[]",
|
|
132
|
-
"[]=",
|
|
133
|
-
"`",
|
|
134
|
-
"+=",
|
|
135
|
-
"-=",
|
|
136
|
-
"*=",
|
|
137
|
-
"**=",
|
|
138
|
-
"/=",
|
|
139
|
-
"^=",
|
|
140
|
-
"%=",
|
|
141
|
-
"<<=",
|
|
142
|
-
">>=",
|
|
143
|
-
"&=",
|
|
144
|
-
"&&=",
|
|
145
|
-
"||=",
|
|
146
|
-
"|="
|
|
147
|
-
],
|
|
148
|
-
brackets: [
|
|
149
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
150
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
151
|
-
{ open: "[", close: "]", token: "delimiter.square" }
|
|
152
|
-
],
|
|
153
|
-
symbols: /[=><!~?:&|+\-*\/\^%\.]+/,
|
|
154
|
-
escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
|
|
155
|
-
escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
|
|
156
|
-
decpart: /\d(_?\d)*/,
|
|
157
|
-
decimal: /0|@decpart/,
|
|
158
|
-
delim: /[^a-zA-Z0-9\s\n\r]/,
|
|
159
|
-
heredelim: /(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,
|
|
160
|
-
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
|
161
|
-
regexpesc: /\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,
|
|
162
|
-
tokenizer: {
|
|
163
|
-
root: [
|
|
164
|
-
[
|
|
165
|
-
/^(\s*)([a-z_]\w*[!?=]?)/,
|
|
166
|
-
[
|
|
167
|
-
"white",
|
|
168
|
-
{
|
|
169
|
-
cases: {
|
|
170
|
-
"for|until|while": {
|
|
171
|
-
token: "keyword.$2",
|
|
172
|
-
next: "@dodecl.$2"
|
|
173
|
-
},
|
|
174
|
-
"@declarations": {
|
|
175
|
-
token: "keyword.$2",
|
|
176
|
-
next: "@root.$2"
|
|
177
|
-
},
|
|
178
|
-
end: { token: "keyword.$S2", next: "@pop" },
|
|
179
|
-
"@keywords": "keyword",
|
|
180
|
-
"@builtins": "predefined",
|
|
181
|
-
"@default": "identifier"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
],
|
|
186
|
-
[
|
|
187
|
-
/[a-z_]\w*[!?=]?/,
|
|
188
|
-
{
|
|
189
|
-
cases: {
|
|
190
|
-
"if|unless|while|until": {
|
|
191
|
-
token: "keyword.$0x",
|
|
192
|
-
next: "@modifier.$0x"
|
|
193
|
-
},
|
|
194
|
-
for: { token: "keyword.$2", next: "@dodecl.$2" },
|
|
195
|
-
"@linedecls": { token: "keyword.$0", next: "@root.$0" },
|
|
196
|
-
end: { token: "keyword.$S2", next: "@pop" },
|
|
197
|
-
"@keywords": "keyword",
|
|
198
|
-
"@builtins": "predefined",
|
|
199
|
-
"@default": "identifier"
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
],
|
|
203
|
-
[/[A-Z][\w]*[!?=]?/, "constructor.identifier"],
|
|
204
|
-
[/\$[\w]*/, "global.constant"],
|
|
205
|
-
[/@[\w]*/, "namespace.instance.identifier"],
|
|
206
|
-
[/@@@[\w]*/, "namespace.class.identifier"],
|
|
207
|
-
[/<<[-~](@heredelim).*/, { token: "string.heredoc.delimiter", next: "@heredoc.$1" }],
|
|
208
|
-
[/[ \t\r\n]+<<(@heredelim).*/, { token: "string.heredoc.delimiter", next: "@heredoc.$1" }],
|
|
209
|
-
[/^<<(@heredelim).*/, { token: "string.heredoc.delimiter", next: "@heredoc.$1" }],
|
|
210
|
-
{ include: "@whitespace" },
|
|
211
|
-
[/"/, { token: "string.d.delim", next: '@dstring.d."' }],
|
|
212
|
-
[/'/, { token: "string.sq.delim", next: "@sstring.sq" }],
|
|
213
|
-
[/%([rsqxwW]|Q?)/, { token: "@rematch", next: "pstring" }],
|
|
214
|
-
[/`/, { token: "string.x.delim", next: "@dstring.x.`" }],
|
|
215
|
-
[/:(\w|[$@])\w*[!?=]?/, "string.s"],
|
|
216
|
-
[/:"/, { token: "string.s.delim", next: '@dstring.s."' }],
|
|
217
|
-
[/:'/, { token: "string.s.delim", next: "@sstring.s" }],
|
|
218
|
-
[/\/(?=(\\\/|[^\/\n])+\/)/, { token: "regexp.delim", next: "@regexp" }],
|
|
219
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
220
|
-
[
|
|
221
|
-
/@symbols/,
|
|
222
|
-
{
|
|
223
|
-
cases: {
|
|
224
|
-
"@keywordops": "keyword",
|
|
225
|
-
"@operators": "operator",
|
|
226
|
-
"@default": ""
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
],
|
|
230
|
-
[/[;,]/, "delimiter"],
|
|
231
|
-
[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"],
|
|
232
|
-
[/0[_oO][0-7](_?[0-7])*/, "number.octal"],
|
|
233
|
-
[/0[bB][01](_?[01])*/, "number.binary"],
|
|
234
|
-
[/0[dD]@decpart/, "number"],
|
|
235
|
-
[
|
|
236
|
-
/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,
|
|
237
|
-
{
|
|
238
|
-
cases: {
|
|
239
|
-
$1: "number.float",
|
|
240
|
-
"@default": "number"
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
]
|
|
244
|
-
],
|
|
245
|
-
dodecl: [
|
|
246
|
-
[/^/, { token: "", switchTo: "@root.$S2" }],
|
|
247
|
-
[
|
|
248
|
-
/[a-z_]\w*[!?=]?/,
|
|
249
|
-
{
|
|
250
|
-
cases: {
|
|
251
|
-
end: { token: "keyword.$S2", next: "@pop" },
|
|
252
|
-
do: { token: "keyword", switchTo: "@root.$S2" },
|
|
253
|
-
"@linedecls": {
|
|
254
|
-
token: "@rematch",
|
|
255
|
-
switchTo: "@root.$S2"
|
|
256
|
-
},
|
|
257
|
-
"@keywords": "keyword",
|
|
258
|
-
"@builtins": "predefined",
|
|
259
|
-
"@default": "identifier"
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
],
|
|
263
|
-
{ include: "@root" }
|
|
264
|
-
],
|
|
265
|
-
modifier: [
|
|
266
|
-
[/^/, "", "@pop"],
|
|
267
|
-
[
|
|
268
|
-
/[a-z_]\w*[!?=]?/,
|
|
269
|
-
{
|
|
270
|
-
cases: {
|
|
271
|
-
end: { token: "keyword.$S2", next: "@pop" },
|
|
272
|
-
"then|else|elsif|do": {
|
|
273
|
-
token: "keyword",
|
|
274
|
-
switchTo: "@root.$S2"
|
|
275
|
-
},
|
|
276
|
-
"@linedecls": {
|
|
277
|
-
token: "@rematch",
|
|
278
|
-
switchTo: "@root.$S2"
|
|
279
|
-
},
|
|
280
|
-
"@keywords": "keyword",
|
|
281
|
-
"@builtins": "predefined",
|
|
282
|
-
"@default": "identifier"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
],
|
|
286
|
-
{ include: "@root" }
|
|
287
|
-
],
|
|
288
|
-
sstring: [
|
|
289
|
-
[/[^\\']+/, "string.$S2"],
|
|
290
|
-
[/\\\\|\\'|\\$/, "string.$S2.escape"],
|
|
291
|
-
[/\\./, "string.$S2.invalid"],
|
|
292
|
-
[/'/, { token: "string.$S2.delim", next: "@pop" }]
|
|
293
|
-
],
|
|
294
|
-
dstring: [
|
|
295
|
-
[/[^\\`"#]+/, "string.$S2"],
|
|
296
|
-
[/#/, "string.$S2.escape", "@interpolated"],
|
|
297
|
-
[/\\$/, "string.$S2.escape"],
|
|
298
|
-
[/@escapes/, "string.$S2.escape"],
|
|
299
|
-
[/\\./, "string.$S2.escape.invalid"],
|
|
300
|
-
[
|
|
301
|
-
/[`"]/,
|
|
302
|
-
{
|
|
303
|
-
cases: {
|
|
304
|
-
"$#==$S3": { token: "string.$S2.delim", next: "@pop" },
|
|
305
|
-
"@default": "string.$S2"
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
]
|
|
309
|
-
],
|
|
310
|
-
heredoc: [
|
|
311
|
-
[
|
|
312
|
-
/^(\s*)(@heredelim)$/,
|
|
313
|
-
{
|
|
314
|
-
cases: {
|
|
315
|
-
"$2==$S2": ["string.heredoc", { token: "string.heredoc.delimiter", next: "@pop" }],
|
|
316
|
-
"@default": ["string.heredoc", "string.heredoc"]
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
],
|
|
320
|
-
[/.*/, "string.heredoc"]
|
|
321
|
-
],
|
|
322
|
-
interpolated: [
|
|
323
|
-
[/\$\w*/, "global.constant", "@pop"],
|
|
324
|
-
[/@\w*/, "namespace.class.identifier", "@pop"],
|
|
325
|
-
[/@@@\w*/, "namespace.instance.identifier", "@pop"],
|
|
326
|
-
[
|
|
327
|
-
/[{]/,
|
|
328
|
-
{
|
|
329
|
-
token: "string.escape.curly",
|
|
330
|
-
switchTo: "@interpolated_compound"
|
|
331
|
-
}
|
|
332
|
-
],
|
|
333
|
-
["", "", "@pop"]
|
|
334
|
-
],
|
|
335
|
-
interpolated_compound: [
|
|
336
|
-
[/[}]/, { token: "string.escape.curly", next: "@pop" }],
|
|
337
|
-
{ include: "@root" }
|
|
338
|
-
],
|
|
339
|
-
pregexp: [
|
|
340
|
-
{ include: "@whitespace" },
|
|
341
|
-
[
|
|
342
|
-
/[^\(\{\[\\]/,
|
|
343
|
-
{
|
|
344
|
-
cases: {
|
|
345
|
-
"$#==$S3": { token: "regexp.delim", next: "@pop" },
|
|
346
|
-
"$#==$S2": { token: "regexp.delim", next: "@push" },
|
|
347
|
-
"~[)}\\]]": "@brackets.regexp.escape.control",
|
|
348
|
-
"~@regexpctl": "regexp.escape.control",
|
|
349
|
-
"@default": "regexp"
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
],
|
|
353
|
-
{ include: "@regexcontrol" }
|
|
354
|
-
],
|
|
355
|
-
regexp: [
|
|
356
|
-
{ include: "@regexcontrol" },
|
|
357
|
-
[/[^\\\/]/, "regexp"],
|
|
358
|
-
["/[ixmp]*", { token: "regexp.delim" }, "@pop"]
|
|
359
|
-
],
|
|
360
|
-
regexcontrol: [
|
|
361
|
-
[
|
|
362
|
-
/(\{)(\d+(?:,\d*)?)(\})/,
|
|
363
|
-
[
|
|
364
|
-
"@brackets.regexp.escape.control",
|
|
365
|
-
"regexp.escape.control",
|
|
366
|
-
"@brackets.regexp.escape.control"
|
|
367
|
-
]
|
|
368
|
-
],
|
|
369
|
-
[
|
|
370
|
-
/(\[)(\^?)/,
|
|
371
|
-
["@brackets.regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
|
372
|
-
],
|
|
373
|
-
[/(\()(\?[:=!])/, ["@brackets.regexp.escape.control", "regexp.escape.control"]],
|
|
374
|
-
[/\(\?#/, { token: "regexp.escape.control", next: "@regexpcomment" }],
|
|
375
|
-
[/[()]/, "@brackets.regexp.escape.control"],
|
|
376
|
-
[/@regexpctl/, "regexp.escape.control"],
|
|
377
|
-
[/\\$/, "regexp.escape"],
|
|
378
|
-
[/@regexpesc/, "regexp.escape"],
|
|
379
|
-
[/\\\./, "regexp.invalid"],
|
|
380
|
-
[/#/, "regexp.escape", "@interpolated"]
|
|
381
|
-
],
|
|
382
|
-
regexrange: [
|
|
383
|
-
[/-/, "regexp.escape.control"],
|
|
384
|
-
[/\^/, "regexp.invalid"],
|
|
385
|
-
[/\\$/, "regexp.escape"],
|
|
386
|
-
[/@regexpesc/, "regexp.escape"],
|
|
387
|
-
[/[^\]]/, "regexp"],
|
|
388
|
-
[/\]/, "@brackets.regexp.escape.control", "@pop"]
|
|
389
|
-
],
|
|
390
|
-
regexpcomment: [
|
|
391
|
-
[/[^)]+/, "comment"],
|
|
392
|
-
[/\)/, { token: "regexp.escape.control", next: "@pop" }]
|
|
393
|
-
],
|
|
394
|
-
pstring: [
|
|
395
|
-
[/%([qws])\(/, { token: "string.$1.delim", switchTo: "@qstring.$1.(.)" }],
|
|
396
|
-
[/%([qws])\[/, { token: "string.$1.delim", switchTo: "@qstring.$1.[.]" }],
|
|
397
|
-
[/%([qws])\{/, { token: "string.$1.delim", switchTo: "@qstring.$1.{.}" }],
|
|
398
|
-
[/%([qws])</, { token: "string.$1.delim", switchTo: "@qstring.$1.<.>" }],
|
|
399
|
-
[/%([qws])(@delim)/, { token: "string.$1.delim", switchTo: "@qstring.$1.$2.$2" }],
|
|
400
|
-
[/%r\(/, { token: "regexp.delim", switchTo: "@pregexp.(.)" }],
|
|
401
|
-
[/%r\[/, { token: "regexp.delim", switchTo: "@pregexp.[.]" }],
|
|
402
|
-
[/%r\{/, { token: "regexp.delim", switchTo: "@pregexp.{.}" }],
|
|
403
|
-
[/%r</, { token: "regexp.delim", switchTo: "@pregexp.<.>" }],
|
|
404
|
-
[/%r(@delim)/, { token: "regexp.delim", switchTo: "@pregexp.$1.$1" }],
|
|
405
|
-
[/%(x|W|Q?)\(/, { token: "string.$1.delim", switchTo: "@qqstring.$1.(.)" }],
|
|
406
|
-
[/%(x|W|Q?)\[/, { token: "string.$1.delim", switchTo: "@qqstring.$1.[.]" }],
|
|
407
|
-
[/%(x|W|Q?)\{/, { token: "string.$1.delim", switchTo: "@qqstring.$1.{.}" }],
|
|
408
|
-
[/%(x|W|Q?)</, { token: "string.$1.delim", switchTo: "@qqstring.$1.<.>" }],
|
|
409
|
-
[/%(x|W|Q?)(@delim)/, { token: "string.$1.delim", switchTo: "@qqstring.$1.$2.$2" }],
|
|
410
|
-
[/%([rqwsxW]|Q?)./, { token: "invalid", next: "@pop" }],
|
|
411
|
-
[/./, { token: "invalid", next: "@pop" }]
|
|
412
|
-
],
|
|
413
|
-
qstring: [
|
|
414
|
-
[/\\$/, "string.$S2.escape"],
|
|
415
|
-
[/\\./, "string.$S2.escape"],
|
|
416
|
-
[
|
|
417
|
-
/./,
|
|
418
|
-
{
|
|
419
|
-
cases: {
|
|
420
|
-
"$#==$S4": { token: "string.$S2.delim", next: "@pop" },
|
|
421
|
-
"$#==$S3": { token: "string.$S2.delim", next: "@push" },
|
|
422
|
-
"@default": "string.$S2"
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
]
|
|
426
|
-
],
|
|
427
|
-
qqstring: [[/#/, "string.$S2.escape", "@interpolated"], { include: "@qstring" }],
|
|
428
|
-
whitespace: [
|
|
429
|
-
[/[ \t\r\n]+/, ""],
|
|
430
|
-
[/^\s*=begin\b/, "comment", "@comment"],
|
|
431
|
-
[/#.*$/, "comment"]
|
|
432
|
-
],
|
|
433
|
-
comment: [
|
|
434
|
-
[/[^=]+/, "comment"],
|
|
435
|
-
[/^\s*=begin\b/, "comment.invalid"],
|
|
436
|
-
[/^\s*=end\b.*/, "comment", "@pop"],
|
|
437
|
-
[/[=]/, "comment"]
|
|
438
|
-
]
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
export {
|
|
442
|
-
e as conf,
|
|
443
|
-
t as language
|
|
444
|
-
};
|