haxe and dartanalyzer: fix syntax highlighting.
This commit is contained in:
parent
618b41428b
commit
54bb9b4b8b
@ -18,7 +18,7 @@ if has('reltime')
|
||||
let g:syntastic_start = reltime()
|
||||
endif
|
||||
|
||||
let g:syntastic_version = '3.4.0-37'
|
||||
let g:syntastic_version = '3.4.0-39'
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
||||
|
@ -21,7 +21,7 @@ function! SyntaxCheckers_dart_dartanalyzer_GetHighlightRegex(error)
|
||||
if a:error['len']
|
||||
let lcol = a:error['col'] - 1
|
||||
let rcol = a:error['col'] + a:error['len']
|
||||
let ret = '\%>' . lcol . 'c\%<' . rcol . 'c'
|
||||
let ret = '\%>' . lcol . 'c.*\%<' . rcol . 'c'
|
||||
else
|
||||
let ret = ''
|
||||
endif
|
||||
|
@ -40,7 +40,7 @@ function! SyntaxCheckers_haxe_haxe_GetLocList() dict
|
||||
\ 'cwd': fnamemodify(hxml, ':h') })
|
||||
|
||||
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['nr'] = 0
|
||||
endfor
|
||||
|
Loading…
Reference in New Issue
Block a user