parser icon indicating copy to clipboard operation
parser copied to clipboard

Prevent infinite recursion in LanguageKit.whitespace when allowTabs=True

Open brian-carroll opened this issue 8 years ago • 0 comments

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.

brian-carroll avatar Nov 25 '17 12:11 brian-carroll