Skip to content

Commit

Permalink
Fixed missing semicolons after @extend
Browse files Browse the repository at this point in the history
  • Loading branch information
Anantachai Saothong (Manta) committed Apr 25, 2017
1 parent d282255 commit 416e718
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions edge/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,9 @@ function format(content, options) {
}
outputBuffer.append(' ')
outputBuffer.append(inputNode.selectors.map(node => travel(inputNode, node, indentLevel, true)).join(comma))
if (options.insertSemicolons) {
outputBuffer.append(';')
}
outputBuffer.append(options.newLineChar)

} else if (inputNode instanceof stylus.nodes.Atrule) {
Expand Down
6 changes: 3 additions & 3 deletions spec/extend/output.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ $boo {
}

.foo {
@extend .class1
@extend .class2, .class3, .class4 !optional
@extend $boo
@extend .class1;
@extend .class2, .class3, .class4 !optional;
@extend $boo;

color: white;
}

0 comments on commit 416e718

Please sign in to comment.