diff options
author | nyamatongwe <unknown> | 2011-06-23 09:11:58 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-23 09:11:58 +1000 |
commit | 36b0edec443bd2b34c9e8905985c9bd691a004e4 (patch) | |
tree | a5c49ff4fa3522294807d137a2f56225c10976a1 /lexers/LexHTML.cxx | |
parent | 15bd4092299a25a326d14cfa4e81ad18067ef18a (diff) | |
download | scintilla-mirror-36b0edec443bd2b34c9e8905985c9bd691a004e4.tar.gz |
Disable folding for mako template files. Bug #3324563.
From Stephan R.A. Deibel.
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; } |