There is a built-in whitespace()
parser in PetitParserDart, which checks character in:
(9 <= value && value <= 13) || (value == 32) || (value == 160)
|| (value == 5760) || (value == 6158) || (8192 <= value && value <= 8202) || (value == 8232)
|| (value == 8233) || (value == 8239) || (value == 8287) || (value == 12288)
Now I want a custom whitespace parser that is a whitespace()
parser, but not accept line separator \n
.
How to do that, I don't want to copy and modify the code inside whitespace()
. Is there a better way to do this?