Skip to content

Commit

Permalink
fix string/char parser with spaces involved
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorTaelin committed Oct 20, 2024
1 parent 9a7b578 commit 0173609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kind/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,13 @@ parseTxtChr = P.choice
]

parseTxt = withSrc $ do
char_skp '"'
char_end '"'
txt <- P.many parseTxtChr
char_end '"'
return $ Txt txt

parseChr = withSrc $ do
char_skp '\''
char_end '\''
chr <- parseTxtChr
char_end '\''
return $ Num (fromIntegral $ ord chr)
Expand Down

0 comments on commit 0173609

Please sign in to comment.