Haxe: fix escaping; add highlighting.
This commit is contained in:
parent
02a04d0766
commit
1220888334
@ -30,14 +30,22 @@ function! SyntaxCheckers_haxe_haxe_GetLocList() dict
|
|||||||
|
|
||||||
if hxml != ''
|
if hxml != ''
|
||||||
let makeprg = self.makeprgBuild({
|
let makeprg = self.makeprgBuild({
|
||||||
\ 'fname': syntastic#util#shescape(fnameescape(fnamemodify(hxml, ':t'))) })
|
\ 'fname': syntastic#util#shescape(fnamemodify(hxml, ':t')) })
|
||||||
|
|
||||||
let errorformat = '%E%f:%l: characters %c-%*[0-9] : %m'
|
let errorformat = '%E%f:%l: characters %c-%n : %m'
|
||||||
|
|
||||||
return SyntasticMake({
|
let loclist = SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
\ 'cwd': fnamemodify(hxml, ':h') })
|
\ 'cwd': fnamemodify(hxml, ':h') })
|
||||||
|
|
||||||
|
for e in loclist
|
||||||
|
let e['hl'] = '\%>' . e['col'] . 'c\%<' . (e['nr'] + 1) . 'c'
|
||||||
|
let e['col'] += 1
|
||||||
|
let e['nr'] = 0
|
||||||
|
endfor
|
||||||
|
|
||||||
|
return loclist
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return []
|
return []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user