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

Commit c31d145

Browse files
committed
Fix url parsing (force explicit parsing)
Otherwise we would skip `//` comments! Fixes #1298
1 parent 7f8e9c9 commit c31d145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ namespace Sass {
393393
Expression* the_url = parse_string();
394394
*args << new (ctx.mem) Argument(the_url->pstate(), the_url);
395395
}
396-
else if (lex < uri_value >(position != 0)) { // chunk seems to work too!
396+
else if (lex < uri_value >(false)) { // don't skip comments
397397
String* the_url = parse_interpolated_chunk(lexed);
398398
*args << new (ctx.mem) Argument(the_url->pstate(), the_url);
399399
}

0 commit comments

Comments
 (0)