vscode-css-languageservice 6.2.11 → 6.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/data/webCustomData.js +576 -375
- package/lib/esm/parser/lessParser.js +6 -4
- package/lib/umd/data/webCustomData.js +576 -375
- package/lib/umd/parser/lessParser.js +6 -4
- package/package.json +7 -7
|
@@ -643,7 +643,6 @@ export class LESSParser extends cssParser.Parser {
|
|
|
643
643
|
}
|
|
644
644
|
const node = this.create(nodes.LessGuard);
|
|
645
645
|
this.consumeToken(); // when
|
|
646
|
-
node.isNegated = this.acceptIdent('not');
|
|
647
646
|
if (!node.getConditions().addChild(this._parseGuardCondition())) {
|
|
648
647
|
return this.finish(node, ParseError.ConditionExpected);
|
|
649
648
|
}
|
|
@@ -655,11 +654,14 @@ export class LESSParser extends cssParser.Parser {
|
|
|
655
654
|
return this.finish(node);
|
|
656
655
|
}
|
|
657
656
|
_parseGuardCondition() {
|
|
658
|
-
|
|
657
|
+
const node = this.create(nodes.GuardCondition);
|
|
658
|
+
node.isNegated = this.acceptIdent('not');
|
|
659
|
+
if (!this.accept(TokenType.ParenthesisL)) {
|
|
660
|
+
if (node.isNegated) {
|
|
661
|
+
return this.finish(node, ParseError.LeftParenthesisExpected);
|
|
662
|
+
}
|
|
659
663
|
return null;
|
|
660
664
|
}
|
|
661
|
-
const node = this.create(nodes.GuardCondition);
|
|
662
|
-
this.consumeToken(); // ParenthesisL
|
|
663
665
|
if (!node.addChild(this._parseExpr())) {
|
|
664
666
|
// empty (?)
|
|
665
667
|
}
|