Permalink
Browse files

syntax for Vcs log.

  • Loading branch information...
mattn committed Jan 31, 2012
1 parent 2acebe7 commit 584c380bd2548a79ff0b6ca19a17086a67ef8ee6
Showing with 17 additions and 1 deletion.
  1. +1 −1 autoload/vcs/cmd/log.vim
  2. +16 −0 syntax/vcs-log.vim
View
@@ -27,7 +27,7 @@ function! s:cmd.execute(type, ...)
silent % delete _
silent 1 put =log
silent 1 delete _
- setlocal buftype=nofile readonly
+ setlocal buftype=nofile readonly filetype=vcs-log
endfunction
View
@@ -0,0 +1,16 @@
+" Syntax file for vcs-commit of vcs.vim.
+" Version: 0.1.0
+" Author : thinca <thinca+vim@gmail.com>
+" License: Creative Commons Attribution 2.1 Japan License
+" <http://creativecommons.org/licenses/by/2.1/jp/deed.en>
+
+if exists('b:current_syntax')
+ finish
+endif
+syntax sync fromstart
+
+syn match vcsLogRevision "^\(commit\|changeset\).*$"
+
+highlight default link vcsLogRevision Special
+
+let b:current_syntax = "vcs-log"

0 comments on commit 584c380

Please sign in to comment.