summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 04:41:56 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 04:41:56 -0500
commitba48da4af73ccfffd8ddbdf55af48af843362a48 (patch)
treef7883947331d73120826f4e9b2e08a5768c33d85
parent7f85f87055108981c316af2108467f5fed2e2ab9 (diff)
downloadvim-foldtext-ba48da4af73ccfffd8ddbdf55af48af843362a48.tar.gz
vim-foldtext-ba48da4af73ccfffd8ddbdf55af48af843362a48.zip
be a little more precise in the regexes to match unknown things
-rw-r--r--vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index d58cef0..26f8e81 100644
--- a/vimrc
+++ b/vimrc
@@ -297,13 +297,13 @@ function Perl_foldtext()
endif
" handle unknown uses of shift
- if next_line =~ '\%(shift\%(\s*@\)\@!\)'
+ if next_line =~ '\%(\<shift\>\%(\s*@\)\@!\)'
let params += ['$unknown']
continue
endif
" handle unknown uses of @_
- if next_line =~ '@_'
+ if next_line =~ '@_\>'
let params += ['@unknown']
continue
endif