mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 06:50:04 +08:00
Fix: Flygrep match pattern override FileName
This commit is contained in:
parent
e9826e3fae
commit
3673b17a7d
@ -41,7 +41,7 @@ function! s:flygrep(expr) abort
|
||||
catch
|
||||
endtr
|
||||
hi def link FileNames MoreMsg
|
||||
call matchadd('FileNames', a:expr)
|
||||
call matchadd('FileNames', a:expr, 1)
|
||||
let s:grep_expr = a:expr
|
||||
let s:grep_timer_id = timer_start(500, funcref('s:grep_timer'), {'repeat' : 1})
|
||||
endfunction
|
||||
|
@ -1,8 +1,8 @@
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
finish
|
||||
endif
|
||||
let b:current_syntax = "SpaceVimFlyGrep"
|
||||
syntax case ignore
|
||||
syn match FileName /[^:]*:\d\+:/
|
||||
|
||||
hi def link FileName Comment
|
||||
call matchadd('FileName', '[^:]*:\d\+:', 2)
|
||||
|
Loading…
Reference in New Issue
Block a user