mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ace: fix braces highlight in prometheus (#9212)
This commit is contained in:
committed by
Torkel Ödegaard
parent
293daf2ca1
commit
b1580bf385
@@ -68,17 +68,17 @@ var PrometheusHighlightRules = function() {
|
||||
token : "label.name",
|
||||
regex : '[a-zA-Z_][a-zA-Z0-9_]*'
|
||||
}, {
|
||||
token : "label.matching_operator",
|
||||
token : "keyword.operator",
|
||||
regex : '=|!=|=~|!~'
|
||||
}, {
|
||||
token : "label.value",
|
||||
token : "text",
|
||||
regex : '"[^"]*"|\'[^\']*\''
|
||||
}, {
|
||||
token : "label.matching_delimiter",
|
||||
token : "punctuation.operator",
|
||||
regex : ",",
|
||||
push : 'start-label-matcher'
|
||||
}, {
|
||||
token : "label.matching_end",
|
||||
token : "paren.rparen",
|
||||
regex : "}",
|
||||
next : "start"
|
||||
} ]
|
||||
|
||||
Reference in New Issue
Block a user