summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-05-20 15:02:12 +0200
committerLeandro Melo <leandro.melo@nokia.com>2010-05-21 15:54:34 +0200
commit98bc350e32ef02d9a34e23134be65b7ab2b05123 (patch)
treec5c4f237a9beda8c082e8edb400b2982e1f1f179
parentec6fc83c5d6865550caf49de67b877d632020e7a (diff)
downloadqt-creator-98bc350e32ef02d9a34e23134be65b7ab2b05123.tar.gz
New mime type alias for javascript.
Currently the Kate javascript definition file specifies text/x-javascript as a mime type. Added this to QmlJSEditor.mimetypes.xml so the generic highlighter is not picked for javascript files.
-rw-r--r--src/plugins/qmljseditor/QmlJSEditor.mimetypes.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmljseditor/QmlJSEditor.mimetypes.xml b/src/plugins/qmljseditor/QmlJSEditor.mimetypes.xml
index 480adbdf30..4f17f907ec 100644
--- a/src/plugins/qmljseditor/QmlJSEditor.mimetypes.xml
+++ b/src/plugins/qmljseditor/QmlJSEditor.mimetypes.xml
@@ -8,6 +8,7 @@
<mime-type type="application/javascript">
<alias type="application/x-javascript"/>
<alias type="text/javascript"/>
+ <alias type="text/x-javascript"/>
<sub-class-of type="text/plain"/>
<comment>Qt Script file</comment>
<glob pattern="*.js"/>