Add support for vim_func_exists to tests/vim.py

This commit is contained in:
ZyX 2014-11-10 00:35:40 +03:00
parent a4fddff1fa
commit c9cb856acd
1 changed files with 6 additions and 0 deletions

View File

@ -288,6 +288,12 @@ def eval(expr):
winnr = int(match.group(2))
varname = match.group(3)
return tabpages[tabnr].windows[winnr].vars[varname]
elif expr.startswith('type(function('):
import re
match = re.match(r'^type\(function\("([^"]+)"\)\) == 2$', expr)
if not match:
raise NotImplementedError(expr)
return 0
raise NotImplementedError(expr)