diff --git a/include/mapnik/expression_grammar_x3.hpp b/include/mapnik/expression_grammar_x3.hpp index eabb30f16..5ba3bcb3d 100644 --- a/include/mapnik/expression_grammar_x3.hpp +++ b/include/mapnik/expression_grammar_x3.hpp @@ -59,6 +59,7 @@ namespace mapnik { namespace grammar { using x3::_attr; using x3::_val; using x3::no_skip; + using x3::lexeme; using x3::no_case; using x3::alpha; using x3::alnum; @@ -329,8 +330,8 @@ namespace mapnik { namespace grammar { | ('-' > multiplicative_expression[do_subt])); - auto const feature_attr = '[' > +~char_(']') > ']'; - auto const global_attr = x3::rule {} = lit('@') > alpha > *alnum; + auto const feature_attr = lexeme['[' > +~char_(']') > ']']; + auto const global_attr = x3::rule {} = lexeme[lit('@') > alpha > *alnum]; auto const regex_match_expression_def = lit(".match") > '(' > quoted_string > ')'; auto const regex_replace_expression_def = lit(".replace") > '(' > quoted_string > ',' > quoted_string > ')'; auto const multiplicative_expression_def = unary_expression [do_assign]