From b2c9a3605a5f9c5daa7180d42c1e3c45823d4674 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 27 Oct 2011 22:01:01 +0100 Subject: [PATCH] don't skip white space in attributes names --- include/mapnik/expression_grammar.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }