postcss-styl
Advanced tools
Comparing version 0.11.0 to 0.11.1
"use strict" | ||
const { tokensToRaws, isSkipToken } = require("./token-utils") | ||
const { findLastIndex, findIndex } = require("./util") | ||
const { findLastIndex } = require("./util") | ||
@@ -26,3 +26,3 @@ module.exports = (sourceCode, end, opt = {}) => { | ||
: after | ||
if (options.bodyStartIndex != null || options.maxIndent != null) { | ||
if (options.maxIndent != null) { | ||
// Process for | ||
@@ -32,19 +32,4 @@ // | .a | ||
// | // comment | ||
let maxIndent = options.maxIndent | ||
if (maxIndent == null) { | ||
const firstTokenIndex = findIndex( | ||
sourceCode.text, | ||
(c) => c.trim(), | ||
options.bodyStartIndex, | ||
) | ||
if (firstTokenIndex >= 0) { | ||
// Comments beyond the indentation of the first token are child node comments. | ||
maxIndent = sourceCode.getIndentFromIndex(firstTokenIndex) | ||
} | ||
} | ||
if (maxIndent != null) { | ||
afterTokens = processComment(sourceCode, afterTokens, maxIndent) | ||
} | ||
const maxIndent = options.maxIndent | ||
afterTokens = processComment(sourceCode, afterTokens, maxIndent) | ||
} | ||
@@ -51,0 +36,0 @@ |
{ | ||
"name": "postcss-styl", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "PostCSS parser plugin for converting Stylus syntax to PostCSS AST.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
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
146441
4430