vim-patch:10f5573: runtime(systemverilog): use correct matchit pattern for the covergroup block

A covergroup start with the "covergroup" keyword and ends with the
"endgroup" keyword. "group" is not even a reserved keyword in systemverilog.

Reference:
https://www.chipverify.com/systemverilog/systemverilog-covergroup-coverpoint#covergroup
https://github.com/MikePopoloski/slang/blob/master/docs/grammar.md#covergroup_declaration

closes: vim/vim#19393

10f5573672

Co-authored-by: TG <tarik.graba@telecom-paris.fr>
This commit is contained in:
zeertzjq
2026-02-14 06:55:23 +08:00
parent d49fe235f7
commit 97c39be164

View File

@@ -2,6 +2,7 @@
" Language: SystemVerilog
" Maintainer: kocha <kocha.lsifrontend@gmail.com>
" Last Change: 07-May-2021
" 2026 Feb 13 by Vim project: correct matchit covergroup block #19394
if exists("b:did_ftplugin")
finish
@@ -32,7 +33,7 @@ if exists("loaded_matchit")
\ '\<checker\>:\<endchecker\>,' .
\ '\<class\>:\<endclass\>,' .
\ '\<clocking\>:\<endclocking\>,' .
\ '\<group\>:\<endgroup\>,' .
\ '\<covergroup\>:\<endgroup\>,' .
\ '\<interface\>:\<endinterface\>,' .
\ '\<package\>:\<endpackage\>,' .
\ '\<program\>:\<endprogram\>,' .