don't skip white space in attributes names

This commit is contained in:
Artem Pavlenko 2011-10-27 22:01:01 +01:00
parent 9c5e988098
commit cfe071fbc4

View file

@ -223,11 +223,13 @@ struct expression_grammar : qi::grammar<Iterator, expr_node(), space_type>
| '(' >> expr [_val = _1 ] >> ')' | '(' >> expr [_val = _1 ] >> ')'
; ;
attr %= '[' >> +(char_ - ']') >> ']';
#if BOOST_VERSION > 104200 #if BOOST_VERSION > 104200
ustring %= '\'' >> no_skip[*~char_('\'')] >> '\''; ustring %= '\'' >> no_skip[*~char_('\'')] >> '\'';
attr %= '[' >> no_skip[+~char_(']')] >> ']';
#else #else
ustring %= '\'' >> lexeme[*(char_-'\'')] >> '\''; ustring %= '\'' >> lexeme[*(char_-'\'')] >> '\'';
attr %= '[' >> lexeme[+(char_ - ']')] >> ']';
#endif #endif
} }