Switch name quotes to single quotes

This commit is contained in:
Joscha 2020-12-13 21:55:24 +00:00
parent e4e5c801f3
commit 1547561fa5

View file

@ -42,7 +42,7 @@ pName :: Parser T.Text
pName = lexeme $ unquotedName <|> quotedName pName = lexeme $ unquotedName <|> quotedName
where where
unquotedName = takeWhile1P (Just "lowercase character") isLower unquotedName = takeWhile1P (Just "lowercase character") isLower
quotedName = fmap T.pack $ C.char '"' *> manyTill L.charLiteral (C.char '"') quotedName = fmap T.pack $ C.char '\'' *> manyTill L.charLiteral (C.char '\'')
pVarName :: Parser T.Text pVarName :: Parser T.Text
pVarName = lexeme $ takeWhile1P (Just "uppercase character") isUpper pVarName = lexeme $ takeWhile1P (Just "uppercase character") isUpper