1 new commit in cc-mode:
https://bitbucket.org/xemacs/cc-mode/commits/b2040e9e8639/
changeset: b2040e9e8639
user: acm
date: 2013-01-25 19:59:03
summary: AWK Mode: Fix indentation bug at top level.
cc-engine.el (c-guess-basic-syntax): Move CASE 5P to just before CASE 5D.
awk-top-1.{awk,res}. Add an extra test for this.
affected #: 1 file
diff -r ab14083fb88217935183632e788c6fa5e20adb8d -r
b2040e9e8639d7627612339d0b8693c24c6899b6 cc-engine.el
--- a/cc-engine.el
+++ b/cc-engine.el
@@ -9880,6 +9880,18 @@
;; contains any class offset
)))
+ ;; CASE 5P: AWK pattern or function or continuation
+ ;; thereof.
+ ((c-major-mode-is 'awk-mode)
+ (setq placeholder (point))
+ (c-add-stmt-syntax
+ (if (and (eq (c-beginning-of-statement-1) 'same)
+ (/= (point) placeholder))
+ 'topmost-intro-cont
+ 'topmost-intro)
+ nil nil
+ containing-sexp paren-state))
+
;; CASE 5D: this could be a top-level initialization, a
;; member init list continuation, or a template argument
;; list continuation.
@@ -10039,18 +10051,6 @@
(goto-char (point-min)))
(c-add-syntax 'objc-method-intro (c-point 'boi)))
- ;; CASE 5P: AWK pattern or function or continuation
- ;; thereof.
- ((c-major-mode-is 'awk-mode)
- (setq placeholder (point))
- (c-add-stmt-syntax
- (if (and (eq (c-beginning-of-statement-1) 'same)
- (/= (point) placeholder))
- 'topmost-intro-cont
- 'topmost-intro)
- nil nil
- containing-sexp paren-state))
-
;; CASE 5N: At a variable declaration that follows a class
;; definition or some other block declaration that doesn't
;; end at the closing '}'. C.f. case 5D.5.
Repository URL:
https://bitbucket.org/xemacs/cc-mode/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches