mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
prometheus editor: variable autocomplete support (PR #9988)
* prometheus ace editor, template variable support * minor fix * support [[var]] notation * don't remove last ] if token type is string * Revert "don't remove last ] if token type is string" This reverts commitbce5b2d56e. * Revert "support [[var]] notation" This reverts commit10012f8ffe. * fix token type and regex
This commit is contained in:
committed by
Alexander Zobnin
parent
eef01e3703
commit
c6fa0b90a7
@@ -50,6 +50,9 @@ var PrometheusHighlightRules = function() {
|
||||
token : "keyword.control",
|
||||
regex : "by|without|on|ignoring|group_left|group_right",
|
||||
next : "start-label-list-matcher"
|
||||
}, {
|
||||
token : "variable",
|
||||
regex : "\\$[A-Za-z0-9_]+"
|
||||
}, {
|
||||
token : keywordMapper,
|
||||
regex : "[a-zA-Z_:][a-zA-Z0-9_:]*"
|
||||
|
||||
Reference in New Issue
Block a user