Monaco: Fix `hexdigits` in monaco langs (#108153)

pull/108121/head^2
Sven Grossmann 5 days ago committed by GitHub
parent 10cbebf9c2
commit 2fcb86f031
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/grafana-prometheus/src/components/monaco-query-field/promql.ts
  2. 2
      public/app/plugins/datasource/grafana-pyroscope-datasource/pyroscopeql/pyroscopeql.ts
  3. 2
      public/app/plugins/datasource/parca/lang/lang.ts

@ -162,7 +162,7 @@ export const language = {
digits: /\d+(_+\d+)*/, digits: /\d+(_+\d+)*/,
octaldigits: /[0-7]+(_+[0-7]+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/,
binarydigits: /[0-1]+(_+[0-1]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/,
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, hexdigits: /[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/, integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
floatsuffix: /[fFlL]?/, floatsuffix: /[fFlL]?/,
// The main tokenizer for our languages // The main tokenizer for our languages

@ -31,7 +31,7 @@ export const language: languages.IMonarchLanguage = {
digits: /\d+(_+\d+)*/, digits: /\d+(_+\d+)*/,
octaldigits: /[0-7]+(_+[0-7]+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/,
binarydigits: /[0-1]+(_+[0-1]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/,
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, hexdigits: /[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/, integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
floatsuffix: /[fFlL]?/, floatsuffix: /[fFlL]?/,

@ -31,7 +31,7 @@ export const language: languages.IMonarchLanguage = {
digits: /\d+(_+\d+)*/, digits: /\d+(_+\d+)*/,
octaldigits: /[0-7]+(_+[0-7]+)*/, octaldigits: /[0-7]+(_+[0-7]+)*/,
binarydigits: /[0-1]+(_+[0-1]+)*/, binarydigits: /[0-1]+(_+[0-1]+)*/,
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/, hexdigits: /[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/, integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
floatsuffix: /[fFlL]?/, floatsuffix: /[fFlL]?/,

Loading…
Cancel
Save