]> code.delx.au - gnu-emacs/commitdiff
Correct fontification and indentation of C++'s "constexpr" expressions
authorAlan Mackenzie <acm@muc.de>
Wed, 1 Jun 2016 13:31:47 +0000 (13:31 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 1 Jun 2016 13:31:47 +0000 (13:31 +0000)
* lisp/progmodes/cc-langs.el (c-type-modifier-kwds): Remove "constexpr".
(c-modifier-kwds): Add "constexpr".

lisp/progmodes/cc-langs.el

index 6f4d1f16857f3ee91694b0955707fe961a9215be..18f1cc4374a9aa6ddb5a8f81cfdad2d255176d0b 100644 (file)
@@ -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.