aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexPerl.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-04-06 07:41:14 +1000
committerNeil <nyamatongwe@gmail.com>2020-04-06 07:41:14 +1000
commit440d897a6e68e822ea812a63a50a18b09248b990 (patch)
tree52d99fd2f1ba53f1a7a4a0642af406a58b27511a /lexers/LexPerl.cxx
parent0f9de771107d63b2428f66381b8b8c1c9a2f890b (diff)
downloadscintilla-mirror-440d897a6e68e822ea812a63a50a18b09248b990.tar.gz
Bug [#2164]. Change line comments to terminate at next line start.
This changes the lexing test results a lot since line comments are common.
Diffstat (limited to 'lexers/LexPerl.cxx')
-rw-r--r--lexers/LexPerl.cxx2
1 files changed, 1 insertions, 1 deletions
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;