Use a draft context for *.h c/cpp filetype decision

This commit is contained in:
Maxime Coste 2016-06-22 20:49:58 +01:00
parent 5cb9cf4cc3
commit a2d76e27b0

View File

@ -10,7 +10,7 @@ hook global BufCreate .*\.c$ %{
hook global BufCreate .*\.h$ %{
try %{
exec %{%s\b::\b|\btemplate\h*<lt>|\bclass\h+\w+|\b(typename|namespace)\b|\b(public|private|protected)\h*:<ret>}
exec -draft %{%s\b::\b|\btemplate\h*<lt>|\bclass\h+\w+|\b(typename|namespace)\b|\b(public|private|protected)\h*:<ret>}
set buffer filetype cpp
} catch %{
set buffer filetype c