summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-08-12 19:52:27 (GMT)
committerBarry Warsaw <barry@python.org>1996-08-12 19:52:27 (GMT)
commitf67a57efc45404666a953461a124e66ad4e92850 (patch)
tree0ca3bc31737546a3d6efa02ad035ed884f528a4d
parent8b004d36ed96a3d0e91f920ef9331a81d7fbb899 (diff)
downloadcpython-f67a57efc45404666a953461a124e66ad4e92850.zip
cpython-f67a57efc45404666a953461a124e66ad4e92850.tar.gz
cpython-f67a57efc45404666a953461a124e66ad4e92850.tar.bz2
(py-no-outdent-re): Added return, break, raise, continue since we
already outdent for those statements.
-rw-r--r--Misc/python-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 2128d89..7d96000 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -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.")