@devtron-labs/devtron-fe-common-lib 1.1.6-beta-2 → 1.1.6-beta-3

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.
Files changed (103) hide show
  1. package/dist/abap-DttVK1gE.js +1314 -0
  2. package/dist/apex-BjfHvyb2.js +315 -0
  3. package/dist/assets/index.css +1 -0
  4. package/dist/azcli-Ws-Trf8e.js +74 -0
  5. package/dist/bat-CeCHpU9_.js +95 -0
  6. package/dist/bicep-C7a7aEmi.js +108 -0
  7. package/dist/cameligo-CJeEIvX4.js +168 -0
  8. package/dist/clojure-CEKXhLdU.js +754 -0
  9. package/dist/coffee-CKu3e6V1.js +228 -0
  10. package/dist/cpp-CvUiT5Ec.js +390 -0
  11. package/dist/csharp-PmU9HJkB.js +320 -0
  12. package/dist/csp-DULvRLPF.js +57 -0
  13. package/dist/css-CNWXQPpt.js +186 -0
  14. package/dist/cssMode-LuGmMkrz.js +1446 -0
  15. package/dist/cypher-CYHOQS2R.js +262 -0
  16. package/dist/dart-BjGx-9Jk.js +270 -0
  17. package/dist/dockerfile-D0WaVIZ2.js +132 -0
  18. package/dist/ecl-CijaJu-p.js +454 -0
  19. package/dist/elixir-BI5Tc37S.js +489 -0
  20. package/dist/flow9-BApGtQOO.js +141 -0
  21. package/dist/freemarker2-x4RlP1Lb.js +643 -0
  22. package/dist/fsharp-VeKgt2eG.js +210 -0
  23. package/dist/go-Cl8cKDlN.js +208 -0
  24. package/dist/graphql-PfgPBmj4.js +141 -0
  25. package/dist/handlebars-CmzmbrC4.js +391 -0
  26. package/dist/hcl-CG4VZSkm.js +177 -0
  27. package/dist/html-C5BGMOju.js +281 -0
  28. package/dist/htmlMode-ojR1UPbw.js +1456 -0
  29. package/dist/index-D-Wm7m6U.js +163399 -0
  30. package/dist/index.d.ts +1 -0
  31. package/dist/index.js +429 -430
  32. package/dist/ini-EhiBNPZF.js +68 -0
  33. package/dist/java-DPbnXhoY.js +221 -0
  34. package/dist/javascript-B1bShWIo.js +75 -0
  35. package/dist/jsonMode-COdOy9-_.js +1866 -0
  36. package/dist/julia-Bw7EYexg.js +496 -0
  37. package/dist/kotlin-BNXLDoV0.js +245 -0
  38. package/dist/less-DtuF_id_.js +168 -0
  39. package/dist/lexon-DpB0-37O.js +151 -0
  40. package/dist/liquid-BjXJHFpF.js +238 -0
  41. package/dist/lua-CzRNOk9S.js +157 -0
  42. package/dist/m3-pXPmDwal.js +210 -0
  43. package/dist/markdown-CeQ3rxjn.js +202 -0
  44. package/dist/mdx-XJRNLcdB.js +171 -0
  45. package/dist/mips-DyE0VSNz.js +194 -0
  46. package/dist/msdax-CbdkoqRa.js +377 -0
  47. package/dist/mysql-B86-uHNu.js +876 -0
  48. package/dist/objective-c-1xvkKPId.js +188 -0
  49. package/dist/pascal-DcyFhj80.js +245 -0
  50. package/dist/pascaligo-QnM0hvMG.js +158 -0
  51. package/dist/perl-Bqp3FbU4.js +599 -0
  52. package/dist/pgsql-HdG7BG_Z.js +847 -0
  53. package/dist/php-zf7L2p7t.js +471 -0
  54. package/dist/pla-3Ykqsyzl.js +131 -0
  55. package/dist/postiats-D1v08O4B.js +544 -0
  56. package/dist/powerquery-CiQ9b1-b.js +890 -0
  57. package/dist/powershell-DFNK6VaX.js +233 -0
  58. package/dist/protobuf-D5P2Z6tc.js +422 -0
  59. package/dist/pug-BeyMX5am.js +393 -0
  60. package/dist/python-CEuHuu7a.js +259 -0
  61. package/dist/qsharp-DcFOTjuP.js +282 -0
  62. package/dist/r-B3aJPcWp.js +245 -0
  63. package/dist/razor-ByG7kYAl.js +512 -0
  64. package/dist/redis-CyC__Tub.js +298 -0
  65. package/dist/redshift-NqbcQPcY.js +806 -0
  66. package/dist/restructuredtext-CZMxBkap.js +162 -0
  67. package/dist/ruby-C_jEtDv5.js +444 -0
  68. package/dist/rust-WAeitMCC.js +337 -0
  69. package/dist/sb-CSBm2pED.js +110 -0
  70. package/dist/scala-D76PhKmh.js +353 -0
  71. package/dist/scheme-CBSAjRuO.js +114 -0
  72. package/dist/scss-BHY8wFFg.js +244 -0
  73. package/dist/shell-Cwju9_l8.js +224 -0
  74. package/dist/solidity-BV1-nze3.js +1351 -0
  75. package/dist/sophia-DfoUlGAs.js +190 -0
  76. package/dist/sparql-4kfArTtK.js +193 -0
  77. package/dist/sql-DIpn0HSX.js +818 -0
  78. package/dist/st-BgJ_KDZh.js +415 -0
  79. package/dist/swift-D-ucEgIi.js +315 -0
  80. package/dist/systemverilog-DjkH5zuo.js +556 -0
  81. package/dist/tcl-gd8XLKJA.js +232 -0
  82. package/dist/tsMode-GtXif5Eu.js +810 -0
  83. package/dist/twig-D5XtTFGM.js +323 -0
  84. package/dist/typescript-FqIgT4Lb.js +328 -0
  85. package/dist/vb-DYqqYAf3.js +364 -0
  86. package/dist/wgsl-CkZE0qf3.js +420 -0
  87. package/dist/xml-BUcUe2Ft.js +95 -0
  88. package/dist/yaml-CFa20EYw.js +184 -0
  89. package/package.json +5 -4
  90. package/dist/@code-editor-Vbkor1r4.js +0 -18991
  91. package/dist/@common-rjsf-6UM_zh8b.js +0 -567
  92. package/dist/@framer-motion-DHY98qq3.js +0 -3437
  93. package/dist/@moment-C_WeV3Af.js +0 -2609
  94. package/dist/@monaco-editor-34kqzg3G.js +0 -70451
  95. package/dist/@react-dates-WNnwjI5S.js +0 -7708
  96. package/dist/@react-select-BbR996pa.js +0 -2636
  97. package/dist/@src-assets-images-DamVa6cS.js +0 -14
  98. package/dist/@vendor-RU8AW1bK.js +0 -20473
  99. package/dist/assets/@code-editor.css +0 -1
  100. package/dist/assets/@common-rjsf.css +0 -1
  101. package/dist/assets/@monaco-editor.css +0 -1
  102. package/dist/assets/@react-dates.css +0 -1
  103. package/dist/assets/@vendor.css +0 -1
@@ -0,0 +1,162 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
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
+ };
@@ -0,0 +1,444 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
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
+ };