X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.vim%2Fsyntax%2Fundotree.vim;fp=.vim%2Fsyntax%2Fundotree.vim;h=a900e6b908bd72376c9afa54422d74bc3acb03b8;hp=0000000000000000000000000000000000000000;hb=258f3a24443b7ee061512fc1d749a37562a05dc6;hpb=a5faa5cee1dcee79c1d576559f892333e6539d24 diff --git a/.vim/syntax/undotree.vim b/.vim/syntax/undotree.vim new file mode 100644 index 0000000..a900e6b --- /dev/null +++ b/.vim/syntax/undotree.vim @@ -0,0 +1,37 @@ +"================================================= +" File: undotree.vim +" Description: undotree syntax +" Author: Ming Bai +" License: BSD + +syn match UndotreeNode ' \zs\*\ze ' +syn match UndotreeNodeCurrent '\zs\*\ze.*>\d\+<' +syn match UndotreeTimeStamp '(.*)$' +syn match UndotreeFirstNode 'Original' +syn match UndotreeBranch '[|/\\]' +syn match UndotreeSeq ' \zs\d\+\ze ' +syn match UndotreeCurrent '>\d\+<' +syn match UndotreeNext '{\d\+}' +syn match UndotreeHead '\[\d\+]' +syn match UndotreeHelp '^".*$' contains=UndotreeHelpKey,UndotreeHelpTitle +syn match UndotreeHelpKey '^" \zs.\{-}\ze:' contained +syn match UndotreeHelpTitle '===.*===' contained +syn match UndotreeSavedSmall ' \zss\ze ' +syn match UndotreeSavedBig ' \zsS\ze ' + +hi def link UndotreeNode Question +hi def link UndotreeNodeCurrent Statement +hi def link UndotreeTimeStamp Function +hi def link UndotreeFirstNode Function +hi def link UndotreeBranch Constant +hi def link UndotreeSeq Comment +hi def link UndotreeCurrent Statement +hi def link UndotreeNext Type +hi def link UndotreeHead Identifier +hi def link UndotreeHelp Comment +hi def link UndotreeHelpKey Function +hi def link UndotreeHelpTitle Type +hi def link UndotreeSavedSmall WarningMsg +hi def link UndotreeSavedBig MatchParen + +" vim: set et fdm=marker sts=4 sw=4: