Allow dots in scraplang identifiers.

This commit is contained in:
King_DuckZ 2018-01-16 10:42:25 +00:00
parent 3572803f66
commit 26b912d66c

View file

@ -94,7 +94,7 @@ namespace duck { namespace sl {
xpath_assignment %= identifier >>
-(lit("default") >> '(' >> quoted_string >> ')') >> "=" >>
as_string[lexeme[+(graph | char_(" \t"))]];
identifier %= lexeme[(alpha | char_('_')) >> *(alnum | char_('_'))];
identifier %= lexeme[(alpha | char_('_')) >> *(-char_('.') >> +(alnum | char_('_')))];
apply_block = lit("apply") >> mustache_like_token >> "to" >> source_info >> +eol >>
assignment_list >> +eol >> "end";