postcss-styl
Advanced tools
Comparing version 0.5.4 to 0.5.5
"use strict" | ||
const { tokensToRaws } = require("./token-utils") | ||
const { tokensToRaws, isSkipToken } = require("./token-utils") | ||
@@ -76,12 +76,10 @@ module.exports = (sourceCode, selectorLocations) => { | ||
linebreak = false | ||
} else if (token.type === "linebreak" && cursor.scopeLevel === 0) { | ||
} else if ( | ||
token.type === "linebreak" && | ||
cursor.scopeLevel === 0 && | ||
selector.some(t => !isSkipToken(t)) | ||
) { | ||
selector.push(token) | ||
linebreak = true | ||
} else if ( | ||
linebreak && | ||
token.type !== "whitespace" && | ||
token.type !== "linebreak" && | ||
token.type !== "comment" && | ||
token.type !== "inline-comment" | ||
) { | ||
} else if (linebreak && !isSkipToken(token)) { | ||
selectors.push(selector) | ||
@@ -88,0 +86,0 @@ selector = [] |
{ | ||
"name": "postcss-styl", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "PostCSS parser plugin for converting Stylus syntax to PostCSS AST.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
118757
3614