Allow empty default string values
This commit is contained in:
parent
d97cf03a34
commit
5de2dfbe70
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ namespace duck::sl {
|
||||||
source_info = ((url | string("-")) >> attr(SourceInfo::URL)) | (mustache_like_token >> attr(SourceInfo::Token));
|
source_info = ((url | string("-")) >> attr(SourceInfo::URL)) | (mustache_like_token >> attr(SourceInfo::Token));
|
||||||
url = -(+alpha >> string("://")) >> alpha >> *graph;
|
url = -(+alpha >> string("://")) >> alpha >> *graph;
|
||||||
mustache_like_token = "{{" >> identifier >> "}}";
|
mustache_like_token = "{{" >> identifier >> "}}";
|
||||||
quoted_string %= lexeme['"' >> +(char_ - '"') >> '"'];
|
quoted_string %= lexeme['"' >> *(char_ - '"') >> '"'];
|
||||||
xpath_assignment %= identifier >>
|
xpath_assignment %= identifier >>
|
||||||
-(lit("default") >> '(' >> quoted_string >> ')') >> "=" >>
|
-(lit("default") >> '(' >> quoted_string >> ')') >> "=" >>
|
||||||
as_string[lexeme[+(graph | char_(" \t"))]];
|
as_string[lexeme[+(graph | char_(" \t"))]];
|
||||||
|
|
Loading…
Add table
Reference in a new issue