From 26b912d66cf1ac07d568c60c9cca33efc635e270 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Tue, 16 Jan 2018 10:42:25 +0000 Subject: [PATCH] Allow dots in scraplang identifiers. --- src/scraplang/parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scraplang/parse.cpp b/src/scraplang/parse.cpp index 4298274..ff3d480 100644 --- a/src/scraplang/parse.cpp +++ b/src/scraplang/parse.cpp @@ -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";