Commit 493af006 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

property and signal are keywords in QML.

parent 920b7489
......@@ -583,8 +583,6 @@ QStringList ScriptEditor::keywords() const
if (DuiHighlighter *highlighter = qobject_cast<DuiHighlighter*>(baseTextDocument()->syntaxHighlighter())) {
words = highlighter->keywords().toList();
words.append(QLatin1String("property")); // ### move
words.append(QLatin1String("signal")); // ### move
}
return words;
......
......@@ -40,6 +40,9 @@ DuiHighlighter::DuiHighlighter(QTextDocument *parent) :
setDuiEnabled(true);
m_currentBlockParentheses.reserve(20);
m_braceDepth = 0;
qscriptKeywords.insert(QLatin1String("property"));
qscriptKeywords.insert(QLatin1String("signal"));
}
int DuiHighlighter::onBlockStart()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment