mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-19 18:51:14 +08:00
Merge pull request #414 from lucaskolstad/add_asm_linter
Add support for ASM files using GCC
This commit is contained in:
32
test/handler/test_asm_handler.vader
Normal file
32
test/handler/test_asm_handler.vader
Normal file
@@ -0,0 +1,32 @@
|
||||
Execute(The asm GCC handler should parse lines from GCC 6.3.1 correctly):
|
||||
runtime ale_linters/asm/gcc.vim
|
||||
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'bufnr': 357,
|
||||
\ 'lnum': 38,
|
||||
\ 'vcol': 0,
|
||||
\ 'col': 0,
|
||||
\ 'text': "too many memory references for `mov'",
|
||||
\ 'type': 'E',
|
||||
\ 'nr': -1,
|
||||
\ },
|
||||
\ {
|
||||
\ 'bufnr': 357,
|
||||
\ 'lnum': 42,
|
||||
\ 'vcol': 0,
|
||||
\ 'col': 0,
|
||||
\ 'text': "incorrect register `%ax' used with `l' suffix",
|
||||
\ 'type': 'E',
|
||||
\ 'nr': -1,
|
||||
\ },
|
||||
\ ],
|
||||
\ 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",
|
||||
\ ])
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
Reference in New Issue
Block a user