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