peggyjs / peggy

Peggy: Parser generator for JavaScript
https://peggyjs.org/
MIT License
926 stars 65 forks source link

Allow whitespace between plucked word and its pattern #513

Closed frostburn closed 3 months ago

frostburn commented 5 months ago

Works as expected:

Start = @pluck:'a'

Fails unexpectedly:

Start = @pluck: 'a'
Error parsing grammar
Error: Expected "!", "$", "&", "(", ".", character class, identifier, or literal but " " found.