diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-04-06 07:41:14 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-04-06 07:41:14 +1000 |
| commit | 3a9b91d238783aa87dd65245ca9f2d288e2d26d9 (patch) | |
| tree | 6f254465db635dd850365665c2d230c9e7486dde /lexers/LexPerl.cxx | |
| parent | 18901fe7af010c3db713190f6666ddd039276e41 (diff) | |
| download | scintilla-mirror-3a9b91d238783aa87dd65245ca9f2d288e2d26d9.tar.gz | |
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.
Diffstat (limited to 'lexers/LexPerl.cxx')
| -rw-r--r-- | lexers/LexPerl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
