@infinilabs/discover 0.0.1
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/LICENSE +9 -0
- package/README.md +8 -0
- package/dist/abap-B988NUrV.js +122 -0
- package/dist/abap-obercqiY.cjs +1 -0
- package/dist/apex-B0_UGK1B.cjs +1 -0
- package/dist/apex-BlHPPQK-.js +168 -0
- package/dist/azcli-C7iyZFGk.js +53 -0
- package/dist/azcli-CEoytwx_.cjs +1 -0
- package/dist/bat-Buc0l0C3.js +123 -0
- package/dist/bat-D65OC-jj.cjs +1 -0
- package/dist/bicep-DvD_e5vW.cjs +2 -0
- package/dist/bicep-U66iJ-pV.js +219 -0
- package/dist/cameligo-C9Dwkdmm.js +189 -0
- package/dist/cameligo-DzMHfeEs.cjs +1 -0
- package/dist/chunk-BjqF3vbe.cjs +1 -0
- package/dist/chunk-CIp4IH9D.js +21 -0
- package/dist/classnames-BXjDNQ6Q.cjs +1 -0
- package/dist/classnames-eUba3oot.js +29 -0
- package/dist/clojure-BC7BzAFK.cjs +1 -0
- package/dist/clojure-DDWmWbSx.js +146 -0
- package/dist/coffee-7Sx2S8NH.js +260 -0
- package/dist/coffee-Ca9F0OWZ.cjs +1 -0
- package/dist/common-BeXEy5sz.cjs +18 -0
- package/dist/common-BlOHZJzI.js +64 -0
- package/dist/common-DuYIpe6b.cjs +1 -0
- package/dist/common-Tr1I-HCs.js +6725 -0
- package/dist/cpp-CHjqaSPQ.js +230 -0
- package/dist/cpp-DKy9h6xR.cjs +1 -0
- package/dist/createLucideIcon-239Z-2by.cjs +1 -0
- package/dist/createLucideIcon-BO6TDGE7.js +43 -0
- package/dist/csharp-CkbgT9vH.cjs +1 -0
- package/dist/csharp-jwStnVeK.js +260 -0
- package/dist/csp-C2qFd6iv.cjs +1 -0
- package/dist/csp-DkO8Np0h.js +46 -0
- package/dist/css-BFvwcljm.js +284 -0
- package/dist/css-DCKUCzD6.cjs +3 -0
- package/dist/cssMode-CU2AJQMM.js +1509 -0
- package/dist/cssMode-l7eR8WSG.cjs +4 -0
- package/dist/cypher-122TYSjJ.cjs +1 -0
- package/dist/cypher-DaQ7hFRL.js +212 -0
- package/dist/dart-D8p_2HKP.js +236 -0
- package/dist/dart-DshcPGU8.cjs +1 -0
- package/dist/dist-DCz_Qv0B.js +884 -0
- package/dist/dist-D_2dZQH5.cjs +11 -0
- package/dist/dockerfile-CL8dwZCe.cjs +1 -0
- package/dist/dockerfile-DKWOQrwp.js +191 -0
- package/dist/ecl-DP3PNWGB.js +226 -0
- package/dist/ecl-DVx2J_EE.cjs +1 -0
- package/dist/editor.api-CbUDOph7.js +70302 -0
- package/dist/editor.api-lY2thcaq.cjs +644 -0
- package/dist/elixir-Xgx_1krO.cjs +1 -0
- package/dist/elixir-e9tDp1p1.js +523 -0
- package/dist/filter_label-DRJC3vpe.js +58 -0
- package/dist/filter_label-DssaWGpx.cjs +1 -0
- package/dist/filter_operators-C-TaTcNc.js +70 -0
- package/dist/filter_operators-D0kyB-XI.cjs +1 -0
- package/dist/flow9-C9BjpX8h.js +176 -0
- package/dist/flow9-DR-EyjYV.cjs +1 -0
- package/dist/freemarker2-BTGUjvgA.cjs +3 -0
- package/dist/freemarker2-C6Iq5MB-.js +724 -0
- package/dist/fsharp-BWm_FISn.js +147 -0
- package/dist/fsharp-DaBEigN7.cjs +1 -0
- package/dist/go-Xyq33f0v.cjs +1 -0
- package/dist/go-cmqV0Vy_.js +165 -0
- package/dist/graphql-BkFHHVmI.js +174 -0
- package/dist/graphql-Cj7XAy25.cjs +1 -0
- package/dist/handlebars-B2b1q7PA.cjs +1 -0
- package/dist/handlebars-DGGN9u4Y.js +418 -0
- package/dist/hcl-5I-P7bYX.js +219 -0
- package/dist/hcl-C3dpBsgU.cjs +1 -0
- package/dist/html-RJa-j-qT.js +339 -0
- package/dist/html-qfcUzk8e.cjs +1 -0
- package/dist/htmlMode-CYIxo4hc.cjs +4 -0
- package/dist/htmlMode-DDZ48mdp.js +1520 -0
- package/dist/index.cjs +303 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +72895 -0
- package/dist/index_pattern_select--iGeA3sP.js +93 -0
- package/dist/index_pattern_select-BeN5049F.cjs +1 -0
- package/dist/ini-ChENqKh8.cjs +1 -0
- package/dist/ini-DSIAxBZt.js +94 -0
- package/dist/java-DGeAxsRb.js +173 -0
- package/dist/java-LZ6g7weJ.cjs +1 -0
- package/dist/javascript-CN5gTHH2.js +19 -0
- package/dist/javascript-CZ97a-BN.cjs +1 -0
- package/dist/jsonMode-BZDeJMLL.cjs +10 -0
- package/dist/jsonMode-DraOl-ka.js +1885 -0
- package/dist/julia-BeebccKw.cjs +1 -0
- package/dist/julia-CU4CtsP4.js +414 -0
- package/dist/kotlin-B8NxXJ89.js +183 -0
- package/dist/kotlin-M82nl514.cjs +1 -0
- package/dist/less-B4Q3fV9Y.cjs +2 -0
- package/dist/less-DbeQQzer.js +242 -0
- package/dist/lexon-CXQaaecE.cjs +1 -0
- package/dist/lexon-Cw9JuAKc.js +185 -0
- package/dist/lib-C9j_E-l0.js +47 -0
- package/dist/lib-Chy_6VKj.cjs +1 -0
- package/dist/liquid-BYNEOJvX.cjs +1 -0
- package/dist/liquid-DvB-d2w7.js +205 -0
- package/dist/lodash-C_2NO1eK.cjs +35 -0
- package/dist/lodash-D-qGlPRW.js +3769 -0
- package/dist/lua-CnG8Tpu2.cjs +1 -0
- package/dist/lua-yl5NzA_S.js +200 -0
- package/dist/m3-CVcm-OIn.cjs +1 -0
- package/dist/m3-CdNAqvIX.js +193 -0
- package/dist/markdown-C1h-EuiT.js +262 -0
- package/dist/markdown-DrRHDVSU.cjs +1 -0
- package/dist/mdx-BbiOYPr2.cjs +1 -0
- package/dist/mdx-Fk8VTCUK.js +335 -0
- package/dist/mips-DIWpzGF0.js +128 -0
- package/dist/mips-D_p8UYQb.cjs +1 -0
- package/dist/monaco.contribution-BpuUCejv.cjs +1 -0
- package/dist/monaco.contribution-Cq4QrMn0.js +134 -0
- package/dist/msdax-BiazpDQ1.js +156 -0
- package/dist/msdax-xM1_j20x.cjs +1 -0
- package/dist/mysql-DMsJkSnA.cjs +1 -0
- package/dist/mysql-DphBFJlP.js +168 -0
- package/dist/objective-c-BG02Lrht.cjs +1 -0
- package/dist/objective-c-DWZ8Qpyc.js +144 -0
- package/dist/pascal-BcvlMOdu.js +176 -0
- package/dist/pascal-CnP2Fqes.cjs +1 -0
- package/dist/pascaligo-BzDEm-l_.cjs +1 -0
- package/dist/pascaligo-DHEp4kzh.js +201 -0
- package/dist/perl-USYKPHpO.js +316 -0
- package/dist/perl-nIxw-e4R.cjs +1 -0
- package/dist/pgsql-Buk6XzVf.cjs +1 -0
- package/dist/pgsql-DzPhAh9W.js +158 -0
- package/dist/php-B3sFYUqV.cjs +1 -0
- package/dist/php-PfpSTefE.js +471 -0
- package/dist/pla-CZtnfWl6.cjs +1 -0
- package/dist/pla-DrFOZwDB.js +146 -0
- package/dist/postiats-4OGxVVUT.js +504 -0
- package/dist/postiats-CgJZf83Q.cjs +1 -0
- package/dist/powerquery-D9gzk2Dq.cjs +1 -0
- package/dist/powerquery-_h9-HEnY.js +190 -0
- package/dist/powershell-CZHaQY6z.cjs +1 -0
- package/dist/powershell-nOzcY8gy.js +211 -0
- package/dist/protobuf-DAgxhnea.js +659 -0
- package/dist/protobuf-D_C8Guej.cjs +2 -0
- package/dist/public-1PveQco4.js +1756 -0
- package/dist/public-D1K7oN7t.cjs +3 -0
- package/dist/pug-quEtG4rz.cjs +1 -0
- package/dist/pug-raGZNmZ1.js +300 -0
- package/dist/python-C45c7K7W.js +260 -0
- package/dist/python-CQX8JcT4.cjs +1 -0
- package/dist/qsharp-C2jz5tuo.js +143 -0
- package/dist/qsharp-CX1SSV_j.cjs +1 -0
- package/dist/query_bar_top_row-3UclS1nm.cjs +1 -0
- package/dist/query_bar_top_row-CfV4Iu71.cjs +1 -0
- package/dist/query_bar_top_row-D6a48VTk.js +11 -0
- package/dist/query_bar_top_row-DonV1OzY.js +2930 -0
- package/dist/query_string_input-75waAcWy.js +9 -0
- package/dist/query_string_input-CHG9w1ze.cjs +1 -0
- package/dist/query_string_input-CyPZVKif.js +366 -0
- package/dist/query_string_input-SOULY6dl.cjs +1 -0
- package/dist/r-CXkPcYYf.js +189 -0
- package/dist/r-DpVDQTST.cjs +1 -0
- package/dist/razor-BnoJmj1k.js +525 -0
- package/dist/razor-DYx4yJJn.cjs +1 -0
- package/dist/redis-DsCuCZIT.cjs +1 -0
- package/dist/redis-giKZvbbg.js +123 -0
- package/dist/redshift-qKVxBsP_.js +158 -0
- package/dist/redshift-z5_aUfdC.cjs +1 -0
- package/dist/restructuredtext-D0n4pabr.js +287 -0
- package/dist/restructuredtext-DdXoKocW.cjs +1 -0
- package/dist/ruby-BNrBlpcw.js +527 -0
- package/dist/ruby-Dj0sNBey.cjs +1 -0
- package/dist/rust-D6mpPoli.js +178 -0
- package/dist/rust-DjkW1U4M.cjs +1 -0
- package/dist/sb-BCN0JcpS.cjs +1 -0
- package/dist/sb-DhS9GhXl.js +143 -0
- package/dist/scala-BqxBEpi8.js +551 -0
- package/dist/scala-CyXWhZaJ.cjs +1 -0
- package/dist/scheme-Bh4oGAk3.js +170 -0
- package/dist/scheme-Cs9G6QEE.cjs +1 -0
- package/dist/scss-Byf08jwC.js +417 -0
- package/dist/scss-Fl7taPuq.cjs +3 -0
- package/dist/search_bar-Caqi1NVo.js +1815 -0
- package/dist/search_bar-DyO_WsC5.cjs +1 -0
- package/dist/services-9wPHk1eh.js +2350 -0
- package/dist/services-BPC3fXx4.cjs +7 -0
- package/dist/shard_failure_open_modal_button-BYTThYch.js +199 -0
- package/dist/shard_failure_open_modal_button-Dx8ML4VE.cjs +2 -0
- package/dist/shell-Cw5yNfC4.cjs +1 -0
- package/dist/shell-UoRv_tpG.js +223 -0
- package/dist/solidity-B5t7Lkol.js +147 -0
- package/dist/solidity-BoAzg9X_.cjs +1 -0
- package/dist/sophia-BrXXWhvp.js +147 -0
- package/dist/sophia-L84Jz6Ow.cjs +1 -0
- package/dist/sparql-B8ZTY48u.js +124 -0
- package/dist/sparql-D6lnG7vO.cjs +1 -0
- package/dist/sql-D_74hUL-.js +171 -0
- package/dist/sql-VXdYzIyz.cjs +1 -0
- package/dist/src/App.d.ts +2 -0
- package/dist/src/components/ResultHeader/Info.d.ts +30 -0
- package/dist/src/components/ResultHeader/index.d.ts +13 -0
- package/dist/src/components/context.d.ts +82 -0
- package/dist/src/components/euiicons.d.ts +1 -0
- package/dist/src/components/index.d.ts +8 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/utils/request.d.ts +1 -0
- package/dist/src/utils/utils.d.ts +1 -0
- package/dist/st-CxJLwAAK.cjs +1 -0
- package/dist/st-D8Rdx9Bz.js +476 -0
- package/dist/suggestions_component-BBHwbjYT.js +1243 -0
- package/dist/suggestions_component-CF4sehth.cjs +77 -0
- package/dist/swift-ZBC6wQdc.cjs +1 -0
- package/dist/swift-s19Ivx3X.js +213 -0
- package/dist/systemverilog-DoSgAb1I.cjs +1 -0
- package/dist/systemverilog-fA72PnKj.js +298 -0
- package/dist/tcl-B8QLbcxi.js +223 -0
- package/dist/tcl-IXmy-lJ0.cjs +1 -0
- package/dist/tsMode-BrPRpJvb.js +597 -0
- package/dist/tsMode-CNvH6xuC.cjs +11 -0
- package/dist/tsup.config.d.ts +2 -0
- package/dist/twig-CT2RXmm0.cjs +1 -0
- package/dist/twig-Dy7NkzKI.js +388 -0
- package/dist/typescript-BRKHcp4S.js +263 -0
- package/dist/typescript-Bbw9fxuo.cjs +1 -0
- package/dist/typescript-CQjO9XnF.js +3 -0
- package/dist/typescript-D6q4AO2z.cjs +1 -0
- package/dist/typespec-CkKpvaMv.cjs +1 -0
- package/dist/typespec-ndyv0mQx.js +234 -0
- package/dist/vb-DET0NIW-.js +260 -0
- package/dist/vb-R3Kcrzvd.cjs +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/wgsl-D5TeQchR.js +145 -0
- package/dist/wgsl-FTDBzylH.cjs +298 -0
- package/dist/xml-BZjE3dtf.js +136 -0
- package/dist/xml-CxbMIueA.cjs +1 -0
- package/dist/yaml-Di_6aXC4.js +229 -0
- package/dist/yaml-DvaGkWBl.cjs +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,527 @@
|
|
|
1
|
+
var conf = {
|
|
2
|
+
comments: {
|
|
3
|
+
lineComment: "#",
|
|
4
|
+
blockComment: ["=begin", "=end"]
|
|
5
|
+
},
|
|
6
|
+
brackets: [
|
|
7
|
+
["(", ")"],
|
|
8
|
+
["{", "}"],
|
|
9
|
+
["[", "]"]
|
|
10
|
+
],
|
|
11
|
+
autoClosingPairs: [
|
|
12
|
+
{
|
|
13
|
+
open: "{",
|
|
14
|
+
close: "}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
open: "[",
|
|
18
|
+
close: "]"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
open: "(",
|
|
22
|
+
close: ")"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
open: "\"",
|
|
26
|
+
close: "\""
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
open: "'",
|
|
30
|
+
close: "'"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
surroundingPairs: [
|
|
34
|
+
{
|
|
35
|
+
open: "{",
|
|
36
|
+
close: "}"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
open: "[",
|
|
40
|
+
close: "]"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
open: "(",
|
|
44
|
+
close: ")"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
open: "\"",
|
|
48
|
+
close: "\""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
open: "'",
|
|
52
|
+
close: "'"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
indentationRules: {
|
|
56
|
+
increaseIndentPattern: /* @__PURE__ */ 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)*(#.*)?$"),
|
|
57
|
+
decreaseIndentPattern: /* @__PURE__ */ RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")
|
|
58
|
+
}
|
|
59
|
+
}, language = {
|
|
60
|
+
tokenPostfix: ".ruby",
|
|
61
|
+
keywords: /* @__PURE__ */ "__LINE__.__ENCODING__.__FILE__.BEGIN.END.alias.and.begin.break.case.class.def.defined?.do.else.elsif.end.ensure.for.false.if.in.module.next.nil.not.or.redo.rescue.retry.return.self.super.then.true.undef.unless.until.when.while.yield".split("."),
|
|
62
|
+
keywordops: [
|
|
63
|
+
"::",
|
|
64
|
+
"..",
|
|
65
|
+
"...",
|
|
66
|
+
"?",
|
|
67
|
+
":",
|
|
68
|
+
"=>"
|
|
69
|
+
],
|
|
70
|
+
builtins: [
|
|
71
|
+
"require",
|
|
72
|
+
"public",
|
|
73
|
+
"private",
|
|
74
|
+
"include",
|
|
75
|
+
"extend",
|
|
76
|
+
"attr_reader",
|
|
77
|
+
"protected",
|
|
78
|
+
"private_class_method",
|
|
79
|
+
"protected_class_method",
|
|
80
|
+
"new"
|
|
81
|
+
],
|
|
82
|
+
declarations: [
|
|
83
|
+
"module",
|
|
84
|
+
"class",
|
|
85
|
+
"def",
|
|
86
|
+
"case",
|
|
87
|
+
"do",
|
|
88
|
+
"begin",
|
|
89
|
+
"for",
|
|
90
|
+
"if",
|
|
91
|
+
"while",
|
|
92
|
+
"until",
|
|
93
|
+
"unless"
|
|
94
|
+
],
|
|
95
|
+
linedecls: [
|
|
96
|
+
"def",
|
|
97
|
+
"case",
|
|
98
|
+
"do",
|
|
99
|
+
"begin",
|
|
100
|
+
"for",
|
|
101
|
+
"if",
|
|
102
|
+
"while",
|
|
103
|
+
"until",
|
|
104
|
+
"unless"
|
|
105
|
+
],
|
|
106
|
+
operators: /* @__PURE__ */ "^.&.|.<=>.==.===.!~.=~.>.>=.<.<=.<<.>>.+.-.*./.%.**.~.+@.-@.[].[]=.`.+=.-=.*=.**=./=.^=.%=.<<=.>>=.&=.&&=.||=.|=".split("."),
|
|
107
|
+
brackets: [
|
|
108
|
+
{
|
|
109
|
+
open: "(",
|
|
110
|
+
close: ")",
|
|
111
|
+
token: "delimiter.parenthesis"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
open: "{",
|
|
115
|
+
close: "}",
|
|
116
|
+
token: "delimiter.curly"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
open: "[",
|
|
120
|
+
close: "]",
|
|
121
|
+
token: "delimiter.square"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
symbols: /[=><!~?:&|+\-*\/\^%\.]+/,
|
|
125
|
+
escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
|
|
126
|
+
escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
|
|
127
|
+
decpart: /\d(_?\d)*/,
|
|
128
|
+
decimal: /0|@decpart/,
|
|
129
|
+
delim: /[^a-zA-Z0-9\s\n\r]/,
|
|
130
|
+
heredelim: /(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,
|
|
131
|
+
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
|
132
|
+
regexpesc: /\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,
|
|
133
|
+
tokenizer: {
|
|
134
|
+
root: [
|
|
135
|
+
[/^(\s*)([a-z_]\w*[!?=]?)/, ["white", { cases: {
|
|
136
|
+
"for|until|while": {
|
|
137
|
+
token: "keyword.$2",
|
|
138
|
+
next: "@dodecl.$2"
|
|
139
|
+
},
|
|
140
|
+
"@declarations": {
|
|
141
|
+
token: "keyword.$2",
|
|
142
|
+
next: "@root.$2"
|
|
143
|
+
},
|
|
144
|
+
end: {
|
|
145
|
+
token: "keyword.$S2",
|
|
146
|
+
next: "@pop"
|
|
147
|
+
},
|
|
148
|
+
"@keywords": "keyword",
|
|
149
|
+
"@builtins": "predefined",
|
|
150
|
+
"@default": "identifier"
|
|
151
|
+
} }]],
|
|
152
|
+
[/[a-z_]\w*[!?=]?/, { cases: {
|
|
153
|
+
"if|unless|while|until": {
|
|
154
|
+
token: "keyword.$0x",
|
|
155
|
+
next: "@modifier.$0x"
|
|
156
|
+
},
|
|
157
|
+
for: {
|
|
158
|
+
token: "keyword.$2",
|
|
159
|
+
next: "@dodecl.$2"
|
|
160
|
+
},
|
|
161
|
+
"@linedecls": {
|
|
162
|
+
token: "keyword.$0",
|
|
163
|
+
next: "@root.$0"
|
|
164
|
+
},
|
|
165
|
+
end: {
|
|
166
|
+
token: "keyword.$S2",
|
|
167
|
+
next: "@pop"
|
|
168
|
+
},
|
|
169
|
+
"@keywords": "keyword",
|
|
170
|
+
"@builtins": "predefined",
|
|
171
|
+
"@default": "identifier"
|
|
172
|
+
} }],
|
|
173
|
+
[/[A-Z][\w]*[!?=]?/, "constructor.identifier"],
|
|
174
|
+
[/\$[\w]*/, "global.constant"],
|
|
175
|
+
[/@[\w]*/, "namespace.instance.identifier"],
|
|
176
|
+
[/@@@[\w]*/, "namespace.class.identifier"],
|
|
177
|
+
[/<<[-~](@heredelim).*/, {
|
|
178
|
+
token: "string.heredoc.delimiter",
|
|
179
|
+
next: "@heredoc.$1"
|
|
180
|
+
}],
|
|
181
|
+
[/[ \t\r\n]+<<(@heredelim).*/, {
|
|
182
|
+
token: "string.heredoc.delimiter",
|
|
183
|
+
next: "@heredoc.$1"
|
|
184
|
+
}],
|
|
185
|
+
[/^<<(@heredelim).*/, {
|
|
186
|
+
token: "string.heredoc.delimiter",
|
|
187
|
+
next: "@heredoc.$1"
|
|
188
|
+
}],
|
|
189
|
+
{ include: "@whitespace" },
|
|
190
|
+
[/"/, {
|
|
191
|
+
token: "string.d.delim",
|
|
192
|
+
next: "@dstring.d.\""
|
|
193
|
+
}],
|
|
194
|
+
[/'/, {
|
|
195
|
+
token: "string.sq.delim",
|
|
196
|
+
next: "@sstring.sq"
|
|
197
|
+
}],
|
|
198
|
+
[/%([rsqxwW]|Q?)/, {
|
|
199
|
+
token: "@rematch",
|
|
200
|
+
next: "pstring"
|
|
201
|
+
}],
|
|
202
|
+
[/`/, {
|
|
203
|
+
token: "string.x.delim",
|
|
204
|
+
next: "@dstring.x.`"
|
|
205
|
+
}],
|
|
206
|
+
[/:(\w|[$@])\w*[!?=]?/, "string.s"],
|
|
207
|
+
[/:"/, {
|
|
208
|
+
token: "string.s.delim",
|
|
209
|
+
next: "@dstring.s.\""
|
|
210
|
+
}],
|
|
211
|
+
[/:'/, {
|
|
212
|
+
token: "string.s.delim",
|
|
213
|
+
next: "@sstring.s"
|
|
214
|
+
}],
|
|
215
|
+
[/\/(?=(\\\/|[^\/\n])+\/)/, {
|
|
216
|
+
token: "regexp.delim",
|
|
217
|
+
next: "@regexp"
|
|
218
|
+
}],
|
|
219
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
220
|
+
[/@symbols/, { cases: {
|
|
221
|
+
"@keywordops": "keyword",
|
|
222
|
+
"@operators": "operator",
|
|
223
|
+
"@default": ""
|
|
224
|
+
} }],
|
|
225
|
+
[/[;,]/, "delimiter"],
|
|
226
|
+
[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"],
|
|
227
|
+
[/0[_oO][0-7](_?[0-7])*/, "number.octal"],
|
|
228
|
+
[/0[bB][01](_?[01])*/, "number.binary"],
|
|
229
|
+
[/0[dD]@decpart/, "number"],
|
|
230
|
+
[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/, { cases: {
|
|
231
|
+
$1: "number.float",
|
|
232
|
+
"@default": "number"
|
|
233
|
+
} }]
|
|
234
|
+
],
|
|
235
|
+
dodecl: [
|
|
236
|
+
[/^/, {
|
|
237
|
+
token: "",
|
|
238
|
+
switchTo: "@root.$S2"
|
|
239
|
+
}],
|
|
240
|
+
[/[a-z_]\w*[!?=]?/, { cases: {
|
|
241
|
+
end: {
|
|
242
|
+
token: "keyword.$S2",
|
|
243
|
+
next: "@pop"
|
|
244
|
+
},
|
|
245
|
+
do: {
|
|
246
|
+
token: "keyword",
|
|
247
|
+
switchTo: "@root.$S2"
|
|
248
|
+
},
|
|
249
|
+
"@linedecls": {
|
|
250
|
+
token: "@rematch",
|
|
251
|
+
switchTo: "@root.$S2"
|
|
252
|
+
},
|
|
253
|
+
"@keywords": "keyword",
|
|
254
|
+
"@builtins": "predefined",
|
|
255
|
+
"@default": "identifier"
|
|
256
|
+
} }],
|
|
257
|
+
{ include: "@root" }
|
|
258
|
+
],
|
|
259
|
+
modifier: [
|
|
260
|
+
[
|
|
261
|
+
/^/,
|
|
262
|
+
"",
|
|
263
|
+
"@pop"
|
|
264
|
+
],
|
|
265
|
+
[/[a-z_]\w*[!?=]?/, { cases: {
|
|
266
|
+
end: {
|
|
267
|
+
token: "keyword.$S2",
|
|
268
|
+
next: "@pop"
|
|
269
|
+
},
|
|
270
|
+
"then|else|elsif|do": {
|
|
271
|
+
token: "keyword",
|
|
272
|
+
switchTo: "@root.$S2"
|
|
273
|
+
},
|
|
274
|
+
"@linedecls": {
|
|
275
|
+
token: "@rematch",
|
|
276
|
+
switchTo: "@root.$S2"
|
|
277
|
+
},
|
|
278
|
+
"@keywords": "keyword",
|
|
279
|
+
"@builtins": "predefined",
|
|
280
|
+
"@default": "identifier"
|
|
281
|
+
} }],
|
|
282
|
+
{ include: "@root" }
|
|
283
|
+
],
|
|
284
|
+
sstring: [
|
|
285
|
+
[/[^\\']+/, "string.$S2"],
|
|
286
|
+
[/\\\\|\\'|\\$/, "string.$S2.escape"],
|
|
287
|
+
[/\\./, "string.$S2.invalid"],
|
|
288
|
+
[/'/, {
|
|
289
|
+
token: "string.$S2.delim",
|
|
290
|
+
next: "@pop"
|
|
291
|
+
}]
|
|
292
|
+
],
|
|
293
|
+
dstring: [
|
|
294
|
+
[/[^\\`"#]+/, "string.$S2"],
|
|
295
|
+
[
|
|
296
|
+
/#/,
|
|
297
|
+
"string.$S2.escape",
|
|
298
|
+
"@interpolated"
|
|
299
|
+
],
|
|
300
|
+
[/\\$/, "string.$S2.escape"],
|
|
301
|
+
[/@escapes/, "string.$S2.escape"],
|
|
302
|
+
[/\\./, "string.$S2.escape.invalid"],
|
|
303
|
+
[/[`"]/, { cases: {
|
|
304
|
+
"$#==$S3": {
|
|
305
|
+
token: "string.$S2.delim",
|
|
306
|
+
next: "@pop"
|
|
307
|
+
},
|
|
308
|
+
"@default": "string.$S2"
|
|
309
|
+
} }]
|
|
310
|
+
],
|
|
311
|
+
heredoc: [[/^(\s*)(@heredelim)$/, { cases: {
|
|
312
|
+
"$2==$S2": ["string.heredoc", {
|
|
313
|
+
token: "string.heredoc.delimiter",
|
|
314
|
+
next: "@pop"
|
|
315
|
+
}],
|
|
316
|
+
"@default": ["string.heredoc", "string.heredoc"]
|
|
317
|
+
} }], [/.*/, "string.heredoc"]],
|
|
318
|
+
interpolated: [
|
|
319
|
+
[
|
|
320
|
+
/\$\w*/,
|
|
321
|
+
"global.constant",
|
|
322
|
+
"@pop"
|
|
323
|
+
],
|
|
324
|
+
[
|
|
325
|
+
/@\w*/,
|
|
326
|
+
"namespace.class.identifier",
|
|
327
|
+
"@pop"
|
|
328
|
+
],
|
|
329
|
+
[
|
|
330
|
+
/@@@\w*/,
|
|
331
|
+
"namespace.instance.identifier",
|
|
332
|
+
"@pop"
|
|
333
|
+
],
|
|
334
|
+
[/[{]/, {
|
|
335
|
+
token: "string.escape.curly",
|
|
336
|
+
switchTo: "@interpolated_compound"
|
|
337
|
+
}],
|
|
338
|
+
[
|
|
339
|
+
"",
|
|
340
|
+
"",
|
|
341
|
+
"@pop"
|
|
342
|
+
]
|
|
343
|
+
],
|
|
344
|
+
interpolated_compound: [[/[}]/, {
|
|
345
|
+
token: "string.escape.curly",
|
|
346
|
+
next: "@pop"
|
|
347
|
+
}], { include: "@root" }],
|
|
348
|
+
pregexp: [
|
|
349
|
+
{ include: "@whitespace" },
|
|
350
|
+
[/[^\(\{\[\\]/, { cases: {
|
|
351
|
+
"$#==$S3": {
|
|
352
|
+
token: "regexp.delim",
|
|
353
|
+
next: "@pop"
|
|
354
|
+
},
|
|
355
|
+
"$#==$S2": {
|
|
356
|
+
token: "regexp.delim",
|
|
357
|
+
next: "@push"
|
|
358
|
+
},
|
|
359
|
+
"~[)}\\]]": "@brackets.regexp.escape.control",
|
|
360
|
+
"~@regexpctl": "regexp.escape.control",
|
|
361
|
+
"@default": "regexp"
|
|
362
|
+
} }],
|
|
363
|
+
{ include: "@regexcontrol" }
|
|
364
|
+
],
|
|
365
|
+
regexp: [
|
|
366
|
+
{ include: "@regexcontrol" },
|
|
367
|
+
[/[^\\\/]/, "regexp"],
|
|
368
|
+
[
|
|
369
|
+
"/[ixmp]*",
|
|
370
|
+
{ token: "regexp.delim" },
|
|
371
|
+
"@pop"
|
|
372
|
+
]
|
|
373
|
+
],
|
|
374
|
+
regexcontrol: [
|
|
375
|
+
[/(\{)(\d+(?:,\d*)?)(\})/, [
|
|
376
|
+
"@brackets.regexp.escape.control",
|
|
377
|
+
"regexp.escape.control",
|
|
378
|
+
"@brackets.regexp.escape.control"
|
|
379
|
+
]],
|
|
380
|
+
[/(\[)(\^?)/, ["@brackets.regexp.escape.control", {
|
|
381
|
+
token: "regexp.escape.control",
|
|
382
|
+
next: "@regexrange"
|
|
383
|
+
}]],
|
|
384
|
+
[/(\()(\?[:=!])/, ["@brackets.regexp.escape.control", "regexp.escape.control"]],
|
|
385
|
+
[/\(\?#/, {
|
|
386
|
+
token: "regexp.escape.control",
|
|
387
|
+
next: "@regexpcomment"
|
|
388
|
+
}],
|
|
389
|
+
[/[()]/, "@brackets.regexp.escape.control"],
|
|
390
|
+
[/@regexpctl/, "regexp.escape.control"],
|
|
391
|
+
[/\\$/, "regexp.escape"],
|
|
392
|
+
[/@regexpesc/, "regexp.escape"],
|
|
393
|
+
[/\\\./, "regexp.invalid"],
|
|
394
|
+
[
|
|
395
|
+
/#/,
|
|
396
|
+
"regexp.escape",
|
|
397
|
+
"@interpolated"
|
|
398
|
+
]
|
|
399
|
+
],
|
|
400
|
+
regexrange: [
|
|
401
|
+
[/-/, "regexp.escape.control"],
|
|
402
|
+
[/\^/, "regexp.invalid"],
|
|
403
|
+
[/\\$/, "regexp.escape"],
|
|
404
|
+
[/@regexpesc/, "regexp.escape"],
|
|
405
|
+
[/[^\]]/, "regexp"],
|
|
406
|
+
[
|
|
407
|
+
/\]/,
|
|
408
|
+
"@brackets.regexp.escape.control",
|
|
409
|
+
"@pop"
|
|
410
|
+
]
|
|
411
|
+
],
|
|
412
|
+
regexpcomment: [[/[^)]+/, "comment"], [/\)/, {
|
|
413
|
+
token: "regexp.escape.control",
|
|
414
|
+
next: "@pop"
|
|
415
|
+
}]],
|
|
416
|
+
pstring: [
|
|
417
|
+
[/%([qws])\(/, {
|
|
418
|
+
token: "string.$1.delim",
|
|
419
|
+
switchTo: "@qstring.$1.(.)"
|
|
420
|
+
}],
|
|
421
|
+
[/%([qws])\[/, {
|
|
422
|
+
token: "string.$1.delim",
|
|
423
|
+
switchTo: "@qstring.$1.[.]"
|
|
424
|
+
}],
|
|
425
|
+
[/%([qws])\{/, {
|
|
426
|
+
token: "string.$1.delim",
|
|
427
|
+
switchTo: "@qstring.$1.{.}"
|
|
428
|
+
}],
|
|
429
|
+
[/%([qws])</, {
|
|
430
|
+
token: "string.$1.delim",
|
|
431
|
+
switchTo: "@qstring.$1.<.>"
|
|
432
|
+
}],
|
|
433
|
+
[/%([qws])(@delim)/, {
|
|
434
|
+
token: "string.$1.delim",
|
|
435
|
+
switchTo: "@qstring.$1.$2.$2"
|
|
436
|
+
}],
|
|
437
|
+
[/%r\(/, {
|
|
438
|
+
token: "regexp.delim",
|
|
439
|
+
switchTo: "@pregexp.(.)"
|
|
440
|
+
}],
|
|
441
|
+
[/%r\[/, {
|
|
442
|
+
token: "regexp.delim",
|
|
443
|
+
switchTo: "@pregexp.[.]"
|
|
444
|
+
}],
|
|
445
|
+
[/%r\{/, {
|
|
446
|
+
token: "regexp.delim",
|
|
447
|
+
switchTo: "@pregexp.{.}"
|
|
448
|
+
}],
|
|
449
|
+
[/%r</, {
|
|
450
|
+
token: "regexp.delim",
|
|
451
|
+
switchTo: "@pregexp.<.>"
|
|
452
|
+
}],
|
|
453
|
+
[/%r(@delim)/, {
|
|
454
|
+
token: "regexp.delim",
|
|
455
|
+
switchTo: "@pregexp.$1.$1"
|
|
456
|
+
}],
|
|
457
|
+
[/%(x|W|Q?)\(/, {
|
|
458
|
+
token: "string.$1.delim",
|
|
459
|
+
switchTo: "@qqstring.$1.(.)"
|
|
460
|
+
}],
|
|
461
|
+
[/%(x|W|Q?)\[/, {
|
|
462
|
+
token: "string.$1.delim",
|
|
463
|
+
switchTo: "@qqstring.$1.[.]"
|
|
464
|
+
}],
|
|
465
|
+
[/%(x|W|Q?)\{/, {
|
|
466
|
+
token: "string.$1.delim",
|
|
467
|
+
switchTo: "@qqstring.$1.{.}"
|
|
468
|
+
}],
|
|
469
|
+
[/%(x|W|Q?)</, {
|
|
470
|
+
token: "string.$1.delim",
|
|
471
|
+
switchTo: "@qqstring.$1.<.>"
|
|
472
|
+
}],
|
|
473
|
+
[/%(x|W|Q?)(@delim)/, {
|
|
474
|
+
token: "string.$1.delim",
|
|
475
|
+
switchTo: "@qqstring.$1.$2.$2"
|
|
476
|
+
}],
|
|
477
|
+
[/%([rqwsxW]|Q?)./, {
|
|
478
|
+
token: "invalid",
|
|
479
|
+
next: "@pop"
|
|
480
|
+
}],
|
|
481
|
+
[/./, {
|
|
482
|
+
token: "invalid",
|
|
483
|
+
next: "@pop"
|
|
484
|
+
}]
|
|
485
|
+
],
|
|
486
|
+
qstring: [
|
|
487
|
+
[/\\$/, "string.$S2.escape"],
|
|
488
|
+
[/\\./, "string.$S2.escape"],
|
|
489
|
+
[/./, { cases: {
|
|
490
|
+
"$#==$S4": {
|
|
491
|
+
token: "string.$S2.delim",
|
|
492
|
+
next: "@pop"
|
|
493
|
+
},
|
|
494
|
+
"$#==$S3": {
|
|
495
|
+
token: "string.$S2.delim",
|
|
496
|
+
next: "@push"
|
|
497
|
+
},
|
|
498
|
+
"@default": "string.$S2"
|
|
499
|
+
} }]
|
|
500
|
+
],
|
|
501
|
+
qqstring: [[
|
|
502
|
+
/#/,
|
|
503
|
+
"string.$S2.escape",
|
|
504
|
+
"@interpolated"
|
|
505
|
+
], { include: "@qstring" }],
|
|
506
|
+
whitespace: [
|
|
507
|
+
[/[ \t\r\n]+/, ""],
|
|
508
|
+
[
|
|
509
|
+
/^\s*=begin\b/,
|
|
510
|
+
"comment",
|
|
511
|
+
"@comment"
|
|
512
|
+
],
|
|
513
|
+
[/#.*$/, "comment"]
|
|
514
|
+
],
|
|
515
|
+
comment: [
|
|
516
|
+
[/[^=]+/, "comment"],
|
|
517
|
+
[/^\s*=begin\b/, "comment.invalid"],
|
|
518
|
+
[
|
|
519
|
+
/^\s*=end\b.*/,
|
|
520
|
+
"comment",
|
|
521
|
+
"@pop"
|
|
522
|
+
],
|
|
523
|
+
[/[=]/, "comment"]
|
|
524
|
+
]
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
export { conf, language };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-BjqF3vbe.cjs`);var t={comments:{lineComment:`#`,blockComment:[`=begin`,`=end`]},brackets:[[`(`,`)`],[`{`,`}`],[`[`,`]`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],indentationRules:{increaseIndentPattern: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)*(#.*)?$`),decreaseIndentPattern:RegExp(`^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)`)}},n={tokenPostfix:`.ruby`,keywords:`__LINE__.__ENCODING__.__FILE__.BEGIN.END.alias.and.begin.break.case.class.def.defined?.do.else.elsif.end.ensure.for.false.if.in.module.next.nil.not.or.redo.rescue.retry.return.self.super.then.true.undef.unless.until.when.while.yield`.split(`.`),keywordops:[`::`,`..`,`...`,`?`,`:`,`=>`],builtins:[`require`,`public`,`private`,`include`,`extend`,`attr_reader`,`protected`,`private_class_method`,`protected_class_method`,`new`],declarations:[`module`,`class`,`def`,`case`,`do`,`begin`,`for`,`if`,`while`,`until`,`unless`],linedecls:[`def`,`case`,`do`,`begin`,`for`,`if`,`while`,`until`,`unless`],operators:"^.&.|.<=>.==.===.!~.=~.>.>=.<.<=.<<.>>.+.-.*./.%.**.~.+@.-@.[].[]=.`.+=.-=.*=.**=./=.^=.%=.<<=.>>=.&=.&&=.||=.|=".split(`.`),brackets:[{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,[`white`,{cases:{"for|until|while":{token:`keyword.$2`,next:`@dodecl.$2`},"@declarations":{token:`keyword.$2`,next:`@root.$2`},end:{token:`keyword.$S2`,next:`@pop`},"@keywords":`keyword`,"@builtins":`predefined`,"@default":`identifier`}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:`keyword.$0x`,next:`@modifier.$0x`},for:{token:`keyword.$2`,next:`@dodecl.$2`},"@linedecls":{token:`keyword.$0`,next:`@root.$0`},end:{token:`keyword.$S2`,next:`@pop`},"@keywords":`keyword`,"@builtins":`predefined`,"@default":`identifier`}}],[/[A-Z][\w]*[!?=]?/,`constructor.identifier`],[/\$[\w]*/,`global.constant`],[/@[\w]*/,`namespace.instance.identifier`],[/@@@[\w]*/,`namespace.class.identifier`],[/<<[-~](@heredelim).*/,{token:`string.heredoc.delimiter`,next:`@heredoc.$1`}],[/[ \t\r\n]+<<(@heredelim).*/,{token:`string.heredoc.delimiter`,next:`@heredoc.$1`}],[/^<<(@heredelim).*/,{token:`string.heredoc.delimiter`,next:`@heredoc.$1`}],{include:`@whitespace`},[/"/,{token:`string.d.delim`,next:`@dstring.d."`}],[/'/,{token:`string.sq.delim`,next:`@sstring.sq`}],[/%([rsqxwW]|Q?)/,{token:`@rematch`,next:`pstring`}],[/`/,{token:`string.x.delim`,next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,`string.s`],[/:"/,{token:`string.s.delim`,next:`@dstring.s."`}],[/:'/,{token:`string.s.delim`,next:`@sstring.s`}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:`regexp.delim`,next:`@regexp`}],[/[{}()\[\]]/,`@brackets`],[/@symbols/,{cases:{"@keywordops":`keyword`,"@operators":`operator`,"@default":``}}],[/[;,]/,`delimiter`],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,`number.hex`],[/0[_oO][0-7](_?[0-7])*/,`number.octal`],[/0[bB][01](_?[01])*/,`number.binary`],[/0[dD]@decpart/,`number`],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:`number.float`,"@default":`number`}}]],dodecl:[[/^/,{token:``,switchTo:`@root.$S2`}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:`keyword.$S2`,next:`@pop`},do:{token:`keyword`,switchTo:`@root.$S2`},"@linedecls":{token:`@rematch`,switchTo:`@root.$S2`},"@keywords":`keyword`,"@builtins":`predefined`,"@default":`identifier`}}],{include:`@root`}],modifier:[[/^/,``,`@pop`],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:`keyword.$S2`,next:`@pop`},"then|else|elsif|do":{token:`keyword`,switchTo:`@root.$S2`},"@linedecls":{token:`@rematch`,switchTo:`@root.$S2`},"@keywords":`keyword`,"@builtins":`predefined`,"@default":`identifier`}}],{include:`@root`}],sstring:[[/[^\\']+/,`string.$S2`],[/\\\\|\\'|\\$/,`string.$S2.escape`],[/\\./,`string.$S2.invalid`],[/'/,{token:`string.$S2.delim`,next:`@pop`}]],dstring:[[/[^\\`"#]+/,`string.$S2`],[/#/,`string.$S2.escape`,`@interpolated`],[/\\$/,`string.$S2.escape`],[/@escapes/,`string.$S2.escape`],[/\\./,`string.$S2.escape.invalid`],[/[`"]/,{cases:{"$#==$S3":{token:`string.$S2.delim`,next:`@pop`},"@default":`string.$S2`}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":[`string.heredoc`,{token:`string.heredoc.delimiter`,next:`@pop`}],"@default":[`string.heredoc`,`string.heredoc`]}}],[/.*/,`string.heredoc`]],interpolated:[[/\$\w*/,`global.constant`,`@pop`],[/@\w*/,`namespace.class.identifier`,`@pop`],[/@@@\w*/,`namespace.instance.identifier`,`@pop`],[/[{]/,{token:`string.escape.curly`,switchTo:`@interpolated_compound`}],[``,``,`@pop`]],interpolated_compound:[[/[}]/,{token:`string.escape.curly`,next:`@pop`}],{include:`@root`}],pregexp:[{include:`@whitespace`},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:`regexp.delim`,next:`@pop`},"$#==$S2":{token:`regexp.delim`,next:`@push`},"~[)}\\]]":`@brackets.regexp.escape.control`,"~@regexpctl":`regexp.escape.control`,"@default":`regexp`}}],{include:`@regexcontrol`}],regexp:[{include:`@regexcontrol`},[/[^\\\/]/,`regexp`],[`/[ixmp]*`,{token:`regexp.delim`},`@pop`]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,[`@brackets.regexp.escape.control`,`regexp.escape.control`,`@brackets.regexp.escape.control`]],[/(\[)(\^?)/,[`@brackets.regexp.escape.control`,{token:`regexp.escape.control`,next:`@regexrange`}]],[/(\()(\?[:=!])/,[`@brackets.regexp.escape.control`,`regexp.escape.control`]],[/\(\?#/,{token:`regexp.escape.control`,next:`@regexpcomment`}],[/[()]/,`@brackets.regexp.escape.control`],[/@regexpctl/,`regexp.escape.control`],[/\\$/,`regexp.escape`],[/@regexpesc/,`regexp.escape`],[/\\\./,`regexp.invalid`],[/#/,`regexp.escape`,`@interpolated`]],regexrange:[[/-/,`regexp.escape.control`],[/\^/,`regexp.invalid`],[/\\$/,`regexp.escape`],[/@regexpesc/,`regexp.escape`],[/[^\]]/,`regexp`],[/\]/,`@brackets.regexp.escape.control`,`@pop`]],regexpcomment:[[/[^)]+/,`comment`],[/\)/,{token:`regexp.escape.control`,next:`@pop`}]],pstring:[[/%([qws])\(/,{token:`string.$1.delim`,switchTo:`@qstring.$1.(.)`}],[/%([qws])\[/,{token:`string.$1.delim`,switchTo:`@qstring.$1.[.]`}],[/%([qws])\{/,{token:`string.$1.delim`,switchTo:`@qstring.$1.{.}`}],[/%([qws])</,{token:`string.$1.delim`,switchTo:`@qstring.$1.<.>`}],[/%([qws])(@delim)/,{token:`string.$1.delim`,switchTo:`@qstring.$1.$2.$2`}],[/%r\(/,{token:`regexp.delim`,switchTo:`@pregexp.(.)`}],[/%r\[/,{token:`regexp.delim`,switchTo:`@pregexp.[.]`}],[/%r\{/,{token:`regexp.delim`,switchTo:`@pregexp.{.}`}],[/%r</,{token:`regexp.delim`,switchTo:`@pregexp.<.>`}],[/%r(@delim)/,{token:`regexp.delim`,switchTo:`@pregexp.$1.$1`}],[/%(x|W|Q?)\(/,{token:`string.$1.delim`,switchTo:`@qqstring.$1.(.)`}],[/%(x|W|Q?)\[/,{token:`string.$1.delim`,switchTo:`@qqstring.$1.[.]`}],[/%(x|W|Q?)\{/,{token:`string.$1.delim`,switchTo:`@qqstring.$1.{.}`}],[/%(x|W|Q?)</,{token:`string.$1.delim`,switchTo:`@qqstring.$1.<.>`}],[/%(x|W|Q?)(@delim)/,{token:`string.$1.delim`,switchTo:`@qqstring.$1.$2.$2`}],[/%([rqwsxW]|Q?)./,{token:`invalid`,next:`@pop`}],[/./,{token:`invalid`,next:`@pop`}]],qstring:[[/\\$/,`string.$S2.escape`],[/\\./,`string.$S2.escape`],[/./,{cases:{"$#==$S4":{token:`string.$S2.delim`,next:`@pop`},"$#==$S3":{token:`string.$S2.delim`,next:`@push`},"@default":`string.$S2`}}]],qqstring:[[/#/,`string.$S2.escape`,`@interpolated`],{include:`@qstring`}],whitespace:[[/[ \t\r\n]+/,``],[/^\s*=begin\b/,`comment`,`@comment`],[/#.*$/,`comment`]],comment:[[/[^=]+/,`comment`],[/^\s*=begin\b/,`comment.invalid`],[/^\s*=end\b.*/,`comment`,`@pop`],[/[=]/,`comment`]]}};exports.conf=t,exports.language=n;
|