2 function! syntastic#ErrorBalloonExpr()
3 if !exists('b:syntastic_balloons') | return '' | endif
4 return get(b:syntastic_balloons, v:beval_lnum, '')
7 function! syntastic#HighlightErrors(errors, termfunc, ...)
9 let forcecb = a:0 && a:1
11 let group = item['type'] == 'E' ? 'SpellBad' : 'SpellCap'
12 if item['col'] && !forcecb
13 let lastcol = col([item['lnum'], '$'])
14 let lcol = min([lastcol, item['col']])
15 call matchadd(group, '\%'.item['lnum'].'l\%'.lcol.'c')
17 let term = a:termfunc(item)
19 call matchadd(group, '\%' . item['lnum'] . 'l' . term)