diff --git a/grammar/src/lexical.grm b/grammar/src/lexical.grm index 4194b344265..6040e291aee 100644 --- a/grammar/src/lexical.grm +++ b/grammar/src/lexical.grm @@ -7,7 +7,9 @@ Digit : ["0".."9"]; IntegerLiteral - : Digit (Digit | "_")* + : Digit + : Digit (Digit | "_")* Digit + ; FloatLiteral : ; @@ -17,7 +19,9 @@ HexDigit : Digit | ["A".."F", "a".."f"]; HexadecimalLiteral - : "0x" HexDigit (HexDigit | "_")*; + : "0x" HexDigit + : "0x" HexDigit (HexDigit | "_")* HexDigit + ; CharacterLiteral : ; @@ -136,4 +140,4 @@ internal protected catch finally -*/ \ No newline at end of file +*/