mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:30:05 +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
|
catch
|
||||||
endtr
|
endtr
|
||||||
hi def link FileNames MoreMsg
|
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_expr = a:expr
|
||||||
let s:grep_timer_id = timer_start(500, funcref('s:grep_timer'), {'repeat' : 1})
|
let s:grep_timer_id = timer_start(500, funcref('s:grep_timer'), {'repeat' : 1})
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let b:current_syntax = "SpaceVimFlyGrep"
|
let b:current_syntax = "SpaceVimFlyGrep"
|
||||||
syntax case ignore
|
syntax case ignore
|
||||||
syn match FileName /[^:]*:\d\+:/
|
|
||||||
|
|
||||||
hi def link FileName Comment
|
hi def link FileName Comment
|
||||||
|
call matchadd('FileName', '[^:]*:\d\+:', 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user