Skip to content

Huang-Tsu/vim-syntax-extra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

vim-syntax-extra

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.


Things I customized:

  1. 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;
};

  1. 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.


  1. Make comments and strings in c italicized.

About

Vim syntax highlighting for c, bison, flex

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%