mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-15 04:10:59 +08:00
Simplfy semver handling and share the semver version cache across everything
This commit is contained in:
@@ -18,18 +18,6 @@ function! s:RemoveUnicodeQuotes(text) abort
|
||||
return l:text
|
||||
endfunction
|
||||
|
||||
function! ale#handlers#gcc#ParseGCCVersion(lines) abort
|
||||
for l:line in a:lines
|
||||
let l:match = matchstr(l:line, '\d\.\d\.\d')
|
||||
|
||||
if !empty(l:match)
|
||||
return ale#semver#Parse(l:match)
|
||||
endif
|
||||
endfor
|
||||
|
||||
return []
|
||||
endfunction
|
||||
|
||||
function! ale#handlers#gcc#HandleGCCFormat(buffer, lines) abort
|
||||
" Look for lines like the following.
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user