Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Patch to fix indentation bug (lines after escaped paren in regex indented wrong) #69

wants to merge 1 commit into


None yet
2 participants

jeady commented Mar 3, 2012

Fixed bug causing lines following an escaped parenthesis in a regex (/(/) to be indented incorrectly.

To reproduce, put the following lines into a .rb file and indent the entire file:

a = /(/
p "this line is now indented incorrectly"

If there's a better way to fix this bug, go for it. This is the solution I came to after spending about 15 minutes with the vim-ruby source.


tpope commented Mar 3, 2012

Thanks. Your solution looks fine.

Note: I fixed your commit message.

@tpope tpope closed this Mar 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment