We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 813ac1e commit 925b3e2Copy full SHA for 925b3e2
1 file changed
indent/python.vim
@@ -1,7 +1,7 @@
1
" Vim indent file
2
" Language: Python
3
" Author: Akinori Hattori <hattya@gmail.com>
4
-" Last Change: 2020-10-04
+" Last Change: 2022-09-27
5
" License: MIT License
6
7
if exists('b:did_indent')
@@ -128,7 +128,7 @@ function! GetPEP8PythonIndent() abort
128
129
let ind = indent(lnum)
130
let ll = join(buf, ' ')
131
- if ll =~# ':\s*\%(#.*\)\=$'
+ if ll =~# '\v:\s*%(#.*)=$'
132
" compound statement
133
let ind += shiftwidth()
134
elseif ll =~# s:dedent
0 commit comments