You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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: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?
The text was updated successfully, but these errors were encountered: