From 51f8f4a5e868a8e655091e3e61445d3cd772d2ba Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Tue, 28 Feb 2017 00:50:11 -0800 Subject: Fix bug in Lexer rule for DoubleLit and add tests --- src/main/antlr4/FIRRTL.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4 index 47802cd6..69b7ba5d 100644 --- a/src/main/antlr4/FIRRTL.g4 +++ b/src/main/antlr4/FIRRTL.g4 @@ -300,7 +300,7 @@ HexLit ; DoubleLit - : ( '+' | '-' )? Digit+ '.' Digit+ ( 'E' Digit+ )? + : ( '+' | '-' )? Digit+ '.' Digit+ ( 'E' ( '+' | '-' )? Digit+ )? ; fragment -- cgit v1.2.3