parser
parser copied to clipboard
Prevent infinite recursion in LanguageKit.whitespace when allowTabs=True
Fixes issue #29
tabParser uses Parser.ignore with a count of zeroOrMore, which means it can never fail!
This results in a non-terminating recursion in whitespaceHelp.
Switching to oneOrMore ensures that tabParser fails on non-tab characters and still succeeds on tabs as expected.