2017-11-15 12:21:17 -05:00
|
|
|
Before:
|
2017-03-25 19:02:59 -04:00
|
|
|
runtime ale_linters/asm/gcc.vim
|
|
|
|
|
2017-11-15 12:21:17 -05:00
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute(The asm GCC handler should parse lines from GCC 6.3.1 correctly):
|
|
|
|
|
2017-03-25 19:02:59 -04:00
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 38,
|
|
|
|
\ 'text': "too many memory references for `mov'",
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 42,
|
|
|
|
\ 'text': "incorrect register `%ax' used with `l' suffix",
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
|
|
|
\ ],
|
|
|
|
\ ale_linters#asm#gcc#Handle(357, [
|
|
|
|
\ "{standard input}: Assembler messages:",
|
|
|
|
\ "{standard_input}:38: Error: too many memory references for `mov'",
|
|
|
|
\ "{standard input}:42: Error: incorrect register `%ax' used with `l' suffix",
|
|
|
|
\ ])
|