From 7f85f87055108981c316af2108467f5fed2e2ab9 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Mon, 21 Apr 2008 04:36:22 -0500 Subject: only recognize oo stuff if it's the first argument --- vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 528aa5c..d58cef0 100644 --- a/vimrc +++ b/vimrc @@ -253,12 +253,12 @@ function Perl_foldtext() let shift_line = matchlist(next_line, \ 'my\s*\(' . var . '\)\s*=\s*shift\%(\s*||\s*\(.\{-}\)\)\?;') if !empty(shift_line) - if shift_line[1] == '$self' + if shift_line[1] == '$self' && empty(params) if sub_type == 'sub' let sub_type = '' endif let sub_type .= ' method' - elseif shift_line[1] == '$class' + elseif shift_line[1] == '$class' && empty(params) if sub_type == 'sub' let sub_type = '' endif -- cgit v1.2.3-54-g00ecf