Skip to content

Commit 069c682

Browse files
committed
fixup! s:_skip_special_chars: look at synstack
1 parent 12e2089 commit 069c682

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

indent/python.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ else
9292
endfunction
9393

9494
function! s:_skip_special_chars(line, col)
95-
return synIDattr(synID(a:line, a:col, 0), 'name')
96-
\ =~? s:special_chars_syn_pattern
95+
return match(map(synstack(a:line, a:col),
96+
\ "synIDattr(v:val, 'name')"),
97+
\ '\c'.s:special_chars_syn_pattern)
9798
\ || s:is_concealed(a:line, a:col)
9899
endfunction
99100
endif

0 commit comments

Comments
 (0)