1
0
forked from VimPlug/jedi

statement parser - first version

This commit is contained in:
David Halter
2012-03-11 03:03:54 +01:00
parent 5332a87d39
commit b2a77acff6
4 changed files with 232 additions and 53 deletions

View File

@@ -222,11 +222,15 @@ def dbg(*args):
debug_function(*args)
def set_debug_function(func):
def set_debug_function(func_cb):
"""
You can define a callback debug function to get all the debug messages.
:param func_cb: The callback function for debug messages, with n params.
"""
global debug_function
debug_function = func
parsing.debug_function = func
evaluate.debug_function = func
debug_function = func_cb
parsing.debug_function = func_cb
evaluate.debug_function = func_cb
debug_function = None