Skip to content

Commit

Permalink
Fix url parsing (force explicit parsing)
Browse files Browse the repository at this point in the history
Otherwise we would skip `//` comments!
Fixes sass#1298
  • Loading branch information
mgreter committed Jul 14, 2015
1 parent 1c419d7 commit 5ceffd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ namespace Sass {
Expression* the_url = parse_string();
*args << new (ctx.mem) Argument(the_url->pstate(), the_url);
}
else if (lex < uri_value >(position != 0)) { // chunk seems to work too!
else if (lex < uri_value >(false)) { // don't skip comments
String* the_url = parse_interpolated_chunk(lexed);
*args << new (ctx.mem) Argument(the_url->pstate(), the_url);
}
Expand Down

0 comments on commit 5ceffd7

Please sign in to comment.