From 1d750ad2f9a7cc7e99a9fce61ba6728ba31f308d Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Thu, 8 Feb 2018 00:54:33 +0000 Subject: [PATCH] Accept - as a valid source URL. --- 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 ff3d480..34d56a5 100644 --- a/src/scraplang/parse.cpp +++ b/src/scraplang/parse.cpp @@ -87,7 +87,7 @@ namespace duck { namespace sl { start = *eol >> (from_block | apply_block | mustache_block) % +eol >> *eol >> eoi; 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; mustache_like_token = "{{" >> identifier >> "}}"; quoted_string %= lexeme['"' >> +(char_ - '"') >> '"'];