From 685f2546fd8af89ee21f978f6ce4b19a69a755c1 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 21 Aug 2014 13:29:30 +0200 Subject: [PATCH] Update syntax to handle [ and ] in paths --- syntax/startify.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/startify.vim b/syntax/startify.vim index a66e5da..6d5b8b3 100644 --- a/syntax/startify.vim +++ b/syntax/startify.vim @@ -14,8 +14,8 @@ let s:sep = startify#get_separator() syntax sync fromstart syntax match StartifySpecial /\V\|/ -syntax match StartifyBracket /\[\|\]/ -syntax match StartifyNumber /\[[^BSV]\+\]/hs=s+1,he=e-1 contains=StartifyBracket +syntax match StartifyBracket /.*\%9c/ contains=StartifyNumber +syntax match StartifyNumber /\[[^BSTV]\{-1,2}\]/hs=s+1,he=e-1 syntax match StartifyFile /.*/ contains=StartifyBracket,StartifyNumber,StartifyPath,StartifySpecial execute 'syntax match StartifySlash /\'. s:sep .'/'