Backport a change from Scintilla CVS to fix wrong folding of comments in HTML/XML lexer (Scintilla #2532774, thanks to Jason Oster).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3583 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-02-15 10:55:58 +00:00
parent c1a5eec305
commit 3db0b856a7
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-02-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* scitilla/LexHTML.cxx:
Backport a change from Scintilla CVS to fix wrong folding of comments
in HTML/XML lexer (Scintilla #2532774, thanks to Jason Oster).
2009-02-14 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* doc/plugins.dox:

View File

@ -855,7 +855,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
state = SCE_H_SGML_COMMAND; // wait for a pending command
}
// fold whole tag (-- when closing the tag)
if (foldHTMLPreprocessor)
if (foldHTMLPreprocessor || (state == SCE_H_COMMENT))
levelCurrent++;
continue;
}