aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman2016-03-09 16:47:28 -0800
committerAndrew Waterman2016-03-09 16:47:28 -0800
commitb7a7afb09456e64eb8eb0a92409a6d2a14cc5f73 (patch)
tree2b0b9ce0c5f4e49093f63929a97235e657f7e589
parent479891fe17fe6bfe4f4f0b8235b979403f9c58cf (diff)
parentd1d95d464d7ce68e02e0d5b55886a4038f088a76 (diff)
Merge pull request #88 from davidbiancolin/grammar_strlit_fix
Fix StringLit to ignore escaped double quotes
-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 00a4c5de..d1aa2c44 100644
--- a/src/main/antlr4/FIRRTL.g4
+++ b/src/main/antlr4/FIRRTL.g4
@@ -237,7 +237,7 @@ HexDigit
;
StringLit
- : '"' .*? '"'
+ : '"' ('\\"'|.)*? '"'
;