From d3ed2f664bc2e4db1eab7cd62c664cf43672a89c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 19 Feb 2012 09:33:44 +1100 Subject: Enable differentiation of --! bang comments as this was disabled by poorly written code. Noticed by PVS-Studio. --- lexers/LexVHDL.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/lexers/LexVHDL.cxx b/lexers/LexVHDL.cxx index 5580b3c5e..ee9d6628f 100644 --- a/lexers/LexVHDL.cxx +++ b/lexers/LexVHDL.cxx @@ -127,9 +127,6 @@ static void ColouriseVHDLDoc( sc.SetState(SCE_VHDL_NUMBER); } 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); -- cgit v1.2.3