postcss-scss
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -8,7 +8,7 @@ let { Comment } = require('postcss') | ||
class ScssParser extends Parser { | ||
createTokenizer () { | ||
createTokenizer() { | ||
this.tokenizer = scssTokenizer(this.input) | ||
} | ||
rule (tokens) { | ||
rule(tokens) { | ||
let withColon = false | ||
@@ -58,4 +58,12 @@ let brackets = 0 | ||
} | ||
node.source.start = { line: tokens[0][2], column: tokens[0][3] } | ||
if (tokens[0][2]) { | ||
let pos = this.input.fromOffset(tokens[0][2]) | ||
node.source.start = { | ||
offset: tokens[0][2], | ||
line: pos.line, | ||
column: pos.col | ||
} | ||
} | ||
node.prop = '' | ||
@@ -133,3 +141,3 @@ while (tokens.length) { | ||
comment (token) { | ||
comment(token) { | ||
if (token[4] === 'inline') { | ||
@@ -160,3 +168,3 @@ let node = new Comment() | ||
raw (node, prop, tokens) { | ||
raw(node, prop, tokens) { | ||
super.raw(node, prop, tokens) | ||
@@ -163,0 +171,0 @@ if (node.raws[prop]) { |
{ | ||
"name": "postcss-scss", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "SCSS parser for PostCSS", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
19390
527