| ... | @@ -2775,6 +2775,8 @@ fn renderAsm( | ... | @@ -2775,6 +2775,8 @@ fn renderAsm( |
| 2775 | ais.forceLastIndent(); // Might have been dedented by a multiline string literal | 2775 | ais.forceLastIndent(); // Might have been dedented by a multiline string literal |
| 2776 | assert(ais.current_line_empty); | 2776 | assert(ais.current_line_empty); |
| 2777 | | 2777 | |
| | 2778 | const prev_indent_delta = ais.indent_delta; // May be part of another asm expression |
| | 2779 | // so indent_delta can't be unconditionally used |
| 2778 | ais.setIndentDelta(asm_indent_delta); | 2780 | ais.setIndentDelta(asm_indent_delta); |
| 2779 | const colon1 = tree.lastToken(asm_node.ast.template) + 1; | 2781 | const colon1 = tree.lastToken(asm_node.ast.template) + 1; |
| 2780 | | 2782 | |
| ... | @@ -2856,7 +2858,7 @@ fn renderAsm( | ... | @@ -2856,7 +2858,7 @@ fn renderAsm( |
| 2856 | const clobbers = asm_node.ast.clobbers.unwrap().?; | 2858 | const clobbers = asm_node.ast.clobbers.unwrap().?; |
| 2857 | try renderExpression(r, clobbers, .none); | 2859 | try renderExpression(r, clobbers, .none); |
| 2858 | ais.forceLastIndent(); // Might have been dedented by a multiline string literal | 2860 | ais.forceLastIndent(); // Might have been dedented by a multiline string literal |
| 2859 | ais.setIndentDelta(indent_delta); | 2861 | ais.setIndentDelta(prev_indent_delta); |
| 2860 | ais.popIndent(); | 2862 | ais.popIndent(); |
| 2861 | return renderToken(r, asm_node.ast.rparen, space); // rparen | 2863 | return renderToken(r, asm_node.ast.rparen, space); // rparen |
| 2862 | } | 2864 | } |