Fix Number/Select highlighting for corner cases
This commit is contained in:
parent
9102978c7b
commit
4b9e87cdda
|
@ -485,7 +485,7 @@ function! s:set_mark(type) abort
|
||||||
let s:marked = {}
|
let s:marked = {}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let [id, path] = matchlist(getline('.'), '\v\[(.*)\]\s+(.*)')[1:2]
|
let [id, path] = matchlist(getline('.'), '\v\[(.{-})\]\s+(.{-})')[1:2]
|
||||||
let path = fnamemodify(path, ':p')
|
let path = fnamemodify(path, ':p')
|
||||||
|
|
||||||
if path =~# '\V<empty buffer>\|<quit>' || path =~# '^\w\+$'
|
if path =~# '\V<empty buffer>\|<quit>' || path =~# '^\w\+$'
|
||||||
|
|
|
@ -17,8 +17,8 @@ syntax match StartifyBracket /.*\%9c/ contains=
|
||||||
\ StartifyNumber,
|
\ StartifyNumber,
|
||||||
\ StartifySelect,
|
\ StartifySelect,
|
||||||
syntax match StartifySpecial /\V<empty buffer>\|<quit>/
|
syntax match StartifySpecial /\V<empty buffer>\|<quit>/
|
||||||
syntax match StartifyNumber /^\s*\[\zs[^BSVT]*\ze\]/
|
syntax match StartifyNumber /^\s*\[\zs[^BSVT]\{-}\ze\]/
|
||||||
syntax match StartifySelect /^\s*\[\zs[BSVT]*\ze\]/
|
syntax match StartifySelect /^\s*\[\zs[BSVT]\{-}\ze\]/
|
||||||
syntax match StartifyFile /.*/ contains=
|
syntax match StartifyFile /.*/ contains=
|
||||||
\ StartifyBracket,
|
\ StartifyBracket,
|
||||||
\ StartifyPath,
|
\ StartifyPath,
|
||||||
|
|
Loading…
Reference in a new issue