Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/qml.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd"> | 2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||
3 | <!-- Author: Milian Wolff <mail@milianw.de> --> | 3 | <!-- Author: Milian Wolff <mail@milianw.de> --> | ||
4 | <language name="QML" version="6" kateversion="5.0" section="Scripts" extensions="*.qml;*.qmltypes" | 4 | <language name="QML" version="7" kateversion="5.0" section="Scripts" extensions="*.qml;*.qmltypes" | ||
5 | mimetype="text/x-qml;application/x-qml" indenter="cstyle" | 5 | mimetype="text/x-qml;application/x-qml" indenter="cstyle" | ||
6 | author="Milian Wolff (mail@milianw.de)" license="MIT"> | 6 | author="Milian Wolff (mail@milianw.de)" license="MIT"> | ||
7 | <highlighting> | 7 | <highlighting> | ||
8 | <list name="elements"> | 8 | <list name="elements"> | ||
9 | <!-- see: http://doc.trolltech.com/4.7-snapshot/qmlelements.html --> | 9 | <!-- see: http://doc.trolltech.com/4.7-snapshot/qmlelements.html --> | ||
10 | <item>State</item> | 10 | <item>State</item> | ||
11 | <item>PropertyChanges</item> | 11 | <item>PropertyChanges</item> | ||
12 | <item>StateGroup</item> | 12 | <item>StateGroup</item> | ||
Show All 20 Lines | |||||
33 | <item>XmlListModel</item> | 33 | <item>XmlListModel</item> | ||
34 | <item>XmlRole</item> | 34 | <item>XmlRole</item> | ||
35 | <item>DateTimeFormatter</item> | 35 | <item>DateTimeFormatter</item> | ||
36 | <item>NumberFormatter</item> | 36 | <item>NumberFormatter</item> | ||
37 | <item>Script</item> | 37 | <item>Script</item> | ||
38 | <item>Connections</item> | 38 | <item>Connections</item> | ||
39 | <item>Component</item> | 39 | <item>Component</item> | ||
40 | <item>Timer</item> | 40 | <item>Timer</item> | ||
41 | <item>QtObject</item> | 41 | <item>QtObject</item> | ||
broulik: It's already there | |||||
42 | <item>Item</item> | 42 | <item>Item</item> | ||
43 | <item>Rectangle</item> | 43 | <item>Rectangle</item> | ||
44 | <item>Image</item> | 44 | <item>Image</item> | ||
45 | <item>BorderImage</item> | 45 | <item>BorderImage</item> | ||
46 | <item>Text</item> | 46 | <item>Text</item> | ||
47 | <item>TextInput</item> | 47 | <item>TextInput</item> | ||
48 | <item>TextEdit</item> | 48 | <item>TextEdit</item> | ||
49 | <item>MouseArea</item> | 49 | <item>MouseArea</item> | ||
Show All 28 Lines | |||||
78 | <item>ParticleMotionLinear</item> | 78 | <item>ParticleMotionLinear</item> | ||
79 | <item>ParticleMotionGravity</item> | 79 | <item>ParticleMotionGravity</item> | ||
80 | <item>ParticleMotionWander</item> | 80 | <item>ParticleMotionWander</item> | ||
81 | <!-- here some other items I find in the examples, we really need a proper list of them... --> | 81 | <!-- here some other items I find in the examples, we really need a proper list of them... --> | ||
82 | <item>Gradient</item> | 82 | <item>Gradient</item> | ||
83 | <item>GradientStop</item> | 83 | <item>GradientStop</item> | ||
84 | <item>MouseRegion</item> | 84 | <item>MouseRegion</item> | ||
85 | </list> | 85 | </list> | ||
86 | <!-- keywords not part of JavaScript --> | ||||
87 | <list name="extra-keywords"> | ||||
88 | <item>readonly</item> | ||||
89 | </list> | ||||
86 | <list name="types"> | 90 | <list name="types"> | ||
87 | <!-- see: http://doc.trolltech.com/4.7-snapshot/qml-extending-types.html --> | 91 | <!-- see: http://doc.trolltech.com/4.7-snapshot/qml-extending-types.html --> | ||
88 | <item>string</item> | 92 | <item>string</item> | ||
89 | <item>int</item> | 93 | <item>int</item> | ||
90 | <item>bool</item> | 94 | <item>bool</item> | ||
91 | <item>date</item> | 95 | <item>date</item> | ||
92 | <item>color</item> | 96 | <item>color</item> | ||
93 | <item>url</item> | 97 | <item>url</item> | ||
94 | <item>real</item> | 98 | <item>real</item> | ||
95 | <item>double</item> | 99 | <item>double</item> | ||
96 | <item>var</item> | 100 | <item>var</item> | ||
97 | <item>variant</item> | 101 | <item>variant</item> | ||
98 | </list> | 102 | </list> | ||
99 | <contexts> | 103 | <contexts> | ||
100 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> | 104 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> | ||
101 | <DetectSpaces/> | 105 | <DetectSpaces/> | ||
102 | <WordDetect attribute="Import" context="Import" String="import"/> | 106 | <WordDetect attribute="Import" context="Import" String="import"/> | ||
103 | <keyword attribute="Elements" context="#stay" String="elements" /> | 107 | <keyword attribute="Elements" context="#stay" String="elements" /> | ||
108 | <keyword attribute="Keywords" String="extra-keywords"/> | ||||
104 | <WordDetect attribute="Signal" context="Signal" String="signal" /> | 109 | <WordDetect attribute="Signal" context="Signal" String="signal" /> | ||
105 | <WordDetect attribute="Keywords" context="Property" String="default property" /> | 110 | <WordDetect attribute="Keywords" context="Property" String="default property" /> | ||
106 | <WordDetect attribute="Keywords" context="Property" String="property" /> | 111 | <WordDetect attribute="Keywords" context="Property" String="property" /> | ||
107 | <DetectChar attribute="String" context="String" char=""" /> | 112 | <DetectChar attribute="String" context="String" char=""" /> | ||
108 | <DetectChar attribute="Normal Text" context="Object" char="{" beginRegion="Brace" /> | 113 | <DetectChar attribute="Normal Text" context="Object" char="{" beginRegion="Brace" /> | ||
109 | <IncludeRules context="Normal##JavaScript" /> | 114 | <IncludeRules context="Normal##JavaScript" /> | ||
110 | </context> | 115 | </context> | ||
111 | <context attribute="ImportValue" lineEndContext="#pop" name="Import"> | 116 | <context attribute="ImportValue" lineEndContext="#pop" name="Import"> | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |
It's already there