aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorPhillip Lord2016-01-15 22:20:34 +0000
committerPhillip Lord2016-01-15 22:20:34 +0000
commitbb0cd3193912032ae11a27016271d4587f876f98 (patch)
treed07e7bade1a79bec532447af64c9a5e1e63fc7ee /lisp/progmodes
parent549a765efeca2748e68a5c6ce6c9238784e82535 (diff)
parent9e5452f7166e3634f2d8e943815ed722e1672714 (diff)
downloademacs-bb0cd3193912032ae11a27016271d4587f876f98.tar.gz
emacs-bb0cd3193912032ae11a27016271d4587f876f98.zip
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cc-engine.el6
-rw-r--r--lisp/progmodes/cc-langs.el8
2 files changed, 14 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index b08c555e34f..63f01829845 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -6739,6 +6739,9 @@ comment at the start of cc-engine.el for more info."
6739 (c-backward-syntactic-ws)) 6739 (c-backward-syntactic-ws))
6740 (c-back-over-list-of-member-inits) 6740 (c-back-over-list-of-member-inits)
6741 (and (eq (char-before) ?:) 6741 (and (eq (char-before) ?:)
6742 (save-excursion
6743 (c-backward-token-2)
6744 (not (looking-at c-:$-multichar-token-regexp)))
6742 (c-just-after-func-arglist-p)))) 6745 (c-just-after-func-arglist-p))))
6743 6746
6744 (while (and (not (and level-plausible 6747 (while (and (not (and level-plausible
@@ -6753,6 +6756,9 @@ comment at the start of cc-engine.el for more info."
6753 (c-backward-syntactic-ws) 6756 (c-backward-syntactic-ws)
6754 (c-back-over-list-of-member-inits) 6757 (c-back-over-list-of-member-inits)
6755 (and (eq (char-before) ?:) 6758 (and (eq (char-before) ?:)
6759 (save-excursion
6760 (c-backward-token-2)
6761 (not (looking-at c-:$-multichar-token-regexp)))
6756 (c-just-after-func-arglist-p))))) 6762 (c-just-after-func-arglist-p)))))
6757 6763
6758 (and at-top-level level-plausible))) 6764 (and at-top-level level-plausible)))
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index b52da3f662d..48dd9960886 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -1219,6 +1219,14 @@ operators."
1219(c-lang-defvar c-assignment-op-regexp 1219(c-lang-defvar c-assignment-op-regexp
1220 (c-lang-const c-assignment-op-regexp)) 1220 (c-lang-const c-assignment-op-regexp))
1221 1221
1222(c-lang-defconst c-:$-multichar-token-regexp
1223 ;; Regexp matching all tokens ending in ":" which are longer than one char.
1224 ;; Currently (2016-01-07) only used in C++ Mode.
1225 t (c-make-keywords-re nil
1226 (c-filter-ops (c-lang-const c-operators) t ".+:$")))
1227(c-lang-defvar c-:$-multichar-token-regexp
1228 (c-lang-const c-:$-multichar-token-regexp))
1229
1222(c-lang-defconst c-<>-multichar-token-regexp 1230(c-lang-defconst c-<>-multichar-token-regexp
1223 ;; Regexp matching all tokens containing "<" or ">" which are longer 1231 ;; Regexp matching all tokens containing "<" or ">" which are longer
1224 ;; than one char. 1232 ;; than one char.