1 changed files with 15 additions and 0 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
|
||||
" (c) greggroth/vim-cucumber-folding |
||||
function! CucumberFolds() |
||||
let thisline = getline(v:lnum) |
||||
|
||||
if match(thisline, '\(Scenario\( Outline\)\?\|Background\)\:') >= 0 |
||||
return ">1" |
||||
else |
||||
return "=" |
||||
endif |
||||
endfunction |
||||
|
||||
setlocal foldmethod=expr |
||||
setlocal foldexpr=CucumberFolds() |
||||
|
Loading…
Reference in new issue