From 5de2dfbe70630cfafd9787dbb632c1d9f98ea497 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Tue, 18 Feb 2020 11:53:04 +0100 Subject: [PATCH] Allow empty default string values --- src/scraplang/scrapgrammar.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scraplang/scrapgrammar.hpp b/src/scraplang/scrapgrammar.hpp index 3259123..7a03ca1 100644 --- a/src/scraplang/scrapgrammar.hpp +++ b/src/scraplang/scrapgrammar.hpp @@ -45,7 +45,7 @@ namespace duck::sl { source_info = ((url | string("-")) >> attr(SourceInfo::URL)) | (mustache_like_token >> attr(SourceInfo::Token)); url = -(+alpha >> string("://")) >> alpha >> *graph; mustache_like_token = "{{" >> identifier >> "}}"; - quoted_string %= lexeme['"' >> +(char_ - '"') >> '"']; + quoted_string %= lexeme['"' >> *(char_ - '"') >> '"']; xpath_assignment %= identifier >> -(lit("default") >> '(' >> quoted_string >> ')') >> "=" >> as_string[lexeme[+(graph | char_(" \t"))]];