postcss-values-parser
Advanced tools
Comparing version
@@ -172,6 +172,12 @@ 'use strict'; | ||
// if ((!this.current.nodes.length || (this.current.last && this.current.last.type === 'operator')) && this.nextToken[0] === 'word') { | ||
if (this.nextToken[0] === 'word') { | ||
return this.word(); | ||
if (!this.options.loose) { | ||
if (this.nextToken[0] === 'word') { | ||
return this.word(); | ||
} | ||
} | ||
else { | ||
if ((!this.current.nodes.length || (this.current.last && this.current.last.type === 'operator')) && this.nextToken[0] === 'word') { | ||
return this.word(); | ||
} | ||
} | ||
} | ||
@@ -178,0 +184,0 @@ |
{ | ||
"name": "postcss-values-parser", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A CSS property value parser for use with PostCSS", | ||
@@ -41,4 +41,4 @@ "main": "lib/index.js", | ||
"gulp-eslint": "^3.0.1", | ||
"gulp-mocha": "^3.0.1" | ||
"gulp-mocha": "^4.0.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# postcss-values-parser | ||
# postcss-values-parser [](https://travis-ci.org/lesshint/postcss-values-parser) | ||
@@ -7,7 +7,13 @@ <img align="right" width="95" height="95" | ||
[](https://travis-ci.org/lesshint/postcss-values-parser) | ||
A CSS property value parser for use with [PostCSS](https://github.com/postcss/postcss), | ||
following the same node, container, and traversal patterns as PostCSS. | ||
## | ||
<p align="center"> | ||
<b>:rocket: Are you ready to tackle ES6 and hone your JavaScript Skills?</b> :rocket:<br/> | ||
Check out these outstanding <a href="https://es6.io/">ES6 courses</a> by <a href="https://github.com/wesbos">@wesbos</a> | ||
</p> | ||
--- | ||
As with PostCSS and postcss-selector-parser, this parser generates an | ||
@@ -14,0 +20,0 @@ [Abstract Syntax Tree](https://en.wikipedia.org/wiki/Abstract_syntax_tree), |
51492
2.92%26
8.33%1278
0.47%92
6.98%