blob: c165c0ce682b3679b99e92751f2e2b2f2e002a86 [file] [log] [blame]
Bram Moolenaar8c1b8cb2022-06-14 17:41:28 +01001" Vim filetype plugin file
2" Language: Verbose TAP Output
3" Maintainer: vim-perl <vim-perl@googlegroups.com>
4" Homepage: https://github.com/vim-perl/vim-perl
5" Bugs/requests: https://github.com/vim-perl/vim-perl/issues
6" License: Vim License (see :help license)
7" Last Change: 2021 Oct 22
8
9" Only do this when not done yet for this buffer
10if exists('b:did_ftplugin')
11 finish
12endif
13let b:did_ftplugin = 1
14
15setlocal foldtext=TAPTestLine_foldtext()
16function! TAPTestLine_foldtext()
17 let line = getline(v:foldstart)
18 let sub = substitute(line, '/\*\|\*/\|{{{\d\=', '', 'g')
19 return sub
20endfunction
21
22setlocal foldminlines=5
23setlocal foldcolumn=2
24setlocal foldenable
25setlocal foldmethod=syntax
26
27let b:undo_ftplugin = 'setlocal foldtext< foldminlines< foldcolumn< foldenable< foldmethod<'