@elastic/monaco-esql 3.1.5 → 3.1.7
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 +4 -1
- package/package.json +21 -21
package/lib/monarch.js
CHANGED
|
@@ -25,6 +25,7 @@ const create = (deps = {}) => {
|
|
|
25
25
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
26
26
|
digits: /\d+(_+\d+)*/,
|
|
27
27
|
symbols: /[=><!~:&|+\-*\/\^%\.,]+/,
|
|
28
|
+
columnIdentifier: /[a-zA-Z0-9_\*\-]+/,
|
|
28
29
|
brackets: [
|
|
29
30
|
{ open: "[", close: "]", token: "delimiter.square" },
|
|
30
31
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
@@ -36,7 +37,7 @@ const create = (deps = {}) => {
|
|
|
36
37
|
{ include: "@whitespace" },
|
|
37
38
|
// Keywords
|
|
38
39
|
[
|
|
39
|
-
/@?[a-zA-Z_$][\w$]*(?![\.\-:])/,
|
|
40
|
+
/@?[a-zA-Z_$][\w$]*(?![\.\-:a-zA-Z_0-9])/,
|
|
40
41
|
{
|
|
41
42
|
cases: {
|
|
42
43
|
"@sourceCommands": { token: "keyword.command.source.$0" },
|
|
@@ -115,6 +116,8 @@ const create = (deps = {}) => {
|
|
|
115
116
|
expression: [
|
|
116
117
|
{ include: "@whitespace" },
|
|
117
118
|
{ include: "@literal" },
|
|
119
|
+
// Basic ES|QL columns (fields), e.g.: "field", "nested.field", etc.
|
|
120
|
+
[/(@columnIdentifier)(\.(@columnIdentifier))*/, "identifier.column"],
|
|
118
121
|
// Inline casts: 1.3::INTEGER
|
|
119
122
|
[/::\w+\b/, "type"],
|
|
120
123
|
// strings
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/monaco-esql",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -48,26 +48,26 @@
|
|
|
48
48
|
"monaco-editor": "*"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@biomejs/biome": "
|
|
52
|
-
"@chromatic-com/storybook": "
|
|
53
|
-
"@monaco-editor/react": "
|
|
54
|
-
"@storybook/addon-essentials": "^8.6.
|
|
55
|
-
"@storybook/addon-onboarding": "
|
|
56
|
-
"@storybook/blocks": "^8.6.
|
|
57
|
-
"@storybook/experimental-addon-test": "^8.6.
|
|
58
|
-
"@storybook/react": "
|
|
59
|
-
"@storybook/react-vite": "
|
|
60
|
-
"@storybook/test": "^8.6.
|
|
61
|
-
"@types/react": "
|
|
62
|
-
"@vitest/browser": "
|
|
63
|
-
"@vitest/coverage-v8": "
|
|
64
|
-
"monaco-editor": "
|
|
65
|
-
"playwright": "
|
|
66
|
-
"react": "
|
|
67
|
-
"react-dom": "
|
|
68
|
-
"storybook": "
|
|
69
|
-
"typescript": "
|
|
70
|
-
"vitest": "
|
|
51
|
+
"@biomejs/biome": "2.1.4",
|
|
52
|
+
"@chromatic-com/storybook": "3",
|
|
53
|
+
"@monaco-editor/react": "4.7.0",
|
|
54
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
55
|
+
"@storybook/addon-onboarding": "8",
|
|
56
|
+
"@storybook/blocks": "^8.6.14",
|
|
57
|
+
"@storybook/experimental-addon-test": "^8.6.14",
|
|
58
|
+
"@storybook/react": "8",
|
|
59
|
+
"@storybook/react-vite": "8",
|
|
60
|
+
"@storybook/test": "^8.6.14",
|
|
61
|
+
"@types/react": "19.1.10",
|
|
62
|
+
"@vitest/browser": "3.2.4",
|
|
63
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
64
|
+
"monaco-editor": "0.52.2",
|
|
65
|
+
"playwright": "1.54.2",
|
|
66
|
+
"react": "19.1.1",
|
|
67
|
+
"react-dom": "19.1.1",
|
|
68
|
+
"storybook": "8",
|
|
69
|
+
"typescript": "5.9.2",
|
|
70
|
+
"vitest": "3.2.4"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {}
|
|
73
73
|
}
|