I noticed that the plugin works with mixed results with Python code, capturing the class definition very well, but missing most of the function definitions (def ...).
I tried to extend the regular expressions with g:context_extend_regex but I couldn't get a clean behavior. This is the best I could come up with:
let g:context_extend_regex = '^\s*\([]{})]\|end\|else\|case\>\|default\>\|def\)'
which matches decorated functions like this:
@property
def my_function():
pass
but does not recognize anymore the end of the function from the indentation change.
Did anyone have luck at getting this to work?
I noticed that the plugin works with mixed results with Python code, capturing the
classdefinition very well, but missing most of the function definitions (def ...).I tried to extend the regular expressions with
g:context_extend_regexbut I couldn't get a clean behavior. This is the best I could come up with:which matches decorated functions like this:
but does not recognize anymore the end of the function from the indentation change.
Did anyone have luck at getting this to work?