1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Amend c-colon-type-list-re also to handle compound identifiers

* lisp/progmodes/cc-langs.el (c-colon-type-list-re): Amend to recognize and
skip over "::" in C++ and "." in Java.
This commit is contained in:
Alan Mackenzie 2018-04-19 20:42:17 +00:00
parent 99de04e6a8
commit 5a45a6bfe0

View file

@ -2461,7 +2461,11 @@ regexp if `c-colon-type-list-kwds' isn't nil."
;; before the ":" that starts the inherit list after "class"
;; or "struct" in C++. (Also used as default for other
;; languages.)
"[^][{}();,/#=:]*:"))
(if (c-lang-const c-opt-identifier-concat-key)
(concat "\\([^][{}();,/#=:]\\|"
(c-lang-const c-opt-identifier-concat-key)
"\\)*:")
"[^][{}();,/#=:]*:")))
(c-lang-defvar c-colon-type-list-re (c-lang-const c-colon-type-list-re))
(c-lang-defconst c-paren-nontype-kwds