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.
This commit is contained in:
parent
90358248e3
commit
bf85306c7f
|
@ -15,7 +15,7 @@ syntax sync fromstart
|
|||
|
||||
syntax match StartifySpecial /\V<empty buffer>\|<quit>/
|
||||
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 .'/'
|
||||
|
|
Loading…
Reference in a new issue