diff options
Diffstat (limited to 'lexers/LexHTML.cxx')
| -rw-r--r-- | lexers/LexHTML.cxx | 7 | 
1 files changed, 1 insertions, 6 deletions
| diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx index de057d345..60146ed9b 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -763,7 +763,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty  				}  				break;  			case eScriptPython: -				if (state != SCE_HP_COMMENTLINE) { +				if (state != SCE_HP_COMMENTLINE && !isMako) {  					if ((ch == ':') && ((chNext == '\n') || (chNext == '\r' && chNext2 == '\n'))) {  						levelCurrent++;  					} else if ((ch == '\n') && !((chNext == '\r') && (chNext2 == '\n')) && (chNext != '\n')) { @@ -952,8 +952,6 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty  			state = SCE_HP_START;  			scriptLanguage = eScriptPython;  			styler.ColourTo(i, SCE_H_ASP); -			if (foldHTMLPreprocessor && ch == '<') -				levelCurrent++;  			if (ch != '%' && ch != '$') {  				i += strlen(makoBlockType); @@ -1114,9 +1112,6 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty  				inScriptType = eNonHtmlScript;  			else  				inScriptType = eHtml; -			if (foldHTMLPreprocessor && ch != '\n' && ch != '\r') { -				levelCurrent--; -			}  			scriptLanguage = eScriptNone;  			continue;  		} | 
