Skip to content

Commit 12e2089

Browse files
committed
s:_skip_special_chars: look at synstack
Fixes Vimjas#132.
1 parent b3a7395 commit 12e2089

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

indent/python.vim

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ if !get(g:, 'python_pep8_indent_skip_concealed', 0) || !has('conceal')
7676
" jedi* refers to syntax definitions from jedi-vim for call signatures, which
7777
" are inserted temporarily into the buffer.
7878
function! s:_skip_special_chars(line, col)
79-
return synIDattr(synID(a:line, a:col, 0), 'name')
80-
\ =~? s:special_chars_syn_pattern
79+
return match(map(synstack(a:line, a:col),
80+
\ "synIDattr(v:val, 'name')"),
81+
\ '\c'.s:special_chars_syn_pattern)
8182
endfunction
8283
else
8384
" Also ignore anything concealed.

0 commit comments

Comments
 (0)