diff options
Diffstat (limited to 'lexers')
| -rw-r--r-- | lexers/LexHTML.cxx | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx index 4bc4b765b..77a4cc582 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -822,12 +822,18 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty  		// handle start of Mako comment line  		if (isMako && ch == '#' && chNext == '#') {  			makoComment = 1; +			state = SCE_HP_COMMENTLINE;  		}  		// handle end of Mako comment line  		else if (isMako && makoComment && (ch == '\r' || ch == '\n')) {  			makoComment = 0; -			styler.ColourTo(i, SCE_HP_COMMENTLINE); +			styler.ColourTo(i, StateToPrint); +			if (inScriptType == eScriptPython) { +				state = SCE_HP_DEFAULT; +			} else { +				state = SCE_H_DEFAULT; +			}  		}  		// Allow falling through to mako handling code if newline is going to end a block | 
