aboutsummaryrefslogtreecommitdiff
path: root/src/main/antlr4
diff options
context:
space:
mode:
authorRichard Lin2018-06-11 15:05:36 -0700
committerJack Koenig2018-06-11 15:05:36 -0700
commitf0beb8e9efb57dc4aef08103426bd28cf8445147 (patch)
tree138ea0d62e9bea6601ca2e9ce99f7e1051e643b3 /src/main/antlr4
parent535d8025412a64471d8cc9c315505a8e2cbddbe0 (diff)
Allow escaped single quotes in RawParams (#820)
Escape raw params using \'
Diffstat (limited to 'src/main/antlr4')
-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 f360229a..cc5d0a16 100644
--- a/src/main/antlr4/FIRRTL.g4
+++ b/src/main/antlr4/FIRRTL.g4
@@ -324,7 +324,7 @@ RawString
fragment
UnquotedString
- : ('\\"'|~[\r\n])+?
+ : ( '\\\'' | '\\"' | ~[\r\n] )+?
;
FileInfo