Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit af133f6

Browse files
author
Aaron Leung
committed
Fixing up parsing of uri schemes. Until the next bug report.
1 parent 71267b9 commit af133f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

document_parser.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,11 +870,13 @@ namespace Sass {
870870
result << parse_string();
871871
result.should_eval() = true;
872872
}
873-
else if (lex< url_schema >()) {
873+
else if (peek< sequence< url_schema, spaces_and_comments, exactly<')'> > >()) {
874+
lex< url_schema >();
874875
result << Document::make_from_token(context, lexed, path, line).parse_url_schema();
875876
result.should_eval() = true;
876877
}
877-
else if (lex< url_value >()) {
878+
else if (peek< sequence< url_value, spaces_and_comments, exactly<')'> > >()) {
879+
lex< url_value >();
878880
result << context.new_Node(Node::identifier, path, line, lexed);
879881
}
880882
else {
@@ -887,7 +889,6 @@ namespace Sass {
887889
result << content_node;
888890
position = rparen;
889891
}
890-
cerr << "HEY" << endl;
891892
if (!lex< exactly<')'> >()) throw_syntax_error("URI is missing ')'");
892893
return result;
893894
}

0 commit comments

Comments
 (0)