amn / csspring

A CSS parsing library
GNU General Public License v3.0
1 stars 0 forks source link

Parsing in `selectors` module broken for comma-separated repetition productions #6

Closed amn closed 1 month ago

amn commented 1 month ago

Parsing of CommaSeparatedRepetition class of productions is currently broken due to an issue in the parsing procedure which erroneously permits dangling ,-tokens for delimiter despite nothing following the latter. For example, "foo," is currently accepted by the procedure as a comma-separated repetition, which the former decidedly is not.

amn commented 1 month ago

Fixed with commit 9e4ce7b11379d59de5b8efe5db176dec094b5e56.