From e5f84484eb1210d835c06f4f60229abc3b05d9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 11 Sep 2017 16:36:53 +0200 Subject: [PATCH] prometheus: another prometheus syntax highlight fix, #9212, #9167 --- public/app/core/components/code_editor/mode-prometheus.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/core/components/code_editor/mode-prometheus.js b/public/app/core/components/code_editor/mode-prometheus.js index 182b4d65ed9..78edbbd30d1 100644 --- a/public/app/core/components/code_editor/mode-prometheus.js +++ b/public/app/core/components/code_editor/mode-prometheus.js @@ -65,13 +65,13 @@ var PrometheusHighlightRules = function() { regex : "\\s+" } ], "start-label-matcher" : [ { - token : "label.name", + token : "keyword", regex : '[a-zA-Z_][a-zA-Z0-9_]*' }, { token : "keyword.operator", - regex : '=|!=|=~|!~' + regex : '=~|=|!~|!=' }, { - token : "text", + token : "string", regex : '"[^"]*"|\'[^\']*\'' }, { token : "punctuation.operator",