Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 9c75c3876a
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (50 sloc) 3.124 kb
" ---------------------------------------------------------------------------------
" file: gitlog (syntax file)
" desc: This file holds the syntax highlighting for the gitlog plugin.
" author: Peter Antoine
" date: 11/12/2012 14:29:38
" ---------------------------------------------------------------------------------
" Copyright (c) 2012 Peter Antoine
" All rights Reserved.
" Released Under the Artistic Licence
" ---------------------------------------------------------------------------------
" Quit when a syntax file was already loaded
if exists("b:current_syntax")
let b:current_syntax = "gl"
"highlight the branch window
syn region glBranchLine start="^ " start="^\* " start="^> " skip=" [0-9A-Za-z\/\._\-#]\+\s\+ \x\x\x\x\x\x\x " end="$" contains=glCurrentBranchName,glSelectBranchName,glBranchHash,glLogMessage,@NoSpell keepend
syn match glCurrentBranchName "^\* [0-9A-Za-z\/\._\-#]\+\s\+"hs=s+2 contained containedin=glBranchLine nextgroup=glBranchHash
syn match glSelectBranchName "^> [0-9A-Za-z\/\._\-#]\+\s\+"hs=s+2 contained containedin=glBranchLine nextgroup=glBranchHash
syn match glBranchName "^ [0-9A-Za-z\/\._\-#]\+\s\+"hs=s+2 contained containedin=glBranchLine nextgroup=glBranchHash
syn match glBranchHash "\x\x\x\x\x\x\x" contained contains=@NoSpell containedin=glBranchLine nextgroup=glBranchMessage
hi link glBranchHash Character
hi link glCurrentBranchName Constant
hi link glSelectBranchName WarningMsg
hi link glBranchName Comment
hi link glBranchLine Comment
" highlighting for for the search window
syn region glSearch start="^\x\x\x\x\x\x\x:" end="$" keepend contains=glSearchHash,glSearchFileName,glSearchLineNumber,glSearchMessage,@NoSpell
syn match glSearchHash "\x\x\x\x\x\x\x" contained nextgroup=glSearchFileName contains=@NoSpell containedin=glSearch
syn match glSearchFileName ":[0-9A-Za-z\/\._\-]\+"hs=s+1 contained nextgroup=glSearchLineNumber contains=@NoSpell containedin=glSearch
syn match glSearchLineNumber ":[0-9]\+"hs=s+1 contained nextgroup=glSearchMessage containedin=glSearch
syn match glSearchMessage ":.\+$"hs=s+1 contained containedin=glSearch
" highlights
hi link glSearchHash Character
hi link glSearchFileName Directory
hi link glSearchLineNumber LineNr
hi link glSearchMessage Comment
"highlight the log window
syn region glLog start="^\* \x\x\x\x\x\x\x\s[0-9A-Za-z\/\._\-#@]" end="$" contains=glLogHash,glLogMessage,@NoSpell keepend
syn match glBranchMessage "\s[0-9A-Za-z\/\._\-#@]\+" contained containedin=glLog,glBranchLine
syn match glLogHash " \x\x\x\x\x\x\x" contained containedin=glLog nextgroup=glBranchMessage
syn region glBranchHeader start="^branch:" end="$" keepend contains=glBranch,glBranchName
syn keyword glBranch contained branch
syn match glBranchName ": [0-9A-Za-z\/\._\-#]\+" contained containedin=glBranchHeader
hi link glLog Normal
hi link glLogHash Character
hi link glBranch Identifier
hi link glBranchName Special
hi link glBranchMessage Comment
Jump to Line
Something went wrong with that request. Please try again.