Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 7c24672

Browse files
committed
Parse whitespace following string literals.
1 parent 41a31d1 commit 7c24672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

semantic-core/src/Data/Core/Parser.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ lit = let x `given` n = x <$ reserved n in choice
109109
, Core.bool False `given` "#false"
110110
, Core.unit `given` "#unit"
111111
, record
112-
, between (string "\"") (string "\"") (Core.string . fromString <$> many (escape <|> (noneOf "\"" <?> "non-escaped character")))
112+
, token (between (string "\"") (string "\"") (Core.string . fromString <$> many (escape <|> (noneOf "\"" <?> "non-escaped character"))))
113113
] <?> "literal"
114114
where escape = char '\\' *> choice
115115
[ '"' <$ string "\""

0 commit comments

Comments
 (0)