wrap_paren_balanced_cmp

Function wrap_paren_balanced_cmp 

Source
pub(super) fn wrap_paren_balanced_cmp(s: &str) -> String
Expand description

Paren-balanced sibling of wrap_boolean_assignment_rhs. The regex pass only matches (cmp) whose interior contains no ( or ,; the walker variant tracks paren depth and catches (lev1-gmegabuf(1)>0) and (y<=(0.4+0.1*cos(mang))). Recurses inner-first so a chain (a > (b > c)) gets each level wrapped. Skips ( that follow an identifier (function-call form).