Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
rename statement and digit with a more appropriate name
Browse files Browse the repository at this point in the history
Signed-off-by: Augustin Husson <[email protected]>
  • Loading branch information
Nexucis committed May 3, 2021
1 parent 56609cd commit afdf29e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/promql.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ SubqueryExpr {
}

UnaryExpr {
!mul UnaryOp~statement Expr
!mul UnaryOp~signed Expr
}

UnaryOp {
Expand Down Expand Up @@ -247,7 +247,7 @@ AtModifierPreprocessors {
}

NumberLiteral {
("-"|"+")?~statement (digit | inf | nan)
("-"|"+")?~signed (number | inf | nan)
}

@skip { whitespace | LineComment }
Expand All @@ -256,7 +256,7 @@ NumberLiteral {
whitespace { std.whitespace+ }
LineComment { "#" ![\n]* }

digit {
number {
(std.digit+ ("." std.digit*)? | "." std.digit+) (("e" | "E") ("+" | "-")? std.digit+)? |
"0x" (std.digit | $[a-fA-F])+
}
Expand Down

0 comments on commit afdf29e

Please sign in to comment.