From 44dafb53cfee775bd3c71b8ec6f6e0ece29b6f2e Mon Sep 17 00:00:00 2001 From: Joe Mueller Date: Mon, 4 May 2015 13:33:40 -0700 Subject: add support to fold interface definitions --- lexers/LexVerilog.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lexers') diff --git a/lexers/LexVerilog.cxx b/lexers/LexVerilog.cxx index f0995be24..82b75844f 100644 --- a/lexers/LexVerilog.cxx +++ b/lexers/LexVerilog.cxx @@ -928,9 +928,10 @@ void SCI_METHOD LexerVerilog::Fold(unsigned int startPos, int length, int initSt if (styler.Match(j, "case") || styler.Match(j, "casex") || styler.Match(j, "casez") || + styler.Match(j, "covergroup") || styler.Match(j, "function") || styler.Match(j, "generate") || - styler.Match(j, "covergroup") || + styler.Match(j, "interface") || styler.Match(j, "package") || styler.Match(j, "primitive") || styler.Match(j, "program") || @@ -962,6 +963,7 @@ void SCI_METHOD LexerVerilog::Fold(unsigned int startPos, int length, int initSt styler.Match(j, "endfunction") || styler.Match(j, "endgenerate") || styler.Match(j, "endgroup") || + styler.Match(j, "endinterface") || styler.Match(j, "endpackage") || styler.Match(j, "endprimitive") || styler.Match(j, "endprogram") || -- cgit v1.2.3