]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/cc-fonts.el
Spelling fixes.
[gnu-emacs] / lisp / progmodes / cc-fonts.el
index fd817e3b4f48e59e4966d6e67b0219c1035127be..fa94af071f72b5998c486fea8b33593e0b5f3b7c 100644 (file)
                        (match-beginning ,(car highlight))
                        (match-end ,(car highlight))
                        ,(elt highlight 1))))
-               ;; highlight is an "ANCHORED HIGHLIGHER" of the form
+               ;; highlight is an "ANCHORED HIGHLIGHTER" of the form
                ;; (ANCHORED-MATCHER PRE-FORM POST-FORM SUBEXP-HIGHLIGHTERS...)
                (when (nth 3 highlight)
                  (error "Match highlights currently not supported in %s"
@@ -1103,7 +1103,7 @@ casts and declarations are fontified.  Used on level 2 and higher."
              (<= (point) limit))
 
            ;; Search syntactically to the end of the declarator (";",
-           ;; ",", a closen paren, eob etc) or to the beginning of an
+           ;; ",", a closing paren, eob etc) or to the beginning of an
            ;; initializer or function prototype ("=" or "\\s\(").
            ;; Note that the open paren will match array specs in
            ;; square brackets, and we treat them as initializers too.
@@ -1122,7 +1122,7 @@ casts and declarations are fontified.  Used on level 2 and higher."
                          (char-after (match-beginning 1))))
 
       (if types
-         ;; Register and fontify the identifer as a type.
+         ;; Register and fontify the identifier as a type.
          (let ((c-promote-possible-types t))
            (goto-char id-start)
            (c-forward-type))
@@ -1277,9 +1277,11 @@ casts and declarations are fontified.  Used on level 2 and higher."
         (when
          ;; The result of the form below is true when we don't recognize a
          ;; declaration or cast.
-         (if (and (eq (get-text-property (point) 'face)
-                      'font-lock-keyword-face)
-                  (looking-at c-not-decl-init-keywords))
+         (if (or (and (eq (get-text-property (point) 'face)
+                          'font-lock-keyword-face)
+                      (looking-at c-not-decl-init-keywords))
+                 (and c-macro-with-semi-re
+                      (looking-at c-macro-with-semi-re))) ; 2008-11-04
              ;; Don't do anything more if we're looking at a keyword that
              ;; can't start a declaration.
              t