Skip to content

Commit 67ce103

Browse files
committed
Require parens after mixin call
1 parent 3d555a6 commit 67ce103

24 files changed

+56
-9030
lines changed

packages/less/src/less/parser/parser.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -908,9 +908,9 @@ const Parser = function Parser(context, imports, fileInfo) {
908908
return;
909909
}
910910

911-
if (inValue && !lookups && !hasParens) {
912-
// This isn't a valid in-value mixin call
913-
parserInput.restore();
911+
if (!lookups && !hasParens) {
912+
// This isn't a valid mixin call
913+
parserInput.restore('Unrecognized input. Possibly missing \'(\' in mixin call.');
914914
return;
915915
}
916916

0 commit comments

Comments
 (0)