-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(issue:4331) and keyword treated as function #4332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
* Fixes issue where and keyword was being treated as a function call. * Adds definition for size function call.
Looks like there are CI issues (may be resolved by #4322):
|
What change made it be treated like a function? |
The addition of e = entities.declarationCall.bind(this)() || entities.keyword() || entities.variable() || entities.mixinLookup(); #4237 was potentially relying on a weak regex: validCall = parserInput.$re(/^[\w]+\(/); though instead of fiddling with a regex in this PR we now check the function registry to sure what we are looking at is a function, otherwise we can later try to parse as keyword. |
@puckowski Seems like I'm getting Playwright errors even after merging the other one 🤔 |
I pulled latest to get CI changes from #4333 and pushed again. CI is good now. I suspect any old PRs running into this issue will have to pull latest master and repush or rebase. I suspect old |
What do you think about merging this PR? I'd like to get this fix out the door soon to resolve the regression. Subsequent PRs can improve the solution. |
What:
Fix for issue #4331
The
and
keyword was being treated as a function call starting Less4.2.1
which introduced selector generation problems.Why:
The following Less:
would fail to insert a space after
and
Keyword
like it did in Less4.2.0
. This would cause selector issues in the resulting CSS.I simultaneously had to add a function definition for
size
to avoid regressions with container queries when fixing thisand
issue.Checklist:
Workaround: Ensure a space is present after
and
in the source Less.