commit ec682b1f9b41a6d7a154563be68f502f6a381be6
parent 7a15d9879ffa7c27f1e650ec76774df8d386734b
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Wed, 2 Jul 2008 22:24:31 +1200
fix bookmark highlighting and make it "quieter"
highlighting was still broken for bookmarks that werent alphanumeric
w/underscores. Also, highlight the path parts of the bookmarks table as
"normal" so they dont demand as much attention
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -2558,11 +2558,11 @@ function! s:SetupSyntaxHighlighting()
"highlighting for bookmarks
syn match treeBookmark # {.*}#hs=s+1
- "highlighting for the bookmarks display
+ "highlighting for the bookmarks table
syn match treeBookmarksLeader #^>#
- syn match treeBookmarksHeader #^>-\+Bookmarks-\+# contains=treeBookmarksLeader
- syn match treeBookmarkName #^>[a-zA-Z1-9_]\{-} #he=e-1 contains=treeBookmarksLeader
- syn match treeBookmark #^>.*$# contains=treeBookmarksLeader,treeBookmarkName
+ syn match treeBookmarksHeader #^>-\+Bookmarks-\+$# contains=treeBookmarksLeader
+ syn match treeBookmarkName #^>.\{-} #he=e-1 contains=treeBookmarksLeader
+ syn match treeBookmark #^>.*$# contains=treeBookmarksLeader,treeBookmarkName,treeBookmarksHeader
if g:NERDChristmasTree
hi def link treePart Special
@@ -2578,10 +2578,10 @@ function! s:SetupSyntaxHighlighting()
hi def link treeClosable Title
endif
- hi def link treeBookmarksHeader macro
+ hi def link treeBookmarksHeader statement
hi def link treeBookmarksLeader ignore
hi def link treeBookmarkName Identifier
- hi def link treeBookmark Statement
+ hi def link treeBookmark normal
hi def link treeHelp String
hi def link treeHelpKey Identifier