Skip to content

Commit

Permalink
fix: browser prefixes as second property parsed as word in loose (she…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Bosak committed Feb 17, 2018
1 parent b9814b8 commit 211984e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/parser.js
Expand Up @@ -174,15 +174,8 @@ module.exports = class Parser {
}
}

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();
}
if (this.nextToken[0] === 'word') {
return this.word();
}
}

Expand Down

0 comments on commit 211984e

Please sign in to comment.