1
0
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:
wsdjeg 2017-12-05 21:53:36 +08:00
parent e9826e3fae
commit 3673b17a7d
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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)