QmlJS: Allow folding of multi-line comments.

This also makes the editor auto-fold the license comment.

Task-number: QTCREATORBUG-1455
Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-05-27 11:26:20 +02:00
parent 385034722c
commit 57f2b3e44d
4 changed files with 21 additions and 10 deletions

View File

@@ -77,7 +77,7 @@ const _Tp *end(const _Tp (&a)[N])
}
Scanner::Scanner()
: _state(0),
: _state(Normal),
_scanComments(true)
{
}
@@ -122,11 +122,6 @@ static bool isNumberChar(QChar ch)
QList<Token> Scanner::operator()(const QString &text, int startState)
{
enum {
Normal = 0,
MultiLineComment = 1
};
_state = startState;
QList<Token> tokens;