File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ namespace Sass
385
385
// looks like there were no inner properties
386
386
if (converter.selector ) scss += " {}" ;
387
387
// add final semicolon
388
- else scss += " ;" ;
388
+ else if (!converter. semicolon ) scss += " ;" ;
389
389
}
390
390
}
391
391
@@ -580,6 +580,7 @@ namespace Sass
580
580
581
581
// check if next line should be concatenated (list mode)
582
582
converter.comma = IS_PARSING (converter) && close == " ," ;
583
+ converter.semicolon = IS_PARSING (converter) && close == " ;" ;
583
584
584
585
// check if we have more than
585
586
// one meaningfull char
@@ -620,6 +621,8 @@ namespace Sass
620
621
// initialise all options
621
622
converter.comma = false ;
622
623
converter.property = false ;
624
+ converter.selector = false ;
625
+ converter.semicolon = false ;
623
626
converter.end_of_file = false ;
624
627
converter.comment = " " ;
625
628
converter.whitespace = " " ;
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ namespace Sass
38
38
bool comma;
39
39
// has property
40
40
bool property;
41
+ // has semicolon
42
+ bool semicolon;
41
43
// comment context
42
44
string comment;
43
45
// flag end of file
You can’t perform that action at this time.
0 commit comments