diff options
| author | Alan Mackenzie | 2016-06-01 13:31:47 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2016-06-01 13:31:47 +0000 |
| commit | cd66716bafdd08467b84b226e41c34c9dab66aa8 (patch) | |
| tree | bbcc1c511bd56c472a43095dd4a7291bd5531e5e | |
| parent | d18b846b4e5667b3d8e47940f3b61d4dc0e7df89 (diff) | |
| download | emacs-cd66716bafdd08467b84b226e41c34c9dab66aa8.tar.gz emacs-cd66716bafdd08467b84b226e41c34c9dab66aa8.zip | |
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".
| -rw-r--r-- | lisp/progmodes/cc-langs.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 6f4d1f16857..18f1cc4374a 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 | |||
| 1794 | not the type face." | 1794 | not the type face." |
| 1795 | t nil | 1795 | t nil |
| 1796 | c '("const" "restrict" "volatile") | 1796 | c '("const" "restrict" "volatile") |
| 1797 | c++ '("const" "constexpr" "noexcept" "volatile" "throw" "final" "override") | 1797 | c++ '("const" "noexcept" "volatile" "throw" "final" "override") |
| 1798 | objc '("const" "volatile")) | 1798 | objc '("const" "volatile")) |
| 1799 | 1799 | ||
| 1800 | (c-lang-defconst c-opt-type-modifier-key | 1800 | (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', | |||
| 1996 | will be handled." | 1996 | will be handled." |
| 1997 | t nil | 1997 | t nil |
| 1998 | (c c++) '("auto" "extern" "inline" "register" "static") | 1998 | (c c++) '("auto" "extern" "inline" "register" "static") |
| 1999 | c++ (append '("explicit" "friend" "mutable" "template" "thread_local" | 1999 | c++ (append '("constexpr" "explicit" "friend" "mutable" "template" |
| 2000 | "using" "virtual") | 2000 | "thread_local" "using" "virtual") |
| 2001 | (c-lang-const c-modifier-kwds)) | 2001 | (c-lang-const c-modifier-kwds)) |
| 2002 | objc '("auto" "bycopy" "byref" "extern" "in" "inout" "oneway" "out" "static") | 2002 | objc '("auto" "bycopy" "byref" "extern" "in" "inout" "oneway" "out" "static") |
| 2003 | ;; FIXME: Some of those below ought to be on `c-other-decl-kwds' instead. | 2003 | ;; FIXME: Some of those below ought to be on `c-other-decl-kwds' instead. |