gen_vimdoc.py: fix deprecated check

This commit is contained in:
Justin M. Keyes
2019-12-28 02:15:06 -08:00
parent f9be48436c
commit 27b678f577
2 changed files with 2 additions and 1 deletions

View File

@@ -637,7 +637,7 @@ def extract_from_xml(filename, mode, fmt_vimhelp):
if INCLUDE_C_DECL: if INCLUDE_C_DECL:
fn['c_decl'] = c_decl fn['c_decl'] = c_decl
if 'Deprecated' in xrefs: if 'Deprecated' in str(xrefs):
deprecated_functions[name] = fn deprecated_functions[name] = fn
elif name.startswith(CONFIG[mode]['func_name_prefix']): elif name.startswith(CONFIG[mode]['func_name_prefix']):
functions[name] = fn functions[name] = fn

View File

@@ -457,6 +457,7 @@ Object nvim_eval(String expr, Error *err)
} }
/// @deprecated Use nvim_exec_lua() instead. /// @deprecated Use nvim_exec_lua() instead.
/// @see nvim_exec_lua
Object nvim_execute_lua(String code, Array args, Error *err) Object nvim_execute_lua(String code, Array args, Error *err)
FUNC_API_SINCE(3) FUNC_API_SINCE(3)
FUNC_API_DEPRECATED_SINCE(7) FUNC_API_DEPRECATED_SINCE(7)