Commit 5c0fb39c authored by Rüdiger Sonderfeld's avatar Rüdiger Sonderfeld

hideif.el: Recognize .h++ as C++ header.

* lisp/progmodes/hideif.el (hide-ifdef-header-regexp): Add .h++.
parent 28854f27
......@@ -702,7 +702,7 @@ non-integer inputs.
interactive macro evaluation and automatic scanning of #defined symbols.
*** New custom variable `hide-ifdef-header-regexp' to define C/C++ header file
name patterns. Default case-insensitive .h, .hh, .hpp and .hxx.
name patterns. Default case-insensitive .h, .hh, .hpp, .hxx, and .h++.
*** New custom variable `hide-ifdef-expand-reinclusion-protection' to prevent
reinclusion protected header files from being fully hidden.
*** New custom variable `hide-ifdef-exclude-define-regexp' to define symbol
......
......@@ -164,7 +164,7 @@ This behavior is generally undesirable. If this option is non-nil, the outermos
:version "25.1")
(defcustom hide-ifdef-header-regexp
"\\.h\\(h\\|xx\\|pp\\)?\\'"
"\\.h\\(h\\|xx\\|pp\\|\\+\\+\\)?\\'"
"C/C++ header file name patterns to determine if current buffer is a header.
Effective only if `hide-ifdef-expand-reinclusion-protection' is t."
:type 'string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment