Skip to content

Commit 925b3e2

Browse files
committed
Refine
1 parent 813ac1e commit 925b3e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

indent/python.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim indent file
22
" Language: Python
33
" Author: Akinori Hattori <hattya@gmail.com>
4-
" Last Change: 2020-10-04
4+
" Last Change: 2022-09-27
55
" License: MIT License
66

77
if exists('b:did_indent')
@@ -128,7 +128,7 @@ function! GetPEP8PythonIndent() abort
128128

129129
let ind = indent(lnum)
130130
let ll = join(buf, ' ')
131-
if ll =~# ':\s*\%(#.*\)\=$'
131+
if ll =~# '\v:\s*%(#.*)=$'
132132
" compound statement
133133
let ind += shiftwidth()
134134
elseif ll =~# s:dedent

0 commit comments

Comments
 (0)