vim-ruby/vim-ruby — pull request #69 by jeady (2012-03-03 03:12:37+00:00)
Title: Patch to fix indentation bug (lines after escaped paren in regex indented wrong)

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.