浏览代码

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

Torkel Ödegaard 8 年之前
父节点
当前提交
e5f84484eb
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      public/app/core/components/code_editor/mode-prometheus.js

+ 3 - 3
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",