X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/dc1fdffa795bce2425025e9d29d14a321c5424dd..b0bb7f66733400fe8ac914fab8860aec8d38b915:/indent/python.vim?ds=inline diff --git a/indent/python.vim b/indent/python.vim index 69ce187..4d1edc2 100644 --- a/indent/python.vim +++ b/indent/python.vim @@ -3,7 +3,6 @@ " Maintainer: Hynek Schlawack " Prev Maintainer: Eric Mc Sween (address invalid) " Original Author: David Bustos (address invalid) -" Last Change: 2012-06-21 " License: Public Domain " Only load this indent file when no other was loaded. @@ -170,12 +169,18 @@ function! GetPythonPEPIndent(lnum) return maybe_indent + &sw else " control structure not found - return maybe_indent + return maybe_indent endif endif " If the previous line ended with a colon and is not a comment, indent " relative to statement start. + let pline = substitute(pline, '\\\\', '', 'g') + if v:version > 703 || (v:version == 703 && has('patch1037')) + let pline = substitute(pline, '".\{-}\\\@1