Commit f3523b17 authored by Glenn Morris's avatar Glenn Morris

(cc-imenu-c++-generic-expression): Tweak regexp to avoid overflow.

parent 94b9aaa2
2007-10-17 Glenn Morris <rgm@gnu.org>
* progmodes/cc-menus.el (cc-imenu-c++-generic-expression): Tweak
regexp to avoid stack overflow.
2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
* simple.el (reindent-then-newline-and-indent): Don't assume that
......
......@@ -106,7 +106,9 @@ A sample value might look like: `\\(_P\\|_PROTO\\)'.")
(nil
,(concat
"^\\<" ; line MUST start with word char
"[^()]*" ; no parentheses before
;; \n added to prevent overflow in regexp matcher.
;; http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-02/msg00021.html
"[^()\n]*" ; no parentheses before
"[^" c-alnum "_:<>~]" ; match any non-identifier char
"\\([" c-alpha "_][" c-alnum "_:<>~]*\\)" ; match function name
"\\([ \t\n]\\|\\\\\n\\)*(" ; see above, BUT the arg list
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment