Skip to content

Commit 9aeadf4

Browse files
committed
Merge pull request #1211 from xzyfer/fix/issue-1208
Fix parsing of & selectors after comments
2 parents 442894b + 75877d0 commit 9aeadf4

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
@@ -636,7 +636,7 @@ namespace Sass {
636636
seq->media_block(last_media_block);
637637
seq->last_block(block_stack.back());
638638
bool sawsomething = false;
639-
if (lex< exactly<'&'> >()) {
639+
if (lex_css< exactly<'&'> >()) {
640640
// check if we have a parent selector on the root level block
641641
if (block_stack.back() && block_stack.back()->is_root()) {
642642
//error("Base-level rules cannot contain the parent-selector-referencing character '&'.", pstate);

0 commit comments

Comments
 (0)