mirror of
https://github.com/powerline/powerline.git
synced 2025-09-25 19:09:10 +02:00
Add support for vim_func_exists to tests/vim.py
This commit is contained in:
parent
a4fddff1fa
commit
c9cb856acd
@ -288,6 +288,12 @@ def eval(expr):
|
|||||||
winnr = int(match.group(2))
|
winnr = int(match.group(2))
|
||||||
varname = match.group(3)
|
varname = match.group(3)
|
||||||
return tabpages[tabnr].windows[winnr].vars[varname]
|
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)
|
raise NotImplementedError(expr)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user