diff options
author | nyamatongwe <devnull@localhost> | 2011-06-23 09:11:58 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-23 09:11:58 +1000 |
commit | 22ab7222f12ca3dcddb0fe675be6c4985465cfde (patch) | |
tree | 10be27a72999bb9eb9b1e0696b7f18a76a969412 /lexers/LexHTML.cxx | |
parent | 7e3e461c91854c6af8e382f4e352492057cabf55 (diff) | |
download | scintilla-mirror-22ab7222f12ca3dcddb0fe675be6c4985465cfde.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; } |