(py-forward-into-nomenclature): small fix to not infinitely loop at

underscores.
This commit is contained in:
Barry Warsaw 1996-07-25 18:53:17 +00:00
parent fb3494276e
commit c846f46113

View 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+\\)"