Restore C/C++ default-header-file-mode support

This commit is contained in:
Andrew Whatson 2019-02-26 10:26:19 +10:00
parent c4ed1031a5
commit 2d3937ac1f

View file

@ -70,9 +70,9 @@ preceded by the opening brace or a comma (disregarding whitespace in between)."
"\\|[-+] ([a-zA-Z0-9_]+)" "\\|[-+] ([a-zA-Z0-9_]+)"
"\\)"))) "\\)")))
(objc-mode)) (objc-mode))
((fboundp 'c-or-c++-mode) ; introduced in Emacs 26.1 ;; NOTE c-or-c++-mode was introduced in Emacs 26.1, but it doesn't
(c-or-c++-mode)) ;; support specification of a default/fallback mode
((+cc--re-search-for ; TODO Remove this along with Emacs 25 support ((+cc--re-search-for
(let ((id "[a-zA-Z0-9_]+") (ws "[ \t\r]+") (ws-maybe "[ \t\r]*")) (let ((id "[a-zA-Z0-9_]+") (ws "[ \t\r]+") (ws-maybe "[ \t\r]*"))
(concat "^" ws-maybe "\\(?:" (concat "^" ws-maybe "\\(?:"
"using" ws "\\(?:namespace" ws "std;\\|std::\\)" "using" ws "\\(?:namespace" ws "std;\\|std::\\)"