We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d64e05 commit c330d0cCopy full SHA for c330d0c
indent/python.vim
@@ -77,9 +77,6 @@ if has('conceal')
77
endif
78
79
80
-let s:skip_search = 'synIDattr(synID(line("."), col("."), 0), "name") ' .
81
- \ '=~? "comment"'
82
-
83
" Use 'shiftwidth()' instead of '&sw'.
84
" (Since Vim patch 7.3.629, 'shiftwidth' can be set to 0 to follow 'tabstop').
85
if exists('*shiftwidth')
@@ -104,7 +101,9 @@ function! s:find_opening_paren(...)
104
101
105
102
106
103
" Return if cursor is in a comment.
107
- exe 'if' s:skip_search '| return [0, 0] | endif'
+ if synIDattr(synID(line('.'), col('.'), 0), 'name') =~? 'comment'
+ return [0, 0]
+ endif
108
109
let nearest = [0, 0]
110
for [p, maxoff] in items(s:paren_pairs)
0 commit comments