From 3a9b91d238783aa87dd65245ca9f2d288e2d26d9 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 6 Apr 2020 07:41:14 +1000 Subject: Backport: Bug [#2164]. Change line comments to terminate at next line start. This changes the lexing test results a lot since line comments are common. Backport of changeset 8123:3f7f9e476cfb. --- 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 75c61cb8c..dab7eb6f3 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