Skip to content

Commit

Permalink
Vimlint: better highlighting for l:var.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcd047 committed Feb 8, 2014
1 parent ca717b2 commit ef9055f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions syntax_checkers/vim/vimlint.vim
Expand Up @@ -22,6 +22,13 @@ function! SyntaxCheckers_vim_vimlint_GetHighlightRegex(item)
let term = matchstr(a:item['text'], '\m `\zs[^`]\+\ze`')
if term != ''
let col = get(a:item, 'col', 0)

if col && term[0:1] ==# 'l:'
if getline(a:item.lnum)[col-1:col] !=# 'l:'
let term = term[2:]
endif
endif

return '\V' . (col ? '\%' . col . 'c' : '') . term
endif

Expand Down

0 comments on commit ef9055f

Please sign in to comment.