Mercurial > vim
view runtime/syntax/testdir/input/vim_ex_function_nested.vim @ 35404:d4611ebbdaa4 default tip
runtime(netrw): correctly test for windows in NetrwGlob()
Commit: https://github.com/vim/vim/commit/440746158ce0fec2880ccacc03f39dbc954c5543
Author: Christian Brabandt <cb@256bit.org>
Date: Fri Jun 14 08:19:22 2024 +0200
runtime(netrw): correctly test for windows in NetrwGlob()
use has("win32") instead of has("win64") otherwise it
won't work on x86 systems.
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 14 Jun 2024 08:30:06 +0200 |
parents | e8ddbfaf0c85 |
children |
line wrap: on
line source
" Vim :def and :function commands (nested) def FunA(): string def DoFunA(): string return "." enddef return DoFunA() enddef def FunB(): string function DoFunB() return ".." endfunction return DoFunB() enddef function FunC() def DoFunC(): string return "..." enddef return DoFunC() endfunction function FunD() function DoFunD() return "...." endfunction return DoFunD() endfunction echo FunA() echo FunB() echo FunC() echo FunD()