Skip to content

Commit

Permalink
Fix special behavior when line starts with a backslash
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
mgreter committed Apr 17, 2016
1 parent ff1b819 commit 7a06596
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sass2scss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,13 @@ namespace Sass
// reset converter state
converter.selector = false;

// looks like some undocumented behavior ...
// https://github.com/mgreter/sass2scss/issues/29
if (sass.substr(pos_left, 1) == "\\") {
converter.selector = true;
sass[pos_left] = ' ';
}

// check if we have sass property syntax
if (sass.substr(pos_left, 1) == ":" && sass.substr(pos_left, 2) != "::")
{
Expand Down

0 comments on commit 7a06596

Please sign in to comment.