Mercurial > vim
view src/testdir/test75.in @ 2776:cdefcbb70e8c v7.3.164
updated for version 7.3.164
Problem: C-indenting: a preprocessor statement confuses detection of a
function delcaration.
Solution: Ignore preprocessor lines. (Lech Lorens) Also recognize the style
to put a comma before the argument name.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 28 Apr 2011 13:02:09 +0200 |
parents | 6c05b5e5c1be |
children | 6018c815e120 |
line wrap: on
line source
" Tests for functions. STARTTEST :so small.vim :" Test maparg() with a string result :map foo<C-V> is<F4>foo :vnoremap <script> <buffer> <expr> <silent> bar isbar :call append('$', maparg('foo<C-V>')) :call append('$', string(maparg('foo<C-V>', '', 0, 1))) :call append('$', string(maparg('bar', '', 0, 1))) :" :/^eof/+1,$w! test.out :qa! ENDTEST eof