[vim] c syntax highlighting issue (#702)

23 views
Skip to first unread message

havetodothis

unread,
Mar 20, 2016, 6:38:53 PM3/20/16
to vim/vim
"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

Christian Brabandt

unread,
Jun 28, 2016, 4:18:39 PM6/28/16
to vim/vim

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.

Christian Brabandt

unread,
Jun 28, 2016, 4:18:48 PM6/28/16
to vim/vim

Closed #702.


You are receiving this because you are subscribed to this thread.

Reply all
Reply to author
Forward
0 new messages