X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/446bfd0cb17b5ea5b13161440a61d1a5f057c703..a946371787067299e53338857b792005b84d8962:/indent/python.vim?ds=inline diff --git a/indent/python.vim b/indent/python.vim index 6912899..007c7e1 100644 --- a/indent/python.vim +++ b/indent/python.vim @@ -40,7 +40,7 @@ let s:block_rules = { \ '^\s*finally\>': ['try', 'except', 'else'] \ } let s:paren_pairs = ['()', '{}', '[]'] -let s:control_statement = '^\s*\(if\|while\|with\|for\|except\)\>' +let s:control_statement = '^\s*\(class\|def\|if\|while\|with\|for\|except\)\>' let s:stop_statement = '^\s*\(break\|continue\|raise\|return\|pass\)\>' " Skip strings and comments