Skip to content

Commit

Permalink
Require parens after mixin call
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-dean committed Jul 29, 2020
1 parent 3d555a6 commit 67ce103
Show file tree
Hide file tree
Showing 24 changed files with 56 additions and 9,030 deletions.
6 changes: 3 additions & 3 deletions packages/less/src/less/parser/parser.js
Expand Up @@ -908,9 +908,9 @@ const Parser = function Parser(context, imports, fileInfo) {
return;
}

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

Expand Down

0 comments on commit 67ce103

Please sign in to comment.