aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-02-19 09:33:44 +1100
committernyamatongwe <devnull@localhost>2012-02-19 09:33:44 +1100
commitd49dc4d02154986b626846b4656b07aab8a118e8 (patch)
tree337b32dff717156dbde844f30f6ec9b35dcc8c05
parentcfd931fc36490afa766494c142f1ce3631d15021 (diff)
downloadscintilla-mirror-d49dc4d02154986b626846b4656b07aab8a118e8.tar.gz
Enable differentiation of --! bang comments as this was disabled by poorly
written code. Noticed by PVS-Studio.
-rw-r--r--lexers/LexVHDL.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/lexers/LexVHDL.cxx b/lexers/LexVHDL.cxx
index 5580b3c5e..ee9d6628f 100644
--- a/lexers/LexVHDL.cxx
+++ b/lexers/LexVHDL.cxx
@@ -128,9 +128,6 @@ static void ColouriseVHDLDoc(
} else if (IsAWordStart(sc.ch)) {
sc.SetState(SCE_VHDL_IDENTIFIER);
} else if (sc.Match('-', '-')) {
- sc.SetState(SCE_VHDL_COMMENT);
- sc.Forward();
- } else if (sc.Match('-', '-')) {
if (sc.Match("--!")) // Nice to have a different comment style
sc.SetState(SCE_VHDL_COMMENTLINEBANG);
else