vscode-css-languageservice
Advanced tools
Comparing version 2.1.10 to 2.1.11
@@ -217,9 +217,18 @@ var __extends = (this && this.__extends) || (function () { | ||
// CSS Guards | ||
var mark = this.mark(); | ||
var node = this.create(nodes.Selector); | ||
if (node.addChild(this._parseSimpleSelector()) && node.addChild(this._parseGuard())) { | ||
return this.finish(node); | ||
var hasContent = false; | ||
if (isNested) { | ||
// nested selectors can start with a combinator | ||
hasContent = node.addChild(this._parseCombinator()); | ||
} | ||
this.restoreAtMark(mark); | ||
return _super.prototype._parseSelector.call(this, isNested); | ||
while (node.addChild(this._parseSimpleSelector())) { | ||
hasContent = true; | ||
var mark = this.mark(); | ||
if (node.addChild(this._parseGuard()) && this.peek(cssScanner_1.TokenType.CurlyL)) { | ||
break; | ||
} | ||
this.restoreAtMark(mark); | ||
node.addChild(this._parseCombinator()); // optional | ||
} | ||
return hasContent ? this.finish(node) : null; | ||
}; | ||
@@ -226,0 +235,0 @@ LESSParser.prototype._parseSelectorCombinator = function () { |
{ | ||
"name": "vscode-css-languageservice", | ||
"version": "2.1.10", | ||
"version": "2.1.11", | ||
"description": "Language service for CSS, LESS and SCSS", | ||
@@ -5,0 +5,0 @@ "main": "./lib/cssLanguageService.js", |
798193
20970