diff options
| author | chick | 2016-09-23 16:40:08 -0700 |
|---|---|---|
| committer | Donggyu Kim | 2016-09-25 14:39:44 -0700 |
| commit | 1f168585c80d5c96e41353d6275d99b34b967b23 (patch) | |
| tree | 44eee3d8e94cf41e2bd5094cff99ed58441cc7f4 /src/main/scala/firrtl/StringLit.scala | |
| parent | 16286528ad957a7d62a9c1b18bd6335a3102ea5b (diff) | |
remove unnecessary blocks
example 1 s"${x}"
example 2 case blah => { ??? }
Diffstat (limited to 'src/main/scala/firrtl/StringLit.scala')
| -rw-r--r-- | src/main/scala/firrtl/StringLit.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/StringLit.scala b/src/main/scala/firrtl/StringLit.scala index b34fc498..fd282177 100644 --- a/src/main/scala/firrtl/StringLit.scala +++ b/src/main/scala/firrtl/StringLit.scala @@ -79,11 +79,10 @@ trait StringLitHandler { // TODO Finalize supported escapes, implement hex2Bytes //case 0x78 => (4, hex2Bytes(in.slice(2, 3)))) // hex escape //case 0x75 => (6, hex2Bytes(in.slice(2, 5))) // unicode excape - case e => { // error - val msg = s"Invalid escape character ${e.toChar}! " + + case e => // error + val msg = s"Invalid escape character ${e.toChar}! " + "Valid characters [nt'\"\\]" throw new InvalidEscapeCharException(msg) - } } unescape(in.drop(n), out ++ bytes) // consume n } else { |
