]> granicus.if.org Git - python/commitdiff
(py-forward-into-nomenclature): small fix to not infinitely loop at
authorBarry Warsaw <barry@python.org>
Thu, 25 Jul 1996 18:53:17 +0000 (18:53 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 25 Jul 1996 18:53:17 +0000 (18:53 +0000)
underscores.

Misc/python-mode.el

index a86e4c77a1984a60fcf306976442be8e01052b8a..4cb40a6288598177445f4141576563117359aad2 100644 (file)
@@ -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+\\)"