summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-07-25 18:53:17 (GMT)
committerBarry Warsaw <barry@python.org>1996-07-25 18:53:17 (GMT)
commitc846f46113eca07053cdb14ad089dabdfae3a0d3 (patch)
tree259237f2607f02589721a5550b220d776839d71a /Misc
parentfb3494276ebbddcfa7d36b796248e1e66d2c02c7 (diff)
downloadcpython-c846f46113eca07053cdb14ad089dabdfae3a0d3.zip
cpython-c846f46113eca07053cdb14ad089dabdfae3a0d3.tar.gz
cpython-c846f46113eca07053cdb14ad089dabdfae3a0d3.tar.bz2
(py-forward-into-nomenclature): small fix to not infinitely loop at
underscores.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/python-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index a86e4c7..4cb40a6 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -1425,7 +1425,7 @@ A `nomenclature' is a fancy way of saying AWordWithMixedCaseNotUnderscores."
(interactive "p")
(let ((case-fold-search nil))
(if (> arg 0)
- (re-search-forward "\\W*\\([A-Z]*[a-z0-9]*\\)" (point-max) t arg)
+ (re-search-forward "\\W*\\([A-Z_]*[a-z0-9]*\\)" (point-max) t arg)
(while (and (< arg 0)
(re-search-backward
"\\(\\(\\W\\|[a-z0-9]\\)[A-Z]+\\|\\W\\w+\\)"