From ec682b1f9b41a6d7a154563be68f502f6a381be6 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 2 Jul 2008 22:24:31 +1200 Subject: [PATCH] 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 --- plugin/NERD_tree.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index b9a883c..b662c1f 100644 --- 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