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:
parent
99de04e6a8
commit
5a45a6bfe0
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue