Skip to content

Commit

Permalink
highlight include FOO_H
Browse files Browse the repository at this point in the history
fixes #43
  • Loading branch information
mattn committed Apr 26, 2017
1 parent d3d3800 commit 2f20cc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syntax/c.vim
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ if !exists("c_no_if0")
endif
syn region cIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+
syn match cIncluded display contained "<[^>]*>"
syn match cInclude display "^\s*\zs\(%:\|#\)\s*include\>\s*["<]" contains=cIncluded
syn match cIncluded display contained "[a-zA-Z_][a-zA-Z0-9_]*"
syn match cInclude display "^\s*\zs\(%:\|#\)\s*include\>\s*["<a-zA-Z]" contains=cIncluded
"syn match cLineSkip "\\$"
syn cluster cPreProcGroup contains=cPreCondit,cIncluded,cInclude,cDefine,cErrInParen,cErrInBracket,cUserLabel,cSpecial,cOctalZero,cCppOutWrapper,cCppInWrapper,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cString,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cParen,cBracket,cMulti,cBadBlock
syn region cDefine start="^\s*\zs\(%:\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
Expand Down

0 comments on commit 2f20cc5

Please # to comment.