Fixed highlihing of QML context keywords.

This commit is contained in:
Roberto Raggi
2010-01-29 11:20:42 +01:00
parent 272014a5d0
commit 14207aa856
5 changed files with 92 additions and 124 deletions

View File

@@ -39,13 +39,6 @@ QmlHighlighter::QmlHighlighter(QTextDocument *parent) :
{
m_currentBlockParentheses.reserve(20);
m_braceDepth = 0;
QSet<QString> qmlKeywords(keywords());
qmlKeywords << QLatin1String("alias");
qmlKeywords << QLatin1String("property");
qmlKeywords << QLatin1String("signal");
qmlKeywords << QLatin1String("readonly");
m_scanner.setKeywords(qmlKeywords);
}
int QmlHighlighter::onBlockStart()