fix: ignore empty character literals

This commit is contained in:
Sebastian Ullrich 2022-12-08 13:51:11 +01:00 committed by Gabriel Ebner
parent f3f4eba945
commit 9c9cc017df

View file

@ -786,7 +786,7 @@ private def tokenFnAux : ParserFn := fun c s =>
let curr := input.get i
if curr == '\"' then
strLitFnAux i c (s.next input i)
else if curr == '\'' then
else if curr == '\'' && getNext input i != '\'' then
charLitFnAux i c (s.next input i)
else if curr.isDigit then
numberFnAux c s