aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-07-16 12:12:19 +1000
committerNeil <nyamatongwe@gmail.com>2014-07-16 12:12:19 +1000
commit2365db5114cb4813853f334e3369c5ae72ac38c3 (patch)
tree99fc05e01e39d86f07e17d734631f6cff545ad26 /lexers/LexHTML.cxx
parenta4d36c2b76d188199d9b16b4556d9aa88c412731 (diff)
downloadscintilla-mirror-2365db5114cb4813853f334e3369c5ae72ac38c3.tar.gz
Bug [#1622]. Don't crash with SGML after a Mako comment.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r--lexers/LexHTML.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
index d6b0b31bc..4bc4b765b 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -828,13 +828,15 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
else if (isMako && makoComment && (ch == '\r' || ch == '\n')) {
makoComment = 0;
styler.ColourTo(i, SCE_HP_COMMENTLINE);
- state = SCE_HP_DEFAULT;
}
// Allow falling through to mako handling code if newline is going to end a block
if (((ch == '\r' && chNext != '\n') || (ch == '\n')) &&
(!isMako || (0 != strcmp(makoBlockType, "%")))) {
}
+ // Ignore everything in mako comment until the line ends
+ else if (isMako && makoComment) {
+ }
// generic end of script processing
else if ((inScriptType == eNonHtmlScript) && (ch == '<') && (chNext == '/')) {