diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-10-25 16:53:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-10-25 16:53:19 +0200 |
commit | c0fe4978f2311be9a0221d4c2369251c719b399a (patch) | |
tree | 8061774a07046f9d5c50f5b05954944ec133944d /runtime/indent/testdir/vim.in | |
parent | f86db78fed78541cefdb706e4779ce5ae9ca7820 (diff) |
patch 8.1.0496: no tests for indent filesv8.1.0496
Problem: No tests for indent files.
Solution: Add a mechanism for running indent file tests. Add a first test
for Vim indenting.
Diffstat (limited to 'runtime/indent/testdir/vim.in')
-rw-r--r-- | runtime/indent/testdir/vim.in | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/runtime/indent/testdir/vim.in b/runtime/indent/testdir/vim.in new file mode 100644 index 0000000000..ca105f6eda --- /dev/null +++ b/runtime/indent/testdir/vim.in @@ -0,0 +1,46 @@ +" vim: set ft=vim sw=4 : + +" START_INDENT + +func Some() +let x = 1 +endfunc + +let cmd = +\ 'some ' +\ 'string' + +" END_INDENT + +" START_INDENT +" INDENT_EXE let g:vim_indent_cont = 6 + +let cmd = +\ 'some ' +\ 'string' + +" END_INDENT + +" START_INDENT +" INDENT_EXE unlet g:vim_indent_cont +" INDENT_AT this-line +func Some() +let f = x " this-line +endfunc +" END_INDENT + +" START_INDENT +" INDENT_NEXT next-line +func Some() + " next-line +let f = x +endfunc +" END_INDENT + +" START_INDENT +" INDENT_PREV prev-line +func Some() +let f = x +" prev-line +endfunc +" END_INDENT |