diff --git a/include/mapnik/expression_grammar.hpp b/include/mapnik/expression_grammar.hpp index 8f91aaf52..469a24a09 100644 --- a/include/mapnik/expression_grammar.hpp +++ b/include/mapnik/expression_grammar.hpp @@ -223,11 +223,13 @@ struct expression_grammar : qi::grammar | '(' >> expr [_val = _1 ] >> ')' ; - attr %= '[' >> +(char_ - ']') >> ']'; + #if BOOST_VERSION > 104200 ustring %= '\'' >> no_skip[*~char_('\'')] >> '\''; + attr %= '[' >> no_skip[+~char_(']')] >> ']'; #else ustring %= '\'' >> lexeme[*(char_-'\'')] >> '\''; + attr %= '[' >> lexeme[+(char_ - ']')] >> ']'; #endif }