mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-15 02:31:11 +08:00
Slang linter for Verilog. (#4713)
This commit is contained in:
1 parent
1c5b84f375
commit
52c6146751
8 files changed
+112
-4
No files matched your search
@@ -0,0 +1,26 @@
|
||||
Before:
|
||||
runtime ale_linters/verilog/slang.vim
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The slang handler should parse lines correctly):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 11,
|
||||
\ 'col': 1,
|
||||
\ 'type': 'W',
|
||||
\ 'text': 'extra '';'' has no effect [-Wempty-member]',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 24,
|
||||
\ 'col': 12,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'cannot mix continuous and procedural assignments to variable ''data_o''',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#verilog#slang#Handle(bufnr(''), [
|
||||
\ 'foo.sv:11:1: warning: extra '';'' has no effect [-Wempty-member]',
|
||||
\ 'foo.sv:24:12: error: cannot mix continuous and procedural assignments to variable ''data_o''',
|
||||
\ ])
|
||||
Reference in new issue
Block a user