xref: /vim-8.2.3635/runtime/syntax/cvs.vim (revision bb76f24a)
1" Vim syntax file
2" Language:	CVS commit file
3" Maintainer:	Matt Dunford ([email protected])
4" URL:		http://www.zotikos.com/downloads/cvs.vim
5" Last Change:	Sat Nov 24 23:25:11 CET 2001
6
7" quit when a syntax file was already loaded
8if exists("b:current_syntax")
9	finish
10endif
11
12syn region cvsLine start="^CVS: " end="$" contains=cvsFile,cvsCom,cvsFiles,cvsTag
13syn match cvsFile  contained " \t\(\(\S\+\) \)\+"
14syn match cvsTag   contained " Tag:"
15syn match cvsFiles contained "\(Added\|Modified\|Removed\) Files:"
16syn region cvsCom start="Committing in" end="$" contains=cvsDir contained extend keepend
17syn match cvsDir   contained "\S\+$"
18
19" Define the default highlighting.
20" Only when an item doesn't have highlighting yet
21
22hi def link cvsLine		Comment
23hi def link cvsDir		cvsFile
24hi def link cvsFile		Constant
25hi def link cvsFiles		cvsCom
26hi def link cvsTag		cvsCom
27hi def link cvsCom		Statement
28
29
30let b:current_syntax = "cvs"
31