Skip to content

Commit 7f58761

Browse files
committed
Update sass2scss to latest master
1 parent bee270f commit 7f58761

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

include/sass2scss.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#ifndef SASS2SCSS_VERSION
3838
// Hardcode once the file is copied from
3939
// https://github.com/mgreter/sass2scss
40-
#define SASS2SCSS_VERSION "1.0.5"
40+
#define SASS2SCSS_VERSION "1.0.6"
4141
#endif
4242

4343
// add namespace for c++

src/sass2scss.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,13 @@ namespace Sass
528528
// reset converter state
529529
converter.selector = false;
530530

531+
// looks like some undocumented behavior ...
532+
// https://github.com/mgreter/sass2scss/issues/29
533+
if (sass.substr(pos_left, 1) == "\\") {
534+
converter.selector = true;
535+
sass[pos_left] = ' ';
536+
}
537+
531538
// check if we have sass property syntax
532539
if (sass.substr(pos_left, 1) == ":" && sass.substr(pos_left, 2) != "::")
533540
{

0 commit comments

Comments
 (0)