aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorJack Koenig2017-02-28 00:50:11 -0800
committerJack Koenig2017-03-01 18:01:28 -0600
commit51f8f4a5e868a8e655091e3e61445d3cd772d2ba (patch)
treeea48ec6acbd9828770494d8489e34b03ef590f09 /src/main
parente8a8fd794cbddaaaa1dbdb1fdb10b8bb46c06ffe (diff)
Fix bug in Lexer rule for DoubleLit and add tests
Diffstat (limited to 'src/main')
-rw-r--r--src/main/antlr4/FIRRTL.g42
1 files changed, 1 insertions, 1 deletions
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