mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixed promql and loggging syntax so all punctuation chars are treated the same, remove hover move
This commit is contained in:
parent
47523f80dd
commit
1fddb6144d
@ -18,6 +18,7 @@ const tokenizer = {
|
|||||||
greedy: true,
|
greedy: true,
|
||||||
alias: 'attr-value',
|
alias: 'attr-value',
|
||||||
},
|
},
|
||||||
|
punctuation: /[{]/,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// number: /\b-?\d+((\.\d*)?([eE][+-]?\d+)?)?\b/,
|
// number: /\b-?\d+((\.\d*)?([eE][+-]?\d+)?)?\b/,
|
||||||
|
@ -386,9 +386,10 @@ const tokenizer = {
|
|||||||
lookbehind: true,
|
lookbehind: true,
|
||||||
inside: {
|
inside: {
|
||||||
'label-key': {
|
'label-key': {
|
||||||
pattern: /[^,\s][^,]*[^,\s]*/,
|
pattern: /[^(),\s][^,)]*[^),\s]*/,
|
||||||
alias: 'attr-name',
|
alias: 'attr-name',
|
||||||
},
|
},
|
||||||
|
punctuation: /[()]/,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'context-labels': {
|
'context-labels': {
|
||||||
@ -403,6 +404,7 @@ const tokenizer = {
|
|||||||
greedy: true,
|
greedy: true,
|
||||||
alias: 'attr-value',
|
alias: 'attr-value',
|
||||||
},
|
},
|
||||||
|
punctuation: /[{]/,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
function: new RegExp(`\\b(?:${FUNCTIONS.map(f => f.label).join('|')})(?=\\s*\\()`, 'i'),
|
function: new RegExp(`\\b(?:${FUNCTIONS.map(f => f.label).join('|')})(?=\\s*\\()`, 'i'),
|
||||||
|
@ -36,10 +36,6 @@
|
|||||||
transition: all 0.1s linear;
|
transition: all 0.1s linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
.explore-panel__header:hover {
|
|
||||||
transform: translateY(-1px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.explore-panel__header-label {
|
.explore-panel__header-label {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
margin-right: $panel-margin;
|
margin-right: $panel-margin;
|
||||||
|
Loading…
Reference in New Issue
Block a user