e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
39 lines
991 B
Text
39 lines
991 B
Text
Before:
|
|
runtime ale_linters/awk/gawk.vim
|
|
|
|
After:
|
|
call ale#linter#Reset()
|
|
|
|
Execute(gawk syntax errors should be parsed correctly):
|
|
|
|
AssertEqual
|
|
\ [
|
|
\ {
|
|
\ 'lnum': 1,
|
|
\ 'col': 0,
|
|
\ 'text': "invalid char ''' in expression",
|
|
\ 'code': 0,
|
|
\ 'type': 'E',
|
|
\ },
|
|
\ {
|
|
\ 'lnum': 5,
|
|
\ 'col': 0,
|
|
\ 'text': 'unterminated string',
|
|
\ 'code': 0,
|
|
\ 'type': 'E',
|
|
\ },
|
|
\ {
|
|
\ 'lnum': 10,
|
|
\ 'col': 0,
|
|
\ 'text': "escape sequence `\u' treated as plain `u'",
|
|
\ 'code': 0,
|
|
\ 'type': 'W',
|
|
\ },
|
|
\ ],
|
|
\ ale#handlers#gawk#HandleGawkFormat(347, [
|
|
\ "gawk: something.awk:1: BEGIN { system('touch aaaaaaaaa') }",
|
|
\ "gawk: something.awk:1: ^ invalid char ''' in expression",
|
|
\ 'gawk: something.awk:5: { x = "aaaaaaaaaaa',
|
|
\ 'gawk: something.awk:5: ^ unterminated string',
|
|
\ "gawk: something.awk:10: warning: escape sequence `\u' treated as plain `u'",
|
|
\ ])
|