Skip to content

Commit fab75d0

Browse files
committed
If include has some content in it
fix eslint errors
1 parent 45cad5a commit fab75d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

parser.es6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,14 @@ class SassParser {
474474
}
475475

476476
include (node, parent) {
477+
// if include has content than call this.atrule
478+
for (const contentNode of node.content) {
479+
if (contentNode.type === 'block') {
480+
this.atrule(node, parent)
481+
return
482+
}
483+
}
484+
477485
// Loop to find the deepest ruleset node
478486
this.raws.multiRuleProp = ''
479487

0 commit comments

Comments
 (0)