Skip to content

Commit

Permalink
simplify regexp on highlight function
Browse files Browse the repository at this point in the history
  • Loading branch information
kassio committed Jun 3, 2014
1 parent 63dbfed commit d5e83b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function! s:highlight(args)
return
endif

let @/ = matchstr(a:args, "\\v(-{1,2})@<!\\s\\zs\\w+\>|['\"]\\zs.{-}\\ze['\"]")
let @/ = matchstr(a:args, "\\v[^-]{1,2}\\s\\zs\\w+\>|['\"]\\zs.{-}\\ze['\"]")
call feedkeys(":let &l:hlsearch=1 \| echo \<CR>", "n")
endfunction

Expand Down

0 comments on commit d5e83b2

Please sign in to comment.