Add g:brightest#ignore_word_pattern.

This commit is contained in:
manga_osyo
2014-08-01 00:47:06 +09:00
parent 4264cf672e
commit b8ddaf3a22

View File

@@ -14,6 +14,7 @@ let g:brightest#enable_filetypes = get(g:, "brightest#enable_filetypes", {})
" let g:brightest#highlight_format = get(g:, "brightest#highlight_format", "\\<%s\\>")
let g:brightest#ignore_syntax_list = get(g:, "brightest#ignore_syntax_list", [])
let g:brightest#ignore_word_pattern = get(g:, "brightest#ignore_word_pattern", "")
function! s:is_ignore_syntax_in_cursor()
@@ -63,6 +64,11 @@ function! s:single_word(pattern, highlight, cursorline)
return
endif
let ignore_word_pattern = get(b:, "brightest_ignore_word_pattern", g:brightest#ignore_word_pattern)
if !empty(ignore_word_pattern) && word =~ ignore_word_pattern
return
endif
let pattern = s:Prelude.escape_pattern(word)
if &cursorline && a:cursorline.group ==# "BrightestCursorLineBg"