hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit b5f69126e7d99cda394ff89f95d400f449b3f09e
parent c5b1b81064efd567b4adcb442e29b7426f2cd173
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 17 Apr 2021 17:51:36 -0400

hare::unparse: remove workaround for #380

Diffstat:
Mhare/unparse/expr.ha | 12++++--------
1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/hare/unparse/expr.ha b/hare/unparse/expr.ha @@ -82,10 +82,8 @@ export fn expr( }, e: ast::break_expr => { let z = fmt::fprint(out, "break")?; - // TODO: https://todo.sr.ht/~sircmpwn/hare/380 - let l = e: ast::label: str; - if (l != "") { - z += fmt::fprintf(out, " :{}", l)?; + if (e != "") { + z += fmt::fprintf(out, " :{}", e)?; }; z; }, @@ -118,10 +116,8 @@ export fn expr( e: ast::constant_expr => constant(out, indent, e)?, e: ast::continue_expr => { let z = fmt::fprint(out, "continue")?; - // TODO: https://todo.sr.ht/~sircmpwn/hare/380 - let l = e: ast::label: str; - if (l != "") { - z += fmt::fprintf(out, " :{}", l)?; + if (e != "") { + z += fmt::fprintf(out, " :{}", e)?; }; z; },