aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoe Mueller <devnull@localhost>2015-03-10 15:14:14 -0700
committerJoe Mueller <devnull@localhost>2015-03-10 15:14:14 -0700
commitfe85d455e4ee2edaf55ac42077e7d9642fb9688e (patch)
treef5378ad63f564c6c15a65be83c47973ebd9ae2b2
parent4a976d45762201f2dbe979a2df648e97dc7d0924 (diff)
downloadscintilla-mirror-fe85d455e4ee2edaf55ac42077e7d9642fb9688e.tar.gz
fix problem where preprocessor fold code would incorrectly match `endcelldefine with `if
-rw-r--r--lexers/LexVerilog.cxx2
1 files changed, 1 insertions, 1 deletions
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--;
}
}