File tree Expand file tree Collapse file tree 5 files changed +26
-0
lines changed Expand file tree Collapse file tree 5 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ class functionCaller {
3232 if ( item . type === 'Expression' ) {
3333 const subNodes = item . value . filter ( commentFilter ) ;
3434 if ( subNodes . length === 1 ) {
35+ // https://github.com/less/less.js/issues/3616
36+ if ( item . parens && subNodes [ 0 ] . op === '/' ) {
37+ return item ;
38+ }
3539 return subNodes [ 0 ] ;
3640 } else {
3741 return new Expression ( subNodes ) ;
Original file line number Diff line number Diff line change 1+ .parens-issues-3616 {
2+ bar : 888 / 444 ;
3+ bar2 : 2 ;
4+ bar3 : 2 ;
5+ }
16.parens {
27 border : 2px solid black;
38 margin : 1px 3px 16 3 ;
Original file line number Diff line number Diff line change 1+ .parens-issues-3616 {
2+ bar : 888 / 444 ;
3+ bar2 : 2 ;
4+ bar3 : 2 ;
5+ }
16.parens {
27 border : 2px solid black;
38 margin : 1px 3px 16 3 ;
Original file line number Diff line number Diff line change 1+ .parens-issues-3616 {
2+ bar: if(false, 666 , 888 / 444 );
3+ bar2: if(false, 666 , (666 / 333 ));
4+ bar3: if(false, 666 , ((444 / 222 )));
5+ }
6+
17.parens {
28 @var : 1px ;
39 border : (@var * 2 ) solid black ;
Original file line number Diff line number Diff line change 1+ .parens-issues-3616 {
2+ bar: if(false, 666 , 888 / 444 );
3+ bar2: if(false, 666 , (666 / 333 ));
4+ bar3: if(false, 666 , ((444 / 222 )));
5+ }
6+
17.parens {
28 @var : 1px ;
39 border : (@var * 2 ) solid black ;
You can’t perform that action at this time.
0 commit comments