From 69d8e9052db15646ef977557056237e8d5ea087a Mon Sep 17 00:00:00 2001 From: Joe Mueller Date: Tue, 10 Mar 2015 15:14:14 -0700 Subject: fix problem where preprocessor fold code would incorrectly match `endcelldefine with `if --- lexers/LexVerilog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/LexVerilog.cxx b/lexers/LexVerilog.cxx index 2a53a1846..1e45a06bc 100644 --- a/lexers/LexVerilog.cxx +++ b/lexers/LexVerilog.cxx @@ -853,7 +853,7 @@ void SCI_METHOD LexerVerilog::Fold(unsigned int startPos, int length, int initSt } if (styler.Match(j, "if")) { levelNext++; - } else if (styler.Match(j, "end")) { + } else if (styler.Match(j, "endif")) { levelNext--; } } -- cgit v1.2.3