Update syntax to handle [ and ] in paths
This commit is contained in:
parent
b37d42509b
commit
685f2546fd
|
@ -14,8 +14,8 @@ let s:sep = startify#get_separator()
|
||||||
syntax sync fromstart
|
syntax sync fromstart
|
||||||
|
|
||||||
syntax match StartifySpecial /\V<empty buffer>\|<quit>/
|
syntax match StartifySpecial /\V<empty buffer>\|<quit>/
|
||||||
syntax match StartifyBracket /\[\|\]/
|
syntax match StartifyBracket /.*\%9c/ contains=StartifyNumber
|
||||||
syntax match StartifyNumber /\[[^BSV]\+\]/hs=s+1,he=e-1 contains=StartifyBracket
|
syntax match StartifyNumber /\[[^BSTV]\{-1,2}\]/hs=s+1,he=e-1
|
||||||
syntax match StartifyFile /.*/ contains=StartifyBracket,StartifyNumber,StartifyPath,StartifySpecial
|
syntax match StartifyFile /.*/ contains=StartifyBracket,StartifyNumber,StartifyPath,StartifySpecial
|
||||||
|
|
||||||
execute 'syntax match StartifySlash /\'. s:sep .'/'
|
execute 'syntax match StartifySlash /\'. s:sep .'/'
|
||||||
|
|
Loading…
Reference in a new issue