emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master cd66716: Correct fontification and indentation of C


From: Alan Mackenzie
Subject: [Emacs-diffs] master cd66716: Correct fontification and indentation of C++'s "constexpr" expressions
Date: Wed, 1 Jun 2016 13:33:26 +0000 (UTC)

branch: master
commit cd66716bafdd08467b84b226e41c34c9dab66aa8
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>

    Correct fontification and indentation of C++'s "constexpr" expressions
    
    * lisp/progmodes/cc-langs.el (c-type-modifier-kwds): Remove "constexpr".
    (c-modifier-kwds): Add "constexpr".
---
 lisp/progmodes/cc-langs.el |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index 6f4d1f1..18f1cc4 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -1794,7 +1794,7 @@ but they don't build a type of themselves.  Unlike the 
keywords on
 not the type face."
   t    nil
   c    '("const" "restrict" "volatile")
-  c++  '("const" "constexpr" "noexcept" "volatile" "throw" "final" "override")
+  c++  '("const" "noexcept" "volatile" "throw" "final" "override")
   objc '("const" "volatile"))
 
 (c-lang-defconst c-opt-type-modifier-key
@@ -1996,8 +1996,8 @@ If any of these also are on `c-type-list-kwds', 
`c-ref-list-kwds',
 will be handled."
   t    nil
   (c c++) '("auto" "extern" "inline" "register" "static")
-  c++  (append '("explicit" "friend" "mutable" "template" "thread_local"
-                 "using" "virtual")
+  c++  (append '("constexpr" "explicit" "friend" "mutable" "template"
+                "thread_local" "using" "virtual")
               (c-lang-const c-modifier-kwds))
   objc '("auto" "bycopy" "byref" "extern" "in" "inout" "oneway" "out" "static")
   ;; FIXME: Some of those below ought to be on `c-other-decl-kwds' instead.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]