Closed JeffreyBenjaminBrown closed 7 years ago
Solved. I was using Megaparsec.Char.symbol
to parse the # operator, and symbol
is a lexeme, so it had already consumed any trailing space before looking for the label that might follow the #. (The # operator by itself is not a lexeme; only the combination of having looked for that and then looked for the trailing label should be treated as a lexeme.)
So I switched to Megaparsec.Char.string.
Currently, to parse an empty joint, I can use
#()
. I would like to be able to use#
alone (surrounded by non-word characters).