Files
test-repo/src/language-css/utilities/is-scss-nested-property-node.js
T
2025-12-01 07:25:25 +08:00

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;