19 lines
343 B
JavaScript
19 lines
343 B
JavaScript
function isSCSSNestedPropertyNode(node, options) {
|
|
if (options.parser !== "scss") {
|
|
return false;
|
|
}
|
|
|
|
/* c8 ignore next 3 */
|
|
if (!node.selector) {
|
|
return false;
|
|
}
|
|
|
|
return node.selector
|
|
.replace(/\/\*.*?\*\//u, "")
|
|
.replace(/\/\/.*\n/u, "")
|
|
.trim()
|
|
.endsWith(":");
|
|
}
|
|
|
|
export default isSCSSNestedPropertyNode;
|