summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 00:05:05 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 00:05:05 -0500
commitb036c7384ca67c87ed29e01a25a5c179c100dbba (patch)
treec7883553424102a2bc4842781df1e5eb2225be9e
parent4486e40a8279e584501879e188fecd501a970932 (diff)
downloadvim-foldtext-b036c7384ca67c87ed29e01a25a5c179c100dbba.tar.gz
vim-foldtext-b036c7384ca67c87ed29e01a25a5c179c100dbba.zip
fix up some regexes a bit
-rw-r--r--vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index 2effd03..60eeee2 100644
--- a/vimrc
+++ b/vimrc
@@ -243,7 +243,7 @@ function Perl_foldtext()
endif
" handle 'my ($a, $b) = @_;' type lines
- let rest_line = matchlist(next_line, 'my (\(.*\)) = @_;')
+ let rest_line = matchlist(next_line, 'my\s*(\(.*\))\s*=\s*@_;')
if !empty(rest_line)
let rest_params = split(rest_line[1], ',\s*')
let params += rest_params
@@ -251,7 +251,7 @@ function Perl_foldtext()
endif
" handle 'my %args = @_;' type lines
- let hash_line = matchlist(next_line, 'my %\w+ = @_;')
+ let hash_line = matchlist(next_line, 'my\s*%\w\+\s*=\s*@_;')
if !empty(hash_line)
let params += ['paramhash']
break