@elastic/monaco-esql 3.1.5 → 3.1.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 (2) hide show
  1. package/lib/monarch.js +3 -0
  2. package/package.json +1 -1
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" },
@@ -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.5",
3
+ "version": "3.1.6",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"