Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit f154264

Browse files
graywhtpope
authored andcommitted
Escape literal => for use with very magic pattern
1 parent d8c2254 commit f154264

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3358,7 +3358,7 @@ function! s:invertrange(beg,end)
33583358
endif
33593359
let add .= s:mkeep(line)
33603360
elseif line =~ '\<remove_index\>'
3361-
let add = s:sub(s:sub(line,'<remove_index','add_index'),':column\s*=>\s*','')
3361+
let add = s:sub(s:sub(line,'<remove_index','add_index'),':column\s*\=\>\s*','')
33623362
elseif line =~ '\<rename_\%(table\|column\|index\)\>'
33633363
let add = s:sub(line,'<rename_%(table\s*\(=\s*|%(column|index)\s*\(=\s*[^,]*,\s*)\zs([^,]*)(,\s*)([^,]*)','\3\2\1')
33643364
elseif line =~ '\<change_column\>'

0 commit comments

Comments
 (0)