"typedef example
syn keyword cType hello
if placed within ~/.vim/after/syntax/ as "c.vim" the following snippet (test.h, it seems limited to header files) is properly highlighted (even though :set syntax reports it as cpp)
extern hello goodbye;
but if the same c.vim file is instead placed into ~/.vim/after/syntax/c/ as "types.vim", it is not highlighted unless explicitly set to syntax=c
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
I would say, this works as expected. syntax/cpp.vim explicitly only sources syntax/c.vim and no other file. I am closing this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.