haxe and dartanalyzer: fix syntax highlighting.

This commit is contained in:
LCD 47 2014-04-21 08:41:44 +03:00
parent 618b41428b
commit 54bb9b4b8b
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ if has('reltime')
let g:syntastic_start = reltime() let g:syntastic_start = reltime()
endif endif
let g:syntastic_version = '3.4.0-37' let g:syntastic_version = '3.4.0-39'
" Sanity checks {{{1 " Sanity checks {{{1

View File

@ -21,7 +21,7 @@ function! SyntaxCheckers_dart_dartanalyzer_GetHighlightRegex(error)
if a:error['len'] if a:error['len']
let lcol = a:error['col'] - 1 let lcol = a:error['col'] - 1
let rcol = a:error['col'] + a:error['len'] let rcol = a:error['col'] + a:error['len']
let ret = '\%>' . lcol . 'c\%<' . rcol . 'c' let ret = '\%>' . lcol . 'c.*\%<' . rcol . 'c'
else else
let ret = '' let ret = ''
endif endif

View File

@ -40,7 +40,7 @@ function! SyntaxCheckers_haxe_haxe_GetLocList() dict
\ 'cwd': fnamemodify(hxml, ':h') }) \ 'cwd': fnamemodify(hxml, ':h') })
for e in loclist for e in loclist
let e['hl'] = '\%>' . e['col'] . 'c\%<' . (e['nr'] + 1) . 'c' let e['hl'] = '\%>' . e['col'] . 'c.*\%<' . (e['nr'] + 1) . 'c'
let e['col'] += 1 let e['col'] += 1
let e['nr'] = 0 let e['nr'] = 0
endfor endfor