summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-08-11 22:14:14 +0000
committerRichard M. Stallman <rms@gnu.org>1997-08-11 22:14:14 +0000
commit2471669aa7acee6d8a7b951cb6f39edc2375d8bc (patch)
tree5f125ae302037fa49e1239e13adb6c60cbb158f5
parentb5592c93e185fd19f48ef69c252f601422b2621a (diff)
downloademacs-2471669aa7acee6d8a7b951cb6f39edc2375d8bc.tar.gz
(c-guess-basic-syntax): CASE 5D.4: template argument continuation
lines are now analyzed as template-args-cont.
-rw-r--r--lisp/progmodes/cc-engine.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 462288333ef..bfbca233701 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -7,7 +7,7 @@
;; 1985 Richard M. Stallman
;; Maintainer: cc-mode-help@python.org
;; Created: 22-Apr-1997 (split from cc-mode.el)
-;; Version: 5.14
+;; Version: 5.15
;; Keywords: c languages oop
;; This file is part of GNU Emacs.
@@ -1145,13 +1145,14 @@
(c-add-syntax 'inher-cont (c-point 'boi)))
;; CASE 5D.4: perhaps a template list continuation?
((save-excursion
+ (goto-char indent-point)
(skip-chars-backward "^<" lim)
;; not sure if this is the right test, but it should
;; be fast and mostly accurate.
(and (eq (char-before) ?<)
(not (c-in-literal lim))))
- ;; we can probably indent it just like and arglist-cont
- (c-add-syntax 'arglist-cont (point)))
+ ;; we can probably indent it just like an arglist-cont
+ (c-add-syntax 'template-args-cont (point)))
;; CASE 5D.5: perhaps a top-level statement-cont
(t
(c-beginning-of-statement-1 lim)