diff options
| author | Peter LaFosse <peter@vector35.com> | 2024-11-04 15:01:57 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2024-11-04 15:16:53 -0500 |
| commit | 8609cc98bad6926d7ca94f10112b315d5d820ee0 (patch) | |
| tree | 0bc2f3c47bf7a0adf09ea7f1d5446848a459e9ec /lang/rust | |
| parent | 2fb55af5d2bc5577fd51fbc9007d212485a1498e (diff) | |
Fix opening/closing braces in PseudoRust
Diffstat (limited to 'lang/rust')
| -rw-r--r-- | lang/rust/pseudorust.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/rust/pseudorust.cpp b/lang/rust/pseudorust.cpp index d12b8e32..265d3688 100644 --- a/lang/rust/pseudorust.cpp +++ b/lang/rust/pseudorust.cpp @@ -37,6 +37,7 @@ void PseudoRustFunction::BeginLines(const HighLevelILInstruction& instr, HighLev if (instr.exprIndex == m_highLevelIL->GetRootExpr().exprIndex) { // At top level, add braces around the entire function + tokens.PrependCollapseIndicator(); tokens.AppendOpenBrace(); tokens.NewLine(); tokens.IncreaseIndent(); @@ -51,6 +52,7 @@ void PseudoRustFunction::EndLines(const HighLevelILInstruction& instr, HighLevel // At top level, add braces around the entire function tokens.NewLine(); tokens.DecreaseIndent(); + tokens.PrependCollapseIndicator(); tokens.AppendCloseBrace(); } } |
