postcss-scss
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -0,1 +1,5 @@ | ||
## 0.1.8 | ||
* Fix interpolation-in-interpolation parsing. | ||
* Fix at-rule with interpolation parsing. | ||
## 0.1.7 | ||
@@ -2,0 +6,0 @@ * Fix inline comments with Windows new lines. |
@@ -25,3 +25,3 @@ 'use strict'; | ||
var RE_AT_END = /[ \n\t\r\f\{\(\)'"\\;/]/g; | ||
var RE_AT_END = /[ \n\t\r\f\{\(\)'"\\;/#]/g; | ||
var RE_NEW_LINE = /[\r\f\n]/g; | ||
@@ -207,5 +207,18 @@ var RE_WORD_END = /[ \n\t\r\f\(\)\{\}:;@!'"\\#]|\/(?=\*)/g; | ||
if (code === HASH && n === OPEN_CURLY) { | ||
next = css.indexOf('}', pos + 2); | ||
if (next === -1) unclosed('interpolation'); | ||
var deep = 1; | ||
next = pos; | ||
while (deep > 0) { | ||
next += 1; | ||
if (css.length <= next) unclosed('interpolation'); | ||
code = css.charCodeAt(next); | ||
n = css.charCodeAt(next + 1); | ||
if (code === CLOSE_CURLY) { | ||
deep -= 1; | ||
} else if (code === HASH && n === OPEN_CURLY) { | ||
deep += 1; | ||
} | ||
} | ||
content = css.slice(pos, next + 1); | ||
@@ -212,0 +225,0 @@ lines = content.split('\n'); |
{ | ||
"name": "postcss-scss", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "SCSS parser for PostCSS", | ||
@@ -17,13 +17,13 @@ "keywords": [ | ||
"dependencies": { | ||
"postcss": "^5.0.18" | ||
"postcss": "^5.0.21" | ||
}, | ||
"devDependencies": { | ||
"eslint-config-postcss": "2.0.0", | ||
"postcss-parser-tests": "5.0.6", | ||
"eslint-config-postcss": "2.0.2", | ||
"postcss-parser-tests": "5.0.7", | ||
"gulp-json-editor": "2.2.1", | ||
"babel-eslint": "5.0.0", | ||
"babel-eslint": "6.0.4", | ||
"gulp-eslint": "2.0.0", | ||
"gulp-babel": "6.1.2", | ||
"gulp-mocha": "2.2.0", | ||
"eslint": "2.2.0", | ||
"eslint": "2.10.0", | ||
"mocha": "2.4.5", | ||
@@ -34,7 +34,7 @@ "gulp": "3.9.1", | ||
"babel-plugin-precompile-charcodes": "1.0.0", | ||
"babel-plugin-add-module-exports": "0.1.2", | ||
"babel-plugin-add-module-exports": "0.2.1", | ||
"babel-preset-es2015-loose": "7.0.0", | ||
"babel-preset-stage-0": "6.5.0", | ||
"babel-preset-es2015": "6.6.0", | ||
"babel-core": "6.6.5" | ||
"babel-core": "6.8.0" | ||
}, | ||
@@ -41,0 +41,0 @@ "scripts": { |
@@ -52,3 +52,3 @@ # PostCSS SCSS Syntax [![Build Status][ci-img]][ci] | ||
Note that you don't need a special stringifier to handle the output; the default | ||
Note that you don’t need a special stringifier to handle the output; the default | ||
one will automatically convert single line comments into block comments. | ||
@@ -62,1 +62,6 @@ | ||
``` | ||
If you want Sass behaviour with removing inline comments, you can use | ||
[postcss-strip-inline-comments] plugin. | ||
[postcss-strip-inline-comments]: https://github.com/mummybot/postcss-strip-inline-comments |
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
20645
354
66
Updatedpostcss@^5.0.21