Skip to content

Commit 0586a51

Browse files
committed
Do not skip/check concealed
1 parent 7b822e9 commit 0586a51

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

indent/python.vim

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,17 @@ let s:skip_after_opening_paren = 'synIDattr(synID(line("."), col("."), 0), "name
8080
\ '=~? "\\vcomment|jedi\\S"'
8181

8282
" Also ignore anything concealed.
83-
" Wrapper around synconcealed for older Vim (7.3.429, used on Travis CI).
84-
function! s:is_concealed(line, col)
85-
let concealed = synconcealed(a:line, a:col)
86-
return len(concealed) && concealed[0]
87-
endfunction
88-
if has('conceal')
89-
let s:skip_special_chars .= '|| s:is_concealed(line("."), col("."))'
83+
" TODO: doc; likely only necessary with jedi-vim, where a better version is
84+
" planned (https://github.com/Vimjas/vim-python-pep8-indent/pull/98).
85+
if get(g:, 'python_pep8_indent_skip_concealed', 0)
86+
" Wrapper around synconcealed for older Vim (7.3.429, used on Travis CI).
87+
function! s:is_concealed(line, col)
88+
let concealed = synconcealed(a:line, a:col)
89+
return len(concealed) && concealed[0]
90+
endfunction
91+
if has('conceal')
92+
let s:skip_special_chars .= '|| s:is_concealed(line("."), col("."))'
93+
endif
9094
endif
9195

9296

0 commit comments

Comments
 (0)