瀏覽代碼

remove label match operator from keyword.operator

Mitsuhiro Tanda 8 年之前
父節點
當前提交
8580b78ce6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/plugins/datasource/prometheus/mode-prometheus.js

+ 1 - 1
public/app/plugins/datasource/prometheus/mode-prometheus.js

@@ -46,7 +46,7 @@ var PrometheusHighlightRules = function() {
       regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
     }, {
       token : "keyword.operator",
-      regex : "\\+|\\-|\\*|\\/|%|\\^|=|==|!=|<=|>=|<|>|=\\~|!\\~"
+      regex : "\\+|\\-|\\*|\\/|%|\\^|=|==|!=|<=|>=|<|>"
     }, {
       token : "paren.lparen",
       regex : "[[(]"