@kong-ui-public/monaco-editor 0.3.0 → 0.3.1-pr.2622.ca1f578c8.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/package.json +1 -1
- package/dist/abap-CrvW7_qN.js +0 -1398
- package/dist/apex-BAOI8p1v.js +0 -327
- package/dist/assets/css.worker-Cb0JI69t.js +0 -93
- package/dist/assets/editor.worker-DzMH9hFo.js +0 -26
- package/dist/assets/html.worker-BNFZMwEc.js +0 -470
- package/dist/assets/json.worker-BCybXpia.js +0 -58
- package/dist/assets/ts.worker-DAVh1bw1.js +0 -67731
- package/dist/azcli-BlCk_UqW.js +0 -68
- package/dist/bat-DPoEelVx.js +0 -100
- package/dist/bicep-Cp1F394l.js +0 -102
- package/dist/cameligo-CWqtSlQs.js +0 -174
- package/dist/clojure-CKBp32Gf.js +0 -761
- package/dist/coffee-CDo6vc-J.js +0 -232
- package/dist/cpp-DokufPgf.js +0 -389
- package/dist/csharp-BQi3szM0.js +0 -326
- package/dist/csp-BSGtCCZ-.js +0 -53
- package/dist/css-DEPFDJfb.js +0 -187
- package/dist/cssMode-BoaW_8EY.js +0 -141
- package/dist/cypher-DAb1vOxS.js +0 -263
- package/dist/dart-C8p4jewR.js +0 -281
- package/dist/dockerfile-DP0iLFPN.js +0 -130
- package/dist/ecl-BDQHA6fi.js +0 -456
- package/dist/elixir-D4II6kDM.js +0 -569
- package/dist/flow9-StcnL-VB.js +0 -142
- package/dist/freemarker2-DLxAEbra.js +0 -982
- package/dist/fsharp-DdUVp3EN.js +0 -217
- package/dist/go-D1-I258M.js +0 -218
- package/dist/graphql-DWkL3f8U.js +0 -151
- package/dist/handlebars-H1fAc7pY.js +0 -412
- package/dist/hcl-D_0MNifv.js +0 -183
- package/dist/html-Bjh5RSoV.js +0 -301
- package/dist/htmlMode-XE4-FvOp.js +0 -152
- package/dist/index-BtAApC8Z.js +0 -129109
- package/dist/ini-C4I2-MT7.js +0 -71
- package/dist/java-OBvaP_SS.js +0 -232
- package/dist/javascript-BL-y8a3N.js +0 -70
- package/dist/jsonMode-BO164Oml.js +0 -569
- package/dist/julia-BmDH8Kkf.js +0 -511
- package/dist/kotlin-Dhu5AGOD.js +0 -252
- package/dist/less-CzmjXREq.js +0 -162
- package/dist/lexon-CV2c4pN9.js +0 -157
- package/dist/liquid-B4OW2xCW.js +0 -233
- package/dist/lspLanguageFeatures-CLOLvtro.js +0 -1458
- package/dist/lua-CFY5U8qF.js +0 -162
- package/dist/m3-BL_AnZVh.js +0 -210
- package/dist/markdown-CWKQPXCv.js +0 -229
- package/dist/mdx-BscoYQtT.js +0 -158
- package/dist/mips-ButYmJ5E.js +0 -198
- package/dist/monaco-editor.es.js +0 -5
- package/dist/monaco-editor.umd.js +0 -1234
- package/dist/msdax-C3cnXqDh.js +0 -375
- package/dist/mysql-YlSHaf6G.js +0 -878
- package/dist/objective-c-Dwnlproe.js +0 -183
- package/dist/pascal-UzGbSWEN.js +0 -251
- package/dist/pascaligo-CslTgu68.js +0 -164
- package/dist/perl-oj6r_mgw.js +0 -626
- package/dist/pgsql-DSBO0Mev.js +0 -851
- package/dist/php-YzCD--7j.js +0 -500
- package/dist/pla-CmylB8vQ.js +0 -137
- package/dist/postiats-CLFW5gNY.js +0 -907
- package/dist/powerquery-CmOWUvlh.js +0 -890
- package/dist/powershell-fHQcmBLK.js +0 -239
- package/dist/protobuf-p5BArb-9.js +0 -420
- package/dist/pug-gVdUDvqf.js +0 -402
- package/dist/python-CdwN88xa.js +0 -294
- package/dist/qsharp-DnrWSUlt.js +0 -301
- package/dist/r-Cv309K2z.js +0 -243
- package/dist/razor-BzIEQn-i.js +0 -543
- package/dist/redis-DTcS4wMj.js +0 -302
- package/dist/redshift-hLxZVESM.js +0 -809
- package/dist/restructuredtext-C898lK4f.js +0 -174
- package/dist/ruby-CgKtnJIQ.js +0 -511
- package/dist/rust-bj8oxVnh.js +0 -343
- package/dist/sb-DWynz26l.js +0 -115
- package/dist/scala-BL5z1UEd.js +0 -370
- package/dist/scheme-DUJsH6VU.js +0 -108
- package/dist/scss-CxjmhvaL.js +0 -262
- package/dist/shell-D14Zs1dF.js +0 -221
- package/dist/solidity-WyRm-BGK.js +0 -1367
- package/dist/sophia-CKk-_Oa5.js +0 -199
- package/dist/sparql-DHtmINMZ.js +0 -201
- package/dist/sql-Dqaj5JHC.js +0 -853
- package/dist/st-Bj2IIaop.js +0 -416
- package/dist/style.css +0 -1
- package/dist/swift-DwxP72iM.js +0 -312
- package/dist/systemverilog-D7wJfuql.js +0 -576
- package/dist/tcl-0ApMt-eC.js +0 -232
- package/dist/tsMode-Bm7Ao8a0.js +0 -946
- package/dist/twig-DxwbdmvQ.js +0 -392
- package/dist/types/components/MonacoEditor.vue.d.ts +0 -52
- package/dist/types/components/MonacoEditor.vue.d.ts.map +0 -1
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts +0 -19
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/composables/useMonacoEditor.d.ts +0 -25
- package/dist/types/composables/useMonacoEditor.d.ts.map +0 -1
- package/dist/types/constants/index.d.ts +0 -3
- package/dist/types/constants/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +0 -2
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -69
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-xVL7xVgf.js +0 -336
- package/dist/typespec-Fd-JwSuS.js +0 -117
- package/dist/vb-CxuyYE1I.js +0 -372
- package/dist/wgsl-DoEGc31J.js +0 -439
- package/dist/xml-5AZvXygb.js +0 -88
- package/dist/yaml-BpKYQQZ4.js +0 -199
package/dist/mdx-BscoYQtT.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { l as e } from "./index-BtAApC8Z.js";
|
|
2
|
-
const i = {
|
|
3
|
-
comments: {
|
|
4
|
-
blockComment: ["{/*", "*/}"]
|
|
5
|
-
},
|
|
6
|
-
brackets: [["{", "}"]],
|
|
7
|
-
autoClosingPairs: [
|
|
8
|
-
{ open: '"', close: '"' },
|
|
9
|
-
{ open: "'", close: "'" },
|
|
10
|
-
{ open: "“", close: "”" },
|
|
11
|
-
{ open: "‘", close: "’" },
|
|
12
|
-
{ open: "`", close: "`" },
|
|
13
|
-
{ open: "{", close: "}" },
|
|
14
|
-
{ open: "(", close: ")" },
|
|
15
|
-
{ open: "_", close: "_" },
|
|
16
|
-
{ open: "**", close: "**" },
|
|
17
|
-
{ open: "<", close: ">" }
|
|
18
|
-
],
|
|
19
|
-
onEnterRules: [
|
|
20
|
-
{
|
|
21
|
-
beforeText: /^\s*- .+/,
|
|
22
|
-
action: { indentAction: e.IndentAction.None, appendText: "- " }
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
beforeText: /^\s*\+ .+/,
|
|
26
|
-
action: { indentAction: e.IndentAction.None, appendText: "+ " }
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
beforeText: /^\s*\* .+/,
|
|
30
|
-
action: { indentAction: e.IndentAction.None, appendText: "* " }
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
beforeText: /^> /,
|
|
34
|
-
action: { indentAction: e.IndentAction.None, appendText: "> " }
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
beforeText: /<\w+/,
|
|
38
|
-
action: { indentAction: e.IndentAction.Indent }
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
beforeText: /\s+>\s*$/,
|
|
42
|
-
action: { indentAction: e.IndentAction.Indent }
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
beforeText: /<\/\w+>/,
|
|
46
|
-
action: { indentAction: e.IndentAction.Outdent }
|
|
47
|
-
},
|
|
48
|
-
...Array.from({ length: 100 }, (n, t) => ({
|
|
49
|
-
beforeText: new RegExp(`^${t}\\. .+`),
|
|
50
|
-
action: { indentAction: e.IndentAction.None, appendText: `${t + 1}. ` }
|
|
51
|
-
}))
|
|
52
|
-
]
|
|
53
|
-
}, s = {
|
|
54
|
-
defaultToken: "",
|
|
55
|
-
tokenPostfix: ".mdx",
|
|
56
|
-
control: /[!#()*+.[\\\]_`{}\-]/,
|
|
57
|
-
escapes: /\\@control/,
|
|
58
|
-
tokenizer: {
|
|
59
|
-
root: [
|
|
60
|
-
[/^---$/, { token: "meta.content", next: "@frontmatter", nextEmbedded: "yaml" }],
|
|
61
|
-
[/^\s*import/, { token: "keyword", next: "@import", nextEmbedded: "js" }],
|
|
62
|
-
[/^\s*export/, { token: "keyword", next: "@export", nextEmbedded: "js" }],
|
|
63
|
-
[/<\w+/, { token: "type.identifier", next: "@jsx" }],
|
|
64
|
-
[/<\/?\w+>/, "type.identifier"],
|
|
65
|
-
[
|
|
66
|
-
/^(\s*)(>*\s*)(#{1,6}\s)/,
|
|
67
|
-
[{ token: "white" }, { token: "comment" }, { token: "keyword", next: "@header" }]
|
|
68
|
-
],
|
|
69
|
-
[/^(\s*)(>*\s*)([*+-])(\s+)/, ["white", "comment", "keyword", "white"]],
|
|
70
|
-
[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
|
|
71
|
-
[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
|
|
72
|
-
[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/, ["white", "comment", "keyword"]],
|
|
73
|
-
[/`{3,}(\s.*)?$/, { token: "string", next: "@codeblock_backtick" }],
|
|
74
|
-
[/~{3,}(\s.*)?$/, { token: "string", next: "@codeblock_tilde" }],
|
|
75
|
-
[
|
|
76
|
-
/`{3,}(\S+).*$/,
|
|
77
|
-
{ token: "string", next: "@codeblock_highlight_backtick", nextEmbedded: "$1" }
|
|
78
|
-
],
|
|
79
|
-
[
|
|
80
|
-
/~{3,}(\S+).*$/,
|
|
81
|
-
{ token: "string", next: "@codeblock_highlight_tilde", nextEmbedded: "$1" }
|
|
82
|
-
],
|
|
83
|
-
[/^(\s*)(-{4,})$/, ["white", "comment"]],
|
|
84
|
-
[/^(\s*)(>+)/, ["white", "comment"]],
|
|
85
|
-
{ include: "content" }
|
|
86
|
-
],
|
|
87
|
-
content: [
|
|
88
|
-
[
|
|
89
|
-
/(\[)(.+)(]\()(.+)(\s+".*")(\))/,
|
|
90
|
-
["", "string.link", "", "type.identifier", "string.link", ""]
|
|
91
|
-
],
|
|
92
|
-
[/(\[)(.+)(]\()(.+)(\))/, ["", "type.identifier", "", "string.link", ""]],
|
|
93
|
-
[/(\[)(.+)(]\[)(.+)(])/, ["", "type.identifier", "", "type.identifier", ""]],
|
|
94
|
-
[/(\[)(.+)(]:\s+)(\S*)/, ["", "type.identifier", "", "string.link"]],
|
|
95
|
-
[/(\[)(.+)(])/, ["", "type.identifier", ""]],
|
|
96
|
-
[/`.*`/, "variable.source"],
|
|
97
|
-
[/_/, { token: "emphasis", next: "@emphasis_underscore" }],
|
|
98
|
-
[/\*(?!\*)/, { token: "emphasis", next: "@emphasis_asterisk" }],
|
|
99
|
-
[/\*\*/, { token: "strong", next: "@strong" }],
|
|
100
|
-
[/{/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }]
|
|
101
|
-
],
|
|
102
|
-
import: [[/'\s*(;|$)/, { token: "string", next: "@pop", nextEmbedded: "@pop" }]],
|
|
103
|
-
expression: [
|
|
104
|
-
[/{/, { token: "delimiter.bracket", next: "@expression" }],
|
|
105
|
-
[/}/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]
|
|
106
|
-
],
|
|
107
|
-
export: [[/^\s*$/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]],
|
|
108
|
-
jsx: [
|
|
109
|
-
[/\s+/, ""],
|
|
110
|
-
[/(\w+)(=)("(?:[^"\\]|\\.)*")/, ["attribute.name", "operator", "string"]],
|
|
111
|
-
[/(\w+)(=)('(?:[^'\\]|\\.)*')/, ["attribute.name", "operator", "string"]],
|
|
112
|
-
[/(\w+(?=\s|>|={|$))/, ["attribute.name"]],
|
|
113
|
-
[/={/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }],
|
|
114
|
-
[/>/, { token: "type.identifier", next: "@pop" }]
|
|
115
|
-
],
|
|
116
|
-
header: [
|
|
117
|
-
[/.$/, { token: "keyword", next: "@pop" }],
|
|
118
|
-
{ include: "content" },
|
|
119
|
-
[/./, { token: "keyword" }]
|
|
120
|
-
],
|
|
121
|
-
strong: [
|
|
122
|
-
[/\*\*/, { token: "strong", next: "@pop" }],
|
|
123
|
-
{ include: "content" },
|
|
124
|
-
[/./, { token: "strong" }]
|
|
125
|
-
],
|
|
126
|
-
emphasis_underscore: [
|
|
127
|
-
[/_/, { token: "emphasis", next: "@pop" }],
|
|
128
|
-
{ include: "content" },
|
|
129
|
-
[/./, { token: "emphasis" }]
|
|
130
|
-
],
|
|
131
|
-
emphasis_asterisk: [
|
|
132
|
-
[/\*(?!\*)/, { token: "emphasis", next: "@pop" }],
|
|
133
|
-
{ include: "content" },
|
|
134
|
-
[/./, { token: "emphasis" }]
|
|
135
|
-
],
|
|
136
|
-
frontmatter: [[/^---$/, { token: "meta.content", nextEmbedded: "@pop", next: "@pop" }]],
|
|
137
|
-
codeblock_highlight_backtick: [
|
|
138
|
-
[/\s*`{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
|
139
|
-
[/.*$/, "variable.source"]
|
|
140
|
-
],
|
|
141
|
-
codeblock_highlight_tilde: [
|
|
142
|
-
[/\s*~{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
|
143
|
-
[/.*$/, "variable.source"]
|
|
144
|
-
],
|
|
145
|
-
codeblock_backtick: [
|
|
146
|
-
[/\s*`{3,}\s*$/, { token: "string", next: "@pop" }],
|
|
147
|
-
[/.*$/, "variable.source"]
|
|
148
|
-
],
|
|
149
|
-
codeblock_tilde: [
|
|
150
|
-
[/\s*~{3,}\s*$/, { token: "string", next: "@pop" }],
|
|
151
|
-
[/.*$/, "variable.source"]
|
|
152
|
-
]
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
export {
|
|
156
|
-
i as conf,
|
|
157
|
-
s as language
|
|
158
|
-
};
|
package/dist/mips-ButYmJ5E.js
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
3
|
-
comments: {
|
|
4
|
-
blockComment: ["###", "###"],
|
|
5
|
-
lineComment: "#"
|
|
6
|
-
},
|
|
7
|
-
folding: {
|
|
8
|
-
markers: {
|
|
9
|
-
start: new RegExp("^\\s*#region\\b"),
|
|
10
|
-
end: new RegExp("^\\s*#endregion\\b")
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}, t = {
|
|
14
|
-
defaultToken: "",
|
|
15
|
-
ignoreCase: !1,
|
|
16
|
-
tokenPostfix: ".mips",
|
|
17
|
-
regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
|
|
18
|
-
keywords: [
|
|
19
|
-
".data",
|
|
20
|
-
".text",
|
|
21
|
-
"syscall",
|
|
22
|
-
"trap",
|
|
23
|
-
"add",
|
|
24
|
-
"addu",
|
|
25
|
-
"addi",
|
|
26
|
-
"addiu",
|
|
27
|
-
"and",
|
|
28
|
-
"andi",
|
|
29
|
-
"div",
|
|
30
|
-
"divu",
|
|
31
|
-
"mult",
|
|
32
|
-
"multu",
|
|
33
|
-
"nor",
|
|
34
|
-
"or",
|
|
35
|
-
"ori",
|
|
36
|
-
"sll",
|
|
37
|
-
"slv",
|
|
38
|
-
"sra",
|
|
39
|
-
"srav",
|
|
40
|
-
"srl",
|
|
41
|
-
"srlv",
|
|
42
|
-
"sub",
|
|
43
|
-
"subu",
|
|
44
|
-
"xor",
|
|
45
|
-
"xori",
|
|
46
|
-
"lhi",
|
|
47
|
-
"lho",
|
|
48
|
-
"lhi",
|
|
49
|
-
"llo",
|
|
50
|
-
"slt",
|
|
51
|
-
"slti",
|
|
52
|
-
"sltu",
|
|
53
|
-
"sltiu",
|
|
54
|
-
"beq",
|
|
55
|
-
"bgtz",
|
|
56
|
-
"blez",
|
|
57
|
-
"bne",
|
|
58
|
-
"j",
|
|
59
|
-
"jal",
|
|
60
|
-
"jalr",
|
|
61
|
-
"jr",
|
|
62
|
-
"lb",
|
|
63
|
-
"lbu",
|
|
64
|
-
"lh",
|
|
65
|
-
"lhu",
|
|
66
|
-
"lw",
|
|
67
|
-
"li",
|
|
68
|
-
"la",
|
|
69
|
-
"sb",
|
|
70
|
-
"sh",
|
|
71
|
-
"sw",
|
|
72
|
-
"mfhi",
|
|
73
|
-
"mflo",
|
|
74
|
-
"mthi",
|
|
75
|
-
"mtlo",
|
|
76
|
-
"move"
|
|
77
|
-
],
|
|
78
|
-
// we include these common regular expressions
|
|
79
|
-
symbols: /[\.,\:]+/,
|
|
80
|
-
escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
81
|
-
// The main tokenizer for our languages
|
|
82
|
-
tokenizer: {
|
|
83
|
-
root: [
|
|
84
|
-
// identifiers and keywords
|
|
85
|
-
[/\$[a-zA-Z_]\w*/, "variable.predefined"],
|
|
86
|
-
[
|
|
87
|
-
/[.a-zA-Z_]\w*/,
|
|
88
|
-
{
|
|
89
|
-
cases: {
|
|
90
|
-
this: "variable.predefined",
|
|
91
|
-
"@keywords": { token: "keyword.$0" },
|
|
92
|
-
"@default": ""
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
// whitespace
|
|
97
|
-
[/[ \t\r\n]+/, ""],
|
|
98
|
-
// Comments
|
|
99
|
-
[/#.*$/, "comment"],
|
|
100
|
-
// regular expressions
|
|
101
|
-
["///", { token: "regexp", next: "@hereregexp" }],
|
|
102
|
-
[/^(\s*)(@regEx)/, ["", "regexp"]],
|
|
103
|
-
[/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
104
|
-
[/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
105
|
-
// delimiters
|
|
106
|
-
[/@symbols/, "delimiter"],
|
|
107
|
-
// numbers
|
|
108
|
-
[/\d+[eE]([\-+]?\d+)?/, "number.float"],
|
|
109
|
-
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
110
|
-
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
111
|
-
[/0[0-7]+(?!\d)/, "number.octal"],
|
|
112
|
-
[/\d+/, "number"],
|
|
113
|
-
// delimiter: after number because of .\d floats
|
|
114
|
-
[/[,.]/, "delimiter"],
|
|
115
|
-
// strings:
|
|
116
|
-
[/"""/, "string", '@herestring."""'],
|
|
117
|
-
[/'''/, "string", "@herestring.'''"],
|
|
118
|
-
[
|
|
119
|
-
/"/,
|
|
120
|
-
{
|
|
121
|
-
cases: {
|
|
122
|
-
"@eos": "string",
|
|
123
|
-
"@default": { token: "string", next: '@string."' }
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
[
|
|
128
|
-
/'/,
|
|
129
|
-
{
|
|
130
|
-
cases: {
|
|
131
|
-
"@eos": "string",
|
|
132
|
-
"@default": { token: "string", next: "@string.'" }
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
],
|
|
137
|
-
string: [
|
|
138
|
-
[/[^"'\#\\]+/, "string"],
|
|
139
|
-
[/@escapes/, "string.escape"],
|
|
140
|
-
[/\./, "string.escape.invalid"],
|
|
141
|
-
[/\./, "string.escape.invalid"],
|
|
142
|
-
[
|
|
143
|
-
/#{/,
|
|
144
|
-
{
|
|
145
|
-
cases: {
|
|
146
|
-
'$S2=="': {
|
|
147
|
-
token: "string",
|
|
148
|
-
next: "root.interpolatedstring"
|
|
149
|
-
},
|
|
150
|
-
"@default": "string"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
],
|
|
154
|
-
[
|
|
155
|
-
/["']/,
|
|
156
|
-
{
|
|
157
|
-
cases: {
|
|
158
|
-
"$#==$S2": { token: "string", next: "@pop" },
|
|
159
|
-
"@default": "string"
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
],
|
|
163
|
-
[/#/, "string"]
|
|
164
|
-
],
|
|
165
|
-
herestring: [
|
|
166
|
-
[
|
|
167
|
-
/("""|''')/,
|
|
168
|
-
{
|
|
169
|
-
cases: {
|
|
170
|
-
"$1==$S2": { token: "string", next: "@pop" },
|
|
171
|
-
"@default": "string"
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
|
-
[/[^#\\'"]+/, "string"],
|
|
176
|
-
[/['"]+/, "string"],
|
|
177
|
-
[/@escapes/, "string.escape"],
|
|
178
|
-
[/\./, "string.escape.invalid"],
|
|
179
|
-
[/#{/, { token: "string.quote", next: "root.interpolatedstring" }],
|
|
180
|
-
[/#/, "string"]
|
|
181
|
-
],
|
|
182
|
-
comment: [
|
|
183
|
-
[/[^#]+/, "comment"],
|
|
184
|
-
[/#/, "comment"]
|
|
185
|
-
],
|
|
186
|
-
hereregexp: [
|
|
187
|
-
[/[^\\\/#]+/, "regexp"],
|
|
188
|
-
[/\\./, "regexp"],
|
|
189
|
-
[/#.*$/, "comment"],
|
|
190
|
-
["///[igm]*", { token: "regexp", next: "@pop" }],
|
|
191
|
-
[/\//, "regexp"]
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
export {
|
|
196
|
-
e as conf,
|
|
197
|
-
t as language
|
|
198
|
-
};
|