mirror of https://github.com/prometheus/prometheus
Browse Source
The current separation between lexer and parser is a bit fuzzy when it comes to operators, aggregators and other keywords. The lexer already tries to determine the type of a token, even though that type might change depending on the context. This led to the problematic behavior that no tokens known to the lexer could be used as label names, including operators (and, by, ...), aggregators (count, quantile, ...) or other keywords (for, offset, ...). This change additionally checks whether an identifier is one of these types. We might want to check whether the specific item identification should be moved from the lexer to the parser.pull/1958/head
Tobias Schmidt
8 years ago
3 changed files with 35 additions and 1 deletions
Loading…
Reference in new issue