Skip to content

Commit 9d6dfb1

Browse files
committed
Merge pull request python-mode#550 from wilywampa/doctest_indent
Skip doctest regions when searching for open pairs
2 parents 474af30 + 0368708 commit 9d6dfb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/pymode/indent.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function! s:SearchParensPair() " {{{
110110
" Skip strings and comments and don't look too far
111111
let skip = "line('.') < " . (line - 50) . " ? dummy :" .
112112
\ 'synIDattr(synID(line("."), col("."), 0), "name") =~? ' .
113-
\ '"string\\|comment"'
113+
\ '"string\\|comment\\|doctest"'
114114

115115
" Search for parentheses
116116
call cursor(line, col)

0 commit comments

Comments
 (0)