From bf85306c7f32f558b5e60bf2adbe3c747ed698c5 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 21 Aug 2014 19:36:58 +0200 Subject: [PATCH] Fix syntax for the "~/[foo].txt" case Thanks to my local regexp wizard, @Osse, for helping me coming up with the proper regexp. References #82. --- syntax/startify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/startify.vim b/syntax/startify.vim index 6d5b8b3..23ab833 100644 --- a/syntax/startify.vim +++ b/syntax/startify.vim @@ -15,7 +15,7 @@ syntax sync fromstart syntax match StartifySpecial /\V\|/ syntax match StartifyBracket /.*\%9c/ contains=StartifyNumber -syntax match StartifyNumber /\[[^BSTV]\{-1,2}\]/hs=s+1,he=e-1 +syntax match StartifyNumber /^\s*\zs[^BSVT]*\]\ze\s/hs=s+1,he=e-1 syntax match StartifyFile /.*/ contains=StartifyBracket,StartifyNumber,StartifyPath,StartifySpecial execute 'syntax match StartifySlash /\'. s:sep .'/'