Skip to content

Commit c78172b

Browse files
committed
Improve indent for while statement
1 parent 3a276bc commit c78172b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

indent/python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set cpo&vim
2828
let s:maxoff = 50
2929
let s:compound_stmts = {
3030
\ '\v^\s*<elif>': '\v^\s*<%(if|elif)>',
31-
\ '\v^\s*<else>': '\v^\s*<%(if|elif|for|try|except)>',
31+
\ '\v^\s*<else>': '\v^\s*<%(if|elif|while|for|try|except)>',
3232
\ '\v^\s*<except>': '\v^\s*<%(try|except)>',
3333
\ '\v^\s*<finally>': '\v^\s*<%(try|except|else)>',
3434
\}

0 commit comments

Comments
 (0)