mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #9555 from mtanda/prometheus_46_improve_minor_fix
(prometheus) minor fix of auto complete
This commit is contained in:
commit
e8141b48d2
@ -46,7 +46,7 @@ var PrometheusHighlightRules = function() {
|
|||||||
regex : "[a-zA-Z_:][a-zA-Z0-9_:]*"
|
regex : "[a-zA-Z_:][a-zA-Z0-9_:]*"
|
||||||
}, {
|
}, {
|
||||||
token : "keyword.operator",
|
token : "keyword.operator",
|
||||||
regex : "\\+|\\-|\\*|\\/|%|\\^|=|==|!=|<=|>=|<|>|=\\~|!\\~"
|
regex : "\\+|\\-|\\*|\\/|%|\\^|==|!=|<=|>=|<|>"
|
||||||
}, {
|
}, {
|
||||||
token : "paren.lparen",
|
token : "paren.lparen",
|
||||||
regex : "[[(]"
|
regex : "[[(]"
|
||||||
@ -75,8 +75,7 @@ var PrometheusHighlightRules = function() {
|
|||||||
regex : '"[^"]*"|\'[^\']*\''
|
regex : '"[^"]*"|\'[^\']*\''
|
||||||
}, {
|
}, {
|
||||||
token : "punctuation.operator",
|
token : "punctuation.operator",
|
||||||
regex : ",",
|
regex : ","
|
||||||
push : 'start-label-matcher'
|
|
||||||
}, {
|
}, {
|
||||||
token : "paren.rparen",
|
token : "paren.rparen",
|
||||||
regex : "}",
|
regex : "}",
|
||||||
@ -112,11 +111,6 @@ var keyWordsCompletions = prometheusKeyWords.map(function(word) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var prometheusFunctions = [
|
var prometheusFunctions = [
|
||||||
{
|
|
||||||
name: 'abs()', value: 'abs',
|
|
||||||
def: 'abs(v instant-vector)',
|
|
||||||
docText: 'Returns the input vector with all sample values converted to their absolute value.'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'abs()', value: 'abs',
|
name: 'abs()', value: 'abs',
|
||||||
def: 'abs(v instant-vector)',
|
def: 'abs(v instant-vector)',
|
||||||
|
Loading…
Reference in New Issue
Block a user