don't skip white space in attributes names
This commit is contained in:
parent
d1401b9e07
commit
14ab337363
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue