oga/spec
Yorick Peterse e3de65a258 Lex whitespace preceding CSS axes separately.
Previously input such as "x > y" would result in the following token sequences:

    T_IDENT, T_CHILD, T_IDENT

This commit changes this to the following:

    T_IDENT, T_SPACE, T_CHILD, T_IDENT

This allows the parser to use T_SPACE as a terminal token, this in turn prevents
around 16 shift/reduce conflicts from arising.

This does mean that input such as " > y" or " x > y" is now invalid. This
however can be solved by simply _not_ adding leading/trailing whitespace to CSS
queries.
2014-10-21 23:18:46 +02:00
..
oga Lex whitespace preceding CSS axes separately. 2014-10-21 23:18:46 +02:00
support First step at rewriting the CSS parser. 2014-10-20 00:30:16 +02:00
spec_helper.rb Cleaned up XPath specs using a shared example. 2014-07-15 09:34:11 +02:00