@devtron-labs/devtron-fe-common-lib 0.0.82-beta-4 → 0.0.82-beta-6

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 (115) hide show
  1. package/dist/Common/CodeEditor/CodeEditor.d.ts +44 -1
  2. package/dist/Common/Common.service.d.ts +1 -6
  3. package/dist/Common/Constants.d.ts +2 -10
  4. package/dist/Common/ErrorPage.d.ts +1 -1
  5. package/dist/Common/Helper.d.ts +1 -0
  6. package/dist/Common/Hooks/index.d.ts +1 -0
  7. package/dist/Common/Hooks/useStateFilters/index.d.ts +2 -0
  8. package/dist/Common/Hooks/useStateFilters/types.d.ts +6 -0
  9. package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +17 -0
  10. package/dist/Common/Types.d.ts +76 -17
  11. package/dist/Common/index.d.ts +0 -1
  12. package/dist/Pages/index.d.ts +0 -1
  13. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
  14. package/dist/Shared/Components/APIResponseHandler/types.d.ts +7 -2
  15. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  16. package/dist/Shared/Components/Header/types.d.ts +7 -9
  17. package/dist/Shared/Helpers.d.ts +3 -2
  18. package/dist/Shared/types.d.ts +0 -12
  19. package/dist/Shared/validations.d.ts +0 -1
  20. package/dist/assets/index.css +1 -1
  21. package/dist/index.js +20867 -324
  22. package/package.json +4 -4
  23. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +0 -36
  24. package/dist/Common/CodeEditor/index.d.ts +0 -2
  25. package/dist/Common/CodeEditor/types.d.ts +0 -86
  26. package/dist/Pages/ResourceBrowser/Helper.d.ts +0 -3
  27. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +0 -20
  28. package/dist/Pages/ResourceBrowser/index.d.ts +0 -2
  29. package/dist/abap-5361cc9f.js +0 -1314
  30. package/dist/apex-f9413e6f.js +0 -315
  31. package/dist/assets/editor.worker-60ba9509.js +0 -12
  32. package/dist/assets/yaml.worker-cc1a551a.js +0 -471
  33. package/dist/azcli-36f2cb5e.js +0 -74
  34. package/dist/bat-6b05202d.js +0 -95
  35. package/dist/bicep-788415e3.js +0 -108
  36. package/dist/cameligo-4e85ec93.js +0 -168
  37. package/dist/clojure-40fa5799.js +0 -754
  38. package/dist/coffee-f557f5e0.js +0 -228
  39. package/dist/cpp-ebbf7759.js +0 -390
  40. package/dist/csharp-1616f566.js +0 -320
  41. package/dist/csp-5f0bc3c4.js +0 -57
  42. package/dist/css-2b1aec9b.js +0 -186
  43. package/dist/cssMode-8a600c5b.js +0 -1446
  44. package/dist/cypher-b12b4ba8.js +0 -262
  45. package/dist/dart-e0d70030.js +0 -270
  46. package/dist/dockerfile-f9d4b2b0.js +0 -132
  47. package/dist/ecl-5b91fdec.js +0 -454
  48. package/dist/elixir-deffd5a6.js +0 -489
  49. package/dist/flow9-84cd00d7.js +0 -141
  50. package/dist/freemarker2-60c395cd.js +0 -643
  51. package/dist/fsharp-d296151f.js +0 -210
  52. package/dist/go-7e72ff3b.js +0 -208
  53. package/dist/graphql-a93568a1.js +0 -141
  54. package/dist/handlebars-568f0889.js +0 -391
  55. package/dist/hcl-b3994d8f.js +0 -177
  56. package/dist/html-87e582fb.js +0 -281
  57. package/dist/htmlMode-01b5ce2f.js +0 -1456
  58. package/dist/index-acaa9ba9.js +0 -128948
  59. package/dist/ini-df84509a.js +0 -68
  60. package/dist/java-fba3d046.js +0 -221
  61. package/dist/javascript-aa227f90.js +0 -75
  62. package/dist/jsonMode-e32a9b16.js +0 -1867
  63. package/dist/julia-cefd45f6.js +0 -496
  64. package/dist/kotlin-b87b6942.js +0 -245
  65. package/dist/less-8a7f37bc.js +0 -168
  66. package/dist/lexon-cb95cd13.js +0 -151
  67. package/dist/liquid-07058c2d.js +0 -238
  68. package/dist/lua-6d5b3ea4.js +0 -157
  69. package/dist/m3-d0daf5d0.js +0 -210
  70. package/dist/markdown-48bb0c6f.js +0 -202
  71. package/dist/mdx-fbabfc29.js +0 -171
  72. package/dist/mips-20dcf886.js +0 -194
  73. package/dist/msdax-e9759e23.js +0 -377
  74. package/dist/mysql-95f335b2.js +0 -876
  75. package/dist/objective-c-ad0cfb47.js +0 -188
  76. package/dist/pascal-eda19dc3.js +0 -245
  77. package/dist/pascaligo-b7e0c89b.js +0 -158
  78. package/dist/perl-bbe5d32a.js +0 -599
  79. package/dist/pgsql-7ebaee1c.js +0 -847
  80. package/dist/php-2526756d.js +0 -471
  81. package/dist/pla-9ebd6f68.js +0 -131
  82. package/dist/postiats-9ac05cf6.js +0 -544
  83. package/dist/powerquery-1cae399d.js +0 -890
  84. package/dist/powershell-093b5b87.js +0 -233
  85. package/dist/protobuf-37993cbc.js +0 -422
  86. package/dist/pug-c2a5db5f.js +0 -393
  87. package/dist/python-149edaae.js +0 -259
  88. package/dist/qsharp-1450aac5.js +0 -282
  89. package/dist/r-a0642b90.js +0 -245
  90. package/dist/razor-e47457e6.js +0 -512
  91. package/dist/redis-405cb63d.js +0 -298
  92. package/dist/redshift-830f82de.js +0 -806
  93. package/dist/restructuredtext-d81f5ef4.js +0 -162
  94. package/dist/ruby-d607b87e.js +0 -444
  95. package/dist/rust-86e74dbb.js +0 -337
  96. package/dist/sb-b7e5010d.js +0 -110
  97. package/dist/scala-a4d4a3c6.js +0 -353
  98. package/dist/scheme-81927e94.js +0 -114
  99. package/dist/scss-3f112fcd.js +0 -244
  100. package/dist/shell-d795bcaa.js +0 -224
  101. package/dist/solidity-5b556d3e.js +0 -1351
  102. package/dist/sophia-1da55998.js +0 -190
  103. package/dist/sparql-ac34318e.js +0 -193
  104. package/dist/sql-eef6393b.js +0 -818
  105. package/dist/st-758b1972.js +0 -415
  106. package/dist/swift-63cb1847.js +0 -315
  107. package/dist/systemverilog-2538c608.js +0 -556
  108. package/dist/tcl-53e6282a.js +0 -232
  109. package/dist/tsMode-84ef2c9a.js +0 -811
  110. package/dist/twig-80c3dc23.js +0 -323
  111. package/dist/typescript-030f68fd.js +0 -328
  112. package/dist/vb-32089525.js +0 -364
  113. package/dist/wgsl-e681d5a0.js +0 -420
  114. package/dist/xml-5811dc34.js +0 -95
  115. package/dist/yaml-e1a6e74e.js +0 -184
@@ -1,162 +0,0 @@
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
- };
@@ -1,444 +0,0 @@
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
- };