tyru / current-func-info.vim

Get current function name
http://www.vim.org/scripts/script.php?script_id=3197
62 stars 14 forks source link

vimの関数終了パターンがおかしいために、endが関数終了とみなされる #12

Closed LeafCage closed 10 years ago

LeafCage commented 10 years ago

ftplugin/vim/cfi.vim

let s:END_PATTERN   = '\C'.'^\s*'.'endf*\%[unction]\>'

の終了パターンは'endf*\%[unction]\>'の、fの後の*はいらないのではないでしょうか?

if
end

があった場合、endが関数の終了とみなされてしまいます。

tyru commented 10 years ago

直しました。 確認お願いします。

LeafCage commented 10 years ago

ありがとうございます。