Open st-cheewah opened 1 year ago
I'm going back through some of the instaparse issues I missed, and came across your feature request. I'd be happy to extend the default auto-whitespace parsers, but I'm not totally clear on how your idea differs from the built-in :auto-whitespace :comma
option. Can you provide some example inputs and outputs that show your desired behavior? Thanks for the suggestion.
:auto-whitespace
feature is awesome and I will like to propose we use (abuse?) the,
marker in ebnf to optionally apply its logic, i.e. add support for something like the followings::auto-whitespace-on-comma
-> insert whitespace detector if,
exists between tokens:auto-whitespace-on-no-comma
-> insert whitespace detector if,
doesn't exist between tokens