Skip to content

Conversation

@jbodah
Copy link
Collaborator

@jbodah jbodah commented Jul 11, 2017

The changes to limit the number of lines we search for a block have made
it so that def calls in modules don't indent properly. This is because
we're looking for the base module declaration as a reference point and
stop searching before we get there

Instead, we hack around a bit and try to detect this by looking for
the last end. This solution isn't perfect, but it's cheap and effective
until we find problems with it

The changes to limit the number of lines we search for a block have made it so that `def` calls in modules don't indent properly. This is because we're looking for the base module declaration as a reference point and stop searching before we get there Instead, we hack around a bit and try to detect this by looking for the last `end`. This solution isn't perfect, but it's cheap and effective until we find problems with it
@jbodah jbodah merged commit a388aee into master Jul 11, 2017
@jbodah jbodah deleted the multi-function-indent branch July 11, 2017 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants