diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-04-23 17:43:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-04-23 17:43:42 +0200 |
commit | 9bdfb0025cba78c7a917f7f9420fe00136918e1c (patch) | |
tree | d054880923ec3a3ca5ed469807f8fde753880431 /src/testdir/test_eval.in | |
parent | 62f167f716beb8bfeaadb8ec506a257827f701a2 (diff) |
updated for version 7.4.260v7.4.260
Problem: It is possible to define a function with a colon in the name. It
is possible to define a function with a lower case character if a
"#" appears after the name.
Solution: Disallow using a colon other than with "s:". Ignore "#" after the
name.
Diffstat (limited to 'src/testdir/test_eval.in')
-rw-r--r-- | src/testdir/test_eval.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testdir/test_eval.in b/src/testdir/test_eval.in index b102be2b10..cb942011be 100644 --- a/src/testdir/test_eval.in +++ b/src/testdir/test_eval.in @@ -144,6 +144,24 @@ endfun :delcommand AR :call garbagecollect(1) :" +:" function name includes a colon +:try +:func! g:test() +:echo "test" +:endfunc +:catch +:$put =v:exception +:endtry +:" +:" function name folowed by # +:try +:func! test2() "# +:echo "test2" +:endfunc +:catch +:$put =v:exception +:endtry +:" :/^start:/+1,$wq! test.out :" vim: et ts=4 isk-=\: fmr=???,??? :call getchar() |