aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/python.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/autoload/python.vim')
-rw-r--r--runtime/autoload/python.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/autoload/python.vim b/runtime/autoload/python.vim
index d5f4862363..cf01198d73 100644
--- a/runtime/autoload/python.vim
+++ b/runtime/autoload/python.vim
@@ -20,10 +20,12 @@ let g:python_indent = extend(get(g:, 'python_indent', {}), #{
let s:maxoff = 50 " maximum number of lines to look backwards for ()
function s:SearchBracket(fromlnum, flags)
+ " VIM_INDENT_TEST_TRACE_START
return searchpairpos('[[({]', '', '[])}]', a:flags,
\ {-> synstack('.', col('.'))
\ ->indexof({_, id -> synIDattr(id, 'name') =~ '\%(Comment\|Todo\|String\)$'}) >= 0},
\ [0, a:fromlnum - s:maxoff]->max(), g:python_indent.searchpair_timeout)
+ " VIM_INDENT_TEST_TRACE_END python#s:SearchBracket
endfunction
" See if the specified line is already user-dedented from the expected value.