Accept - as a valid source URL.

This commit is contained in:
King_DuckZ 2018-02-08 00:54:33 +00:00
parent 76f403b3ce
commit 1d750ad2f9

View file

@ -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_ - '"') >> '"'];