@@ -118,7 +118,7 @@ START_METRIC_SELECTOR
118118
119119%expect -unused ' BLANK' ' COMMENT' ' ERROR' ' SEMICOLON' ' SPACE' ' TIMES' ' OPEN_HIST' ' CLOSE_HIST'
120120%expect -unused ' OPERATORS_START' ' OPERATORS_END' ' AGGREGATORS_START' ' AGGREGATORS_END'
121- %expect -unused ' LIMITK ' ' LIMIT_RATIO ' ' KEYWORDS_START' ' KEYWORDS_END' ' PREPROCESSOR_START' ' PREPROCESSOR_END'
121+ %expect -unused ' KEYWORDS_START' ' KEYWORDS_END' ' PREPROCESSOR_START' ' PREPROCESSOR_END'
122122%expect -unused ' STEP' ' STARTSYMBOLS_START'
123123%expect -unused ' START_METRIC' ' START_SERIES_DESCRIPTION' ' START_EXPRESSION' ' START_METRIC_SELECTOR' ' STARTSYMBOLS_END'
124124%expect -unused ' SMOOTHED' ' ANCHORED'
@@ -572,6 +572,8 @@ metric_identifier -> Result<Token, String>:
572572 | STDVAR { lexeme_to_token($lexer , $1 ) }
573573 | SUM { lexeme_to_token($lexer , $1 ) }
574574 | TOPK { lexeme_to_token($lexer , $1 ) }
575+ | LIMITK { lexeme_to_token($lexer , $1 ) }
576+ | LIMIT_RATIO { lexeme_to_token($lexer , $1 ) }
575577 | WITHOUT { lexeme_to_token($lexer , $1 ) }
576578 | START { lexeme_to_token($lexer , $1 ) }
577579 | END { lexeme_to_token($lexer , $1 ) }
@@ -598,6 +600,8 @@ aggregate_op -> Result<Token, String>:
598600 | STDVAR { lexeme_to_token($lexer , $1 ) }
599601 | SUM { lexeme_to_token($lexer , $1 ) }
600602 | TOPK { lexeme_to_token($lexer , $1 ) }
603+ | LIMITK { lexeme_to_token($lexer , $1 ) }
604+ | LIMIT_RATIO { lexeme_to_token($lexer , $1 ) }
601605;
602606
603607// inside of grouping options label names can be recognized as keywords by the lexer.
@@ -630,6 +634,8 @@ maybe_label -> Result<Token, String>:
630634 | STDVAR { lexeme_to_token($lexer , $1 ) }
631635 | SUM { lexeme_to_token($lexer , $1 ) }
632636 | TOPK { lexeme_to_token($lexer , $1 ) }
637+ | LIMITK { lexeme_to_token($lexer , $1 ) }
638+ | LIMIT_RATIO { lexeme_to_token($lexer , $1 ) }
633639 | START { lexeme_to_token($lexer , $1 ) }
634640 | END { lexeme_to_token($lexer , $1 ) }
635641 | ATAN2 { lexeme_to_token($lexer , $1 ) }
0 commit comments