next_eq_is_continuation

Function next_eq_is_continuation 

Source
fn next_eq_is_continuation(eqs: &[String], idx: usize) -> bool
Expand description

Return true when the next non-empty equation after idx looks like a continuation of the current buffer rather than a fresh statement, so the buffer flush should be deferred until it’s been appended.

Continuation triggers: leading *///% (orphan binop), leading +/- on a line with no top-level = (closed-paren orphan binop), leading = (not ==) — split-LHS assignment, leading ( — split function-call site. Blank equations are skipped first.