]> git.eshelyaron.com Git - emacs.git/commitdiff
Comply with pep 8 style guide for backslash in assignment (Bug#24809)
authorJules Tamagnan <jtamagnan@gmail.com>
Thu, 27 Oct 2016 22:03:31 +0000 (15:03 -0700)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 29 May 2017 03:33:25 +0000 (23:33 -0400)
* lisp/progmodes/python.el (python-indent--calculate-indentation):
Increase indent by `python-indent-offset' after
`:after-backslash-assignment-continuation'.

Copyright-paperwork-exempt: yes

lisp/progmodes/python.el

index 2697f1a310772f1b332aeece21abd7a8e0cc96ae..4eecfba2e7eda89f2ac8491ac38dfb8230735eed 100644 (file)
@@ -1048,13 +1048,13 @@ possibilities can be narrowed to specific indentation points."
            (max line-indentation base-indent)))
         (`(,(or :after-block-start
                 :after-backslash-first-line
+                :after-backslash-assignment-continuation
                 :inside-paren-newline-start) . ,start)
          ;; Add one indentation level.
          (goto-char start)
          (+ (current-indentation) python-indent-offset))
         (`(,(or :inside-paren
                 :after-backslash-block-continuation
-                :after-backslash-assignment-continuation
                 :after-backslash-dotted-continuation) . ,start)
          ;; Use the column given by the context.
          (goto-char start)