mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
(py-forward-into-nomenclature): small fix to not infinitely loop at
underscores.
This commit is contained in:
parent
fb3494276e
commit
c846f46113
1 changed files with 1 additions and 1 deletions
|
@ -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+\\)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue