From be127fa090849307fc1be11216298309f28ebe2e Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Tue, 12 Jan 2010 18:13:19 +0100
Subject: [PATCH] Added the keyword `readonly'

---
 src/plugins/qmleditor/qmlhighlighter.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/qmleditor/qmlhighlighter.cpp b/src/plugins/qmleditor/qmlhighlighter.cpp
index 521ad689af0..4f35bcd3723 100644
--- a/src/plugins/qmleditor/qmlhighlighter.cpp
+++ b/src/plugins/qmleditor/qmlhighlighter.cpp
@@ -43,6 +43,7 @@ QmlHighlighter::QmlHighlighter(QTextDocument *parent) :
     QSet<QString> qmlKeywords(keywords());
     qmlKeywords << QLatin1String("property");
     qmlKeywords << QLatin1String("signal");
+    qmlKeywords << QLatin1String("readonly");
     m_scanner.setKeywords(qmlKeywords);
 }
 
-- 
GitLab