aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authorJohn Ehresman <unknown>2016-01-22 09:13:16 +1100
committerJohn Ehresman <unknown>2016-01-22 09:13:16 +1100
commit2971106795d803f5368ce6f53b1ff44acf9af208 (patch)
treed766e147bf980dc64021dea9a220b3018e81ac3a /lexers/LexHTML.cxx
parent436efa816f1ee8b9f45b53c9a23dfdbd1e526416 (diff)
downloadscintilla-mirror-2971106795d803f5368ce6f53b1ff44acf9af208.tar.gz
Limit the extent of Mako line comments to finish before the line end characters.
This prevents a later assertion failure.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r--lexers/LexHTML.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
index 59c9e8ee4..43f51de6b 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -828,7 +828,7 @@ static void ColouriseHyperTextDoc(Sci_PositionU startPos, Sci_Position length, i
// handle end of Mako comment line
else if (isMako && makoComment && (ch == '\r' || ch == '\n')) {
makoComment = 0;
- styler.ColourTo(i, StateToPrint);
+ styler.ColourTo(i - 1, StateToPrint);
if (scriptLanguage == eScriptPython) {
state = SCE_HP_DEFAULT;
} else {