Files
vim/runtime/syntax/testdir/input/vim_ex_delfunction.vim
Doug Kearns 51289207f8 runtime(vim): Update base-syntax, improve function definition matching
- Fix highlighting of function names including /fu\%[nction]/ (E.g.,
  s:func(), foo.fu(), fu.func())
- Match :delfunction argument.

Reported by Aliaksei Budavei.

closes: #17428

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-06-11 21:16:14 +02:00

35 lines
611 B
VimL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

" Vim :delfunction command
delfunction Foo
delfunction <SID>Foo
delfunction foo.bar
delfunction g:foo.bar
delfunction s:foo.bar
delfunction foo#bar
delfunction g:foo#bar
delfunction foo#bar.baz
delfunction g:foo#bar.baz
delfunction! Foo
delfunction! <SID>Foo
delfunction! foo.bar
delfunction! g:foo.bar
delfunction! s:foo.bar
delfunction! foo#bar
delfunction! g:foo#bar
delfunction! foo#bar.baz
delfunction! g:foo#bar.baz
delfunction Foo | echo "Foo"
delfunction Foo " comment
" Issue https://github.com/vim/vim/pull/17420#issuecomment-2927798687
" (arg named /fu%\[nction]/)
silent! delfunc! func