File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ fn scan_right(
510
510
return consume_by_precedence;
511
511
}
512
512
match expr {
513
- Expr :: Assign ( e) => {
513
+ Expr :: Assign ( e) if e . attrs . is_empty ( ) => {
514
514
if match fixup. next_operator {
515
515
Precedence :: Unambiguous => fail_offset >= 2 ,
516
516
_ => bailout_offset >= 1 ,
@@ -536,7 +536,7 @@ fn scan_right(
536
536
Scan :: Bailout
537
537
}
538
538
}
539
- Expr :: Binary ( e) => {
539
+ Expr :: Binary ( e) if e . attrs . is_empty ( ) => {
540
540
if match fixup. next_operator {
541
541
Precedence :: Unambiguous => {
542
542
fail_offset >= 2
@@ -732,8 +732,10 @@ fn scan_right(
732
732
}
733
733
}
734
734
Expr :: Array ( _)
735
+ | Expr :: Assign ( _)
735
736
| Expr :: Async ( _)
736
737
| Expr :: Await ( _)
738
+ | Expr :: Binary ( _)
737
739
| Expr :: Block ( _)
738
740
| Expr :: Call ( _)
739
741
| Expr :: Cast ( _)
You can’t perform that action at this time.
0 commit comments