postcss-less
Advanced tools
@@ -0,1 +1,3 @@ | ||
| /* eslint-disable no-param-reassign */ | ||
| const tokenizer = require('postcss/lib/tokenize'); | ||
@@ -34,3 +36,2 @@ const Input = require('postcss/lib/input'); | ||
| last = token; | ||
| // eslint-disable-next-line no-param-reassign | ||
| token = this.tokenizer.nextToken({ ignoreUnclosed: true }); | ||
@@ -43,5 +44,17 @@ } | ||
| return true; | ||
| } else if (token[1] === '/') { | ||
| // issue #135 | ||
| const next = this.tokenizer.nextToken({ ignoreUnclosed: true }); | ||
| if (next[0] === 'comment' && /^\/\*/.test(next[1])) { | ||
| next[0] = 'word'; | ||
| next[1] = next[1].slice(1); | ||
| token[1] = '//'; | ||
| this.tokenizer.back(next); | ||
| return module.exports.isInlineComment.bind(this)(token); | ||
| } | ||
| } | ||
| return false; | ||
| } | ||
| }; |
+1
-1
| { | ||
| "name": "postcss-less", | ||
| "version": "3.1.3", | ||
| "version": "3.1.4", | ||
| "description": "LESS parser for PostCSS", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
19258
1.95%359
2.87%