Add end_lnum and end_col in cfn_python_lint handler

This commit is contained in:
yasuhiroki
2018-06-13 09:10:22 +09:00
parent ae25d71fa8
commit eabf5d55d6
2 changed files with 6 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ function! ale_linters#cloudformation#cfn_python_lint#Handle(buffer, lines) abort
call add(l:output, {
\ 'lnum': l:match[2] + 0,
\ 'col': l:match[3] + 0,
\ 'end_lnum': l:match[4] + 0,
\ 'end_col': l:match[5] + 0,
\ 'text': l:match[7],
\ 'code': l:code,
\ 'type': l:code[:0] is# 'E' ? 'E' : 'W',