Whitespace in series #7

Closed
SimonSapin opened this Issue Apr 20, 2012 · 0 comments

Projects

None yet

1 participant

Collaborator

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

nth
  : 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
d405f89
@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