This plugin is basically the copy of 'justinmk/vim-syntax-extra'
I copy it for customization.
For more information, please refer to the page above.
- Add
syn match cType "\v[A-Z][a-z0-9]+"
to the first line of c.vim to highlight the words start with captical letter.
Thus, the Node
below will be highlighted.
typedef struct Node Node
Node{
int value;
Node *next;
};
- Remove
cType
in following line
syn match cUserFunction "\<\h\w*\>\(\s\|\n\)*("me=e-1 contains=cType,cDelimiter,cDefine
in c.vim for not overwriting the highlight of user defined function.
- Make comments and strings in c italicized.