Accept - as a valid source URL.
This commit is contained in:
parent
76f403b3ce
commit
1d750ad2f9
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ namespace duck { namespace sl {
|
||||||
|
|
||||||
start = *eol >> (from_block | apply_block | mustache_block) % +eol >> *eol >> eoi;
|
start = *eol >> (from_block | apply_block | mustache_block) % +eol >> *eol >> eoi;
|
||||||
from_block = lit("from") >> source_info >> +eol >> assignment_list >> +eol >> "end";
|
from_block = lit("from") >> source_info >> +eol >> assignment_list >> +eol >> "end";
|
||||||
source_info = (url >> 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_ - '"') >> '"'];
|
||||||
|
|
Loading…
Reference in a new issue