Skip to content

Commit

Permalink
Merge pull request sass#1478 from mgreter/bugfix/newline-before-scope
Browse files Browse the repository at this point in the history
Ignore linefeed before scope opener `{` token
  • Loading branch information
xzyfer committed Aug 24, 2015
2 parents a448024 + a973e2f commit d67f8da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ namespace Sass {

bool Parser::peek_newline(const char* start)
{
return peek_linefeed(start ? start : position);
return peek_linefeed(start ? start : position)
&& ! peek_css<exactly<'{'>>(start);
}

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

0 comments on commit d67f8da

Please sign in to comment.