Skip to content

Commit a973e2f

Browse files
committed
Ignore linefeed before scope opener { token
1 parent 0ae11a4 commit a973e2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/parser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ namespace Sass {
5353

5454
bool Parser::peek_newline(const char* start)
5555
{
56-
return peek_linefeed(start ? start : position);
56+
return peek_linefeed(start ? start : position)
57+
&& ! peek_css<exactly<'{'>>(start);
5758
}
5859

5960
Parser Parser::from_token(Token t, Context& ctx, ParserState pstate)

0 commit comments

Comments
 (0)