Restore C/C++ default-header-file-mode support
This commit is contained in:
parent
c4ed1031a5
commit
2d3937ac1f
1 changed files with 3 additions and 3 deletions
|
@ -70,9 +70,9 @@ preceded by the opening brace or a comma (disregarding whitespace in between)."
|
|||
"\\|[-+] ([a-zA-Z0-9_]+)"
|
||||
"\\)")))
|
||||
(objc-mode))
|
||||
((fboundp 'c-or-c++-mode) ; introduced in Emacs 26.1
|
||||
(c-or-c++-mode))
|
||||
((+cc--re-search-for ; TODO Remove this along with Emacs 25 support
|
||||
;; NOTE c-or-c++-mode was introduced in Emacs 26.1, but it doesn't
|
||||
;; support specification of a default/fallback mode
|
||||
((+cc--re-search-for
|
||||
(let ((id "[a-zA-Z0-9_]+") (ws "[ \t\r]+") (ws-maybe "[ \t\r]*"))
|
||||
(concat "^" ws-maybe "\\(?:"
|
||||
"using" ws "\\(?:namespace" ws "std;\\|std::\\)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue