postcss-styl
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -13,2 +13,3 @@ "use strict" | ||
while (token && !token.value.trim()) { | ||
endIndex = token.range[1] - 1 | ||
token = cursor.next() | ||
@@ -19,12 +20,17 @@ } | ||
if (/^[^a-zA-Z0-9-"'([{]/u.test(token.value)) { | ||
endIndex = token.range[1] - 1 | ||
name = token.value.slice(1) | ||
identifier = token.value[0] | ||
} else { | ||
token = cursor.next() | ||
} else if (/^[a-zA-Z0-9-]/u.test(token.value)) { | ||
endIndex = token.range[1] - 1 | ||
name = token.value | ||
identifier = "" | ||
token = cursor.next() | ||
} else { | ||
name = "" | ||
identifier = "" | ||
} | ||
endIndex = token.range[1] - 1 | ||
const afterName = [] | ||
token = cursor.next() | ||
while (isSkipToken(token) && !isEndOfLineToken(token)) { | ||
@@ -46,3 +52,2 @@ afterName.push(token) | ||
if (token.type === "linebreak") { | ||
// between.push(token) | ||
endIndex = token.range[0] - 1 | ||
@@ -49,0 +54,0 @@ } else { |
{ | ||
"name": "postcss-styl", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"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
123021
3806