To reproduce:
@compPrefix: ~'hi';
.@{compPrefix}{
color:red;
&:not(.@{compPrefix}-one, .@{compPrefix}-two){
color:blue
}
}
@compPrefix: ~'hi';
.@{compPrefix}{
color:red;
&:not(&-one, &-two){
color:blue
}
}
Current behavior:
ParseError: Missing closing ')' in /Users/lar/work/isv/theme_static/test.less on line 4, column 26:
3 color:red;
4 &:not(.@{compPrefix}-one, .@{compPrefix}-two){
5 color:blue
Expected behavior:
Output like this;
.hi {
color: red;
}
.hi:not(.hi-one, .hi-two){
color: blue;
}
Environment information:
less version: 4.1.2
nodejs version: 16.14.0
operating system: macos