Whitespace in series #7

SimonSapin opened this Issue Apr 20, 2012 · 0 comments


None yet

1 participant


The grammar for series (like 2n+1, as accepted by :nth-child() and friends) is

  : S* [ ['-'|'+']? INTEGER? {N} [ S* ['-'|'+'] S* INTEGER ]? |
         ['-'|'+']? INTEGER | {O}{D}{D} | {E}{V}{E}{N} ] S*

Currently, any whitespace will be rejected by the parser, as it expects a single token followed by )

@SimonSapin SimonSapin added a commit that referenced this issue Jun 14, 2012
@SimonSapin SimonSapin Add tests for series with whitespace
Together with the previous 2 commits, this fixes #2 and #7
@SimonSapin SimonSapin closed this Jun 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment