]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(py-no-outdent-re): Added return, break, raise, continue since we
authorBarry Warsaw <barry@python.org>
Mon, 12 Aug 1996 19:52:27 +0000 (19:52 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 12 Aug 1996 19:52:27 +0000 (19:52 +0000)
already outdent for those statements.

Misc/python-mode.el

index 2128d89c2680e905a9e8c25c5de4bfc81792007e..7d960000576f3675d6eb25302839675563a2f832 100644 (file)
@@ -384,7 +384,9 @@ Currently-active file is at the head of the list.")
                             "while\\s +.*:"
                             "for\\s +.*:"
                             "if\\s +.*:"
-                            "elif\\s +.*:")
+                            "elif\\s +.*:"
+                            "\\(return\\|break\\|raise\\|continue\\)[ \t\n]"
+                            )
                           "\\|")
          "\\)")
   "Regexp matching lines to not outdent after.")