summaryrefslogtreecommitdiffstats
path: root/runtime/ftplugin/cucumber.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-09 20:13:35 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-09 20:13:35 +0200
commit6af737fdb4a3594bc4ab8c0e04536af24768437a (patch)
treee285b3b8a3e5e732d7a9d6f850082c7bda1873a2 /runtime/ftplugin/cucumber.vim
parent4eccc3e301f24a3ea2abc7b77c849327e52e19d6 (diff)
Runtime file updates. (Tim Pope)
Diffstat (limited to 'runtime/ftplugin/cucumber.vim')
-rw-r--r--runtime/ftplugin/cucumber.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/cucumber.vim b/runtime/ftplugin/cucumber.vim
index 63cfbcf336..a29d46a039 100644
--- a/runtime/ftplugin/cucumber.vim
+++ b/runtime/ftplugin/cucumber.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin
" Language: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
-" Last Change: 2010 May 21
+" Last Change: 2010 Aug 09
" Only do this when not done yet for this buffer
if (exists("b:did_ftplugin"))
@@ -80,7 +80,7 @@ function! s:stepmatch(receiver,target)
endif
catch
endtry
- if has("ruby")
+ if has("ruby") && pattern !~ '\\\@<!#{'
ruby VIM.command("return #{if (begin; Kernel.eval('/'+VIM.evaluate('pattern')+'/'); rescue SyntaxError; end) === VIM.evaluate('a:target') then 1 else 0 end}")
else
return 0