From b036c7384ca67c87ed29e01a25a5c179c100dbba Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Mon, 21 Apr 2008 00:05:05 -0500 Subject: fix up some regexes a bit --- vimrc | 4 ++-- 1 file 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 -- cgit v1.2.3