@elastic/monaco-esql 1.0.1 → 1.0.2
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/lib/monarch.js +8 -9
- package/package.json +1 -1
package/lib/monarch.js
CHANGED
|
@@ -244,7 +244,6 @@ exports.monarchLanguage = {
|
|
|
244
244
|
"@options": { token: "keyword.option.$0" },
|
|
245
245
|
"@literals": { token: "keyword.literal.$0" },
|
|
246
246
|
"@functions": { token: "identifier.function.$0" },
|
|
247
|
-
"@delimiters": { token: "delimiter" },
|
|
248
247
|
"@namedOperators": { token: "keyword.operator.$0" },
|
|
249
248
|
"@default": "identifier",
|
|
250
249
|
},
|
|
@@ -253,6 +252,14 @@ exports.monarchLanguage = {
|
|
|
253
252
|
{ include: "@expression" },
|
|
254
253
|
{ include: "@processingCommand" },
|
|
255
254
|
[/\[|\(|\)|\]/, "@brackets"],
|
|
255
|
+
[
|
|
256
|
+
/[^\s]+/,
|
|
257
|
+
{
|
|
258
|
+
cases: {
|
|
259
|
+
"@delimiters": "delimiter",
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
],
|
|
256
263
|
],
|
|
257
264
|
// --------------------------------- Hidden channel: whitespace and comments
|
|
258
265
|
whitespace: [
|
|
@@ -308,8 +315,6 @@ exports.monarchLanguage = {
|
|
|
308
315
|
[/"/, "string", "@string"],
|
|
309
316
|
// Escaped column parts: nested.`escaped`.column
|
|
310
317
|
[/`/, "string", "@column_escape_part"],
|
|
311
|
-
// Source index pattern date-math expression: <logs-{now/d}>
|
|
312
|
-
[/</, "string", "@datemath_source"],
|
|
313
318
|
],
|
|
314
319
|
literal: [
|
|
315
320
|
{ include: "@number" },
|
|
@@ -350,11 +355,5 @@ exports.monarchLanguage = {
|
|
|
350
355
|
[/\\./, "string.escape.invalid"],
|
|
351
356
|
[/`/, "string", "@pop"],
|
|
352
357
|
],
|
|
353
|
-
datemath_source: [
|
|
354
|
-
[/[^>]+/, "string"],
|
|
355
|
-
[/@escapes/, "string.escape"],
|
|
356
|
-
[/\\./, "string.escape.invalid"],
|
|
357
|
-
[/>/, "string", "@pop"],
|
|
358
|
-
],
|
|
359
358
|
},
|
|
360
359
|
};
|