robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Barrett Ruthfix(ftplugin): source inherited Lua ftplugins0bb2f5cc08

master
1.3 KiB45 linesraw
1" Vim filetype plugin file
2" Language:    SystemVerilog
3" Maintainer:  kocha <kocha.lsifrontend@gmail.com>
4" Last Change: 07-May-2021
5" 2026 Feb 13 by Vim project: correct matchit covergroup block #19394
6
7if exists("b:did_ftplugin")
8  finish
9endif
10
11" Behaves just like Verilog
12runtime! ftplugin/verilog[.]{vim,lua}
13
14let s:cpo_save = &cpo
15set cpo&vim
16
17" Add SystemVerilog keywords for matchit plugin.
18if exists("loaded_matchit")
19  let b:match_words =
20    \ '\<begin\>:\<end\>,' .
21    \ '\<case\>\|\<casex\>\|\<casez\>:\<endcase\>,' .
22    \ '\<module\>:\<endmodule\>,' .
23    \ '\<if\>:`\@<!\<else\>,' .
24    \ '\<function\>:\<endfunction\>,' .
25    \ '`ifn\?def\>:`elsif\>:`else\>:`endif\>,' .
26    \ '\<task\>:\<endtask\>,' .
27    \ '\<specify\>:\<endspecify\>,' .
28    \ '\<config\>:\<endconfig\>,' .
29    \ '\<generate\>:\<endgenerate\>,' .
30    \ '\<fork\>:\<join\>\|\<join_any\>\|\<join_none\>,' .
31    \ '\<primitive\>:\<endprimitive\>,' .
32    \ '\<table\>:\<endtable\>,' .
33    \ '\<checker\>:\<endchecker\>,' .
34    \ '\<class\>:\<endclass\>,' .
35    \ '\<clocking\>:\<endclocking\>,' .
36    \ '\<covergroup\>:\<endgroup\>,' .
37    \ '\<interface\>:\<endinterface\>,' .
38    \ '\<package\>:\<endpackage\>,' .
39    \ '\<program\>:\<endprogram\>,' .
40    \ '\<property\>:\<endproperty\>,' .
41    \ '\<sequence\>:\<endsequence\>'
42endif
43
44let &cpo = s:cpo_save
45unlet s:cpo_save