diff --git a/include/mapnik/expression_grammar_x3_def.hpp b/include/mapnik/expression_grammar_x3_def.hpp index df89e877d..0be7fb483 100644 --- a/include/mapnik/expression_grammar_x3_def.hpp +++ b/include/mapnik/expression_grammar_x3_def.hpp @@ -348,7 +348,7 @@ namespace mapnik { namespace grammar { ('-' > multiplicative_expression[do_subt])); auto const feature_attr = lexeme['[' > +~char_(']') > ']']; - auto const global_attr = x3::rule {} = lexeme[lit('@') > alpha > *alnum]; + auto const global_attr = x3::rule {} = lexeme[lit('@') > char_("a-zA-Z_") > *char_("a-zA-Z0-9_")]; auto const regex_match_expression_def = lit(".match") > '(' > quoted_string > ')'; auto const regex_replace_expression_def = lit(".replace") > '(' > quoted_string > ',' > quoted_string > ')';