diff --git a/ale_linters/verilog/xvlog.vim b/ale_linters/verilog/xvlog.vim index 98b5aae72a..85d45aa390 100644 --- a/ale_linters/verilog/xvlog.vim +++ b/ale_linters/verilog/xvlog.vim @@ -2,7 +2,12 @@ " Description: Adds support for Xilinx Vivado `xvlog` Verilog compiler/checker call ale#Set('verilog_xvlog_executable', 'xvlog') -call ale#Set('verilog_xvlog_options', '') + +if &filetype == 'systemverilog' + call ale#Set('verilog_xvlog_options', '-sv') +else + call ale#Set('verilog_xvlog_options', '') +endif function! ale_linters#verilog#xvlog#GetCommand(buffer) abort return '%e ' . ale#Pad(ale#Var(a:buffer, 'verilog_xvlog_options')) . ' %t'