reset string accumulator

This commit is contained in:
Ilya Rezvov
2018-01-18 22:43:27 -08:00
parent d6395b490e
commit 07c55cea4d
+1
View File
@@ -156,6 +156,7 @@ endStringLiteral (pos, _, _inp, _) _len = do
alexSetStartCode defaultStartCode
setLexerStringFlag False
str <- LBSUtf8.fromString . reverse <$> getLexerStringValue
setLexerStringValue ""
return $ Lexeme pos $ TStringLit str
tokenStr :: (LBS.ByteString -> Token) -> AlexAction Lexeme