Use a draft context for *.h c/cpp filetype decision
This commit is contained in:
parent
5cb9cf4cc3
commit
a2d76e27b0
|
@ -10,7 +10,7 @@ hook global BufCreate .*\.c$ %{
|
||||||
|
|
||||||
hook global BufCreate .*\.h$ %{
|
hook global BufCreate .*\.h$ %{
|
||||||
try %{
|
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
|
set buffer filetype cpp
|
||||||
} catch %{
|
} catch %{
|
||||||
set buffer filetype c
|
set buffer filetype c
|
||||||
|
|
Loading…
Reference in New Issue
Block a user