prometheus: another prometheus syntax highlight fix, #9212, #9167

This commit is contained in:
Torkel Ödegaard 2017-09-11 16:36:53 +02:00
parent b1580bf385
commit e5f84484eb

View File

@ -65,13 +65,13 @@ var PrometheusHighlightRules = function() {
regex : "\\s+" regex : "\\s+"
} ], } ],
"start-label-matcher" : [ { "start-label-matcher" : [ {
token : "label.name", token : "keyword",
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 : "text", token : "string",
regex : '"[^"]*"|\'[^\']*\'' regex : '"[^"]*"|\'[^\']*\''
}, { }, {
token : "punctuation.operator", token : "punctuation.operator",