In the following code, the else and end are highlighted as belonging to the def: the if appears to be treated as a modifier despite being in an expression context.
def foo
x = \
if a
1
else
2
end
end
Indentation seems to be correspondingly mislead, too.
In the following code, the
elseandendare highlighted as belonging to thedef: theifappears to be treated as a modifier despite being in an expression context.Indentation seems to be correspondingly mislead, too.