Created
December 12, 2012 17:34
-
-
Save micdillon/4269842 to your computer and use it in GitHub Desktop.
Adds function definition highlighting to vim in the style of Github. Place in the ~/.vim/after/syntax/c/ directory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim syntax file | |
" Language: C Funcion Definitions | |
" Maintainer: Michael Dillon <mic.dillon@gmail.com> | |
" Last Change: 2012 Dec. 12 | |
" Version: 0.1 | |
" | |
syn match cUserFunctionDef "\<\h\w*\>\(\_s*(\_[^)]*)\_s*{\)\@=" | |
hi def link cUserFunctionDef cFunction | |
hi def link cFunction Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment