From 440d897a6e68e822ea812a63a50a18b09248b990 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 6 Apr 2020 07:41:14 +1000 Subject: Bug [#2164]. Change line comments to terminate at next line start. This changes the lexing test results a lot since line comments are common. --- lexers/LexPerl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers') diff --git a/lexers/LexPerl.cxx b/lexers/LexPerl.cxx index f01d26ba4..705463991 100644 --- a/lexers/LexPerl.cxx +++ b/lexers/LexPerl.cxx @@ -905,7 +905,7 @@ void SCI_METHOD LexerPerl::Lex(Sci_PositionU startPos, Sci_Position length, int sc.SetState(SCE_PL_DEFAULT); break; case SCE_PL_COMMENTLINE: - if (sc.atLineEnd) { + if (sc.atLineStart) { sc.SetState(SCE_PL_DEFAULT); } break; -- cgit v1.2.3