fix(issue:4331) and keyword treated as function#4332
fix(issue:4331) and keyword treated as function#4332puckowski wants to merge 2 commits intoless:masterfrom
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
andkeyword was being treated as a function call starting Less4.2.1which introduced selector generation problems.Why:
The following Less:
would fail to insert a space after
andKeywordlike it did in Less4.2.0. This would cause selector issues in the resulting CSS.I simultaneously had to add a function definition for
sizeto avoid regressions with container queries when fixing thisandissue.Checklist:
Workaround: Ensure a space is present after
andin the source Less.