diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2025-01-26 20:16:56 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2025-01-26 20:16:56 +0100 |
| commit | a71caaac9f8ac113d81fc714a41c9b9e96d1fee7 (patch) | |
| tree | 89eba8dc1f4db68fd0fc3e39dd2584802acc4ca8 /src | |
| parent | 3b4aa2f3042397488bdf910f8bf3c493f32141f0 (diff) | |
| parent | c1615ee4706f27d853e7b0bc002a60c6a1f92e28 (diff) | |
Merge branch 'master' of https://github.com/DanielGavin/ols
Diffstat (limited to 'src')
| -rw-r--r-- | src/odin/printer/visit.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index e135825..0911496 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -1042,7 +1042,9 @@ visit_stmt :: proc( } document = cons_with_opl(document, visit_expr(p, v.cond)) + set_source_position(p, v.body.pos) document = cons_with_nopl(document, visit_stmt(p, v.body, .Switch_Stmt)) + set_source_position(p, v.body.end) case ^Case_Clause: document = cons(document, text("case")) |