add highlighting for bookmarks gui

This commit is contained in:
Martin Grenfell 2008-06-28 21:35:09 +12:00
parent 201df0a782
commit fc053917d8

View File

@ -2436,13 +2436,9 @@ function! s:SetupSyntaxHighlighting()
syn match treeHelpCommand #" :.\{-}\>#hs=s+3
syn match treeHelp #^".*# contains=treeHelpKey,treeHelpTitle,treeFlag,treeToggleOff,treeToggleOn,treeHelpCommand
"highlighting for readonly files
syn match treeRO #[\/0-9a-zA-Z]\+.*\[RO\]# contains=treeFlag,treeBookmark
"highlighting for bookmarks
syn match treeBookmark # {.*}#hs=s+1
"highlighting for sym links
syn match treeLink #[^-| `].* -> # contains=treeBookmark,treeOpenable,treeClosable,treeDirSlash
@ -2454,6 +2450,15 @@ function! s:SetupSyntaxHighlighting()
syn match treeFile #`-.*# contains=treeLink,treePart,treeRO,treePartFile,treeBookmark,treeExecFile
syn match treeCWD #^/.*$#
"highlighting for bookmarks
syn match treeBookmark # {.*}#hs=s+1
"highlighting for the bookmarks display
syn match treeBookmarksLeader #^>#
syn match treeBookmarksHeader #^>-\+Bookmarks-\+# contains=treeBookmarksLeader
syn match treeBookmarkName #^>[a-zA-Z_]\{-} #he=e-1 contains=treeBookmarksLeader
syn match treeBookmark #^>.*$# contains=treeBookmarksLeader,treeBookmarkName
if g:NERDChristmasTree
hi def link treePart Special
hi def link treePartFile Type
@ -2468,6 +2473,11 @@ function! s:SetupSyntaxHighlighting()
hi def link treeClosable Title
endif
hi def link treeBookmarksHeader macro
hi def link treeBookmarksLeader ignore
hi def link treeBookmarkName Identifier
hi def link treeBookmark Statement
hi def link treeHelp String
hi def link treeHelpKey Identifier
hi def link treeHelpCommand Identifier