summaryrefslogtreecommitdiffstats
path: root/kate/data/qml.xml
blob: e5a0c8be03e7353ea81e6e2235fd6d6c6aa7edec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Author: Milian Wolff <mail@milianw.de> -->
<language name="QML" version="1.3" kateversion="2.4" section="Scripts" extensions="*.qml"
          mimetype="text/x-qml;application/x-qml" indenter="cstyle"
          author="Milian Wolff (mail@milianw.de)" license="">
  <highlighting>
    <list name="elements">
      <!-- see: http://doc.trolltech.com/4.7-snapshot/qmlelements.html -->
      <item>State</item>
      <item>PropertyChanges</item>
      <item>StateGroup</item>
      <item>ParentChange</item>
      <item>StateChangeScript</item>
      <item>AnchorChanges</item>
      <item>PropertyAnimation</item>
      <item>NumberAnimation</item>
      <item>ColorAnimation</item>
      <item>SequentialAnimation</item>
      <item>ParallelAnimation</item>
      <item>PauseAnimation</item>
      <item>PropertyAction</item>
      <item>ParentAction</item>
      <item>ScriptAction</item>
      <item>Transition</item>
      <item>SpringFollow</item>
      <item>EaseFollow</item>
      <item>Behavior</item>
      <item>Binding</item>
      <item>ListModel</item>
      <item>ListElement</item>
      <item>VisualItemModel</item>
      <item>XmlListModel</item>
      <item>XmlRole</item>
      <item>DateTimeFormatter</item>
      <item>NumberFormatter</item>
      <item>Script</item>
      <item>Connection</item>
      <item>Component</item>
      <item>Timer</item>
      <item>QtObject</item>
      <item>Item</item>
      <item>Rectangle</item>
      <item>Image</item>
      <item>BorderImage</item>
      <item>Text</item>
      <item>TextInput</item>
      <item>TextEdit</item>
      <item>MouseArea</item>
      <item>FocusScope</item>
      <item>Flickable</item>
      <item>Flipable</item>
      <item>WebView</item>
      <item>Loader</item>
      <item>Repeater</item>
      <item>SystemPalette</item>
      <item>GraphicsObjectContainer</item>
      <item>LayoutItem</item>
      <item>ListView</item>
      <item>GridView</item>
      <item>PathView</item>
      <item>Path</item>
      <item>PathLine</item>
      <item>PathQuad</item>
      <item>PathCubic</item>
      <item>PathAttribute</item>
      <item>PathPercent</item>
      <item>Column</item>
      <item>Row</item>
      <item>Grid</item>
      <item>Scale</item>
      <item>Rotation</item>
      <item>Blur</item>
      <item>Colorize</item>
      <item>DropShadow</item>
      <item>Opacity</item>
      <item>Particles</item>
      <item>ParticleMotionLinear</item>
      <item>ParticleMotionGravity</item>
      <item>ParticleMotionWander</item>
      <!-- here some other items I find in the examples, we really need a proper list of them... -->
      <item>Gradient</item>
      <item>GradientStop</item>
      <item>MouseRegion</item>
    </list>
    <list name="types">
      <!-- see: http://doc.trolltech.com/4.7-snapshot/qml-extending-types.html -->
      <item>string</item>
      <item>int</item>
      <item>bool</item>
      <item>date</item>
      <item>color</item>
      <item>url</item>
      <item>real</item>
      <item>double</item>
      <item>var</item>
      <item>variant</item>
    </list>
    <contexts>
      <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
        <DetectSpaces/>
        <StringDetect attribute="Import" context="Import" String="import"/>
        <keyword attribute="Elements" context="#stay" String="elements" />
        <StringDetect attribute="Signal" context="Signal" String="signal" />
        <StringDetect attribute="Keywords" context="Property" String="default property" />
        <StringDetect attribute="Keywords" context="Property" String="property" />
        <IncludeRules context="##JavaScript" />
      </context>
      <context attribute="ImportValue" lineEndContext="#pop" name="Import">
      </context>
      <context attribute="Normal Text" lineEndContext="#pop" name="Property">
        <StringDetect attribute="Property Type" context="#stay" String="alias" />
        <keyword attribute="Property Type" context="#stay" String="types" />
        <DetectSpaces />
        <DetectIdentifier />
        <DetectSpaces />
        <DetectChar char=":" context="#pop" />
      </context>
      <context attribute="Normal Text" lineEndContext="#pop" name="Signal">
        <DetectSpaces />
        <DetectIdentifier />
        <DetectChar char="(" context="SignalParameter" />
      </context>
      <context attribute="Normal Text" name="SignalParameter" lineEndContext="#pop">
        <DetectSpaces />
        <keyword attribute="Property Type" context="#stay" String="types" />
        <DetectSpaces />
        <DetectIdentifier />
        <DetectSpaces />
        <AnyChar String=")" context="#pop"/>
      </context>
    </contexts>
    <itemDatas>
      <itemData name="Normal Text"  defStyleNum="dsNormal"  spellChecking="false" />
      <itemData name="Import"  defStyleNum="dsKeyword"  spellChecking="false" />
      <itemData name="ImportValue"  defStyleNum="dsString"  spellChecking="false" />
      <itemData name="Keywords"  defStyleNum="dsKeyword"  spellChecking="false" />
      <itemData name="Elements" defStyleNum="dsKeyword" color="#008000" selColor="#00ffff" bold="0" italic="0" spellChecking="false"/>
      <itemData name="Signal" defStyleNum="dsKeyword" color="#0095ff" selColor="#ffffff" spellChecking="false"/>
      <itemData name="Property Type" defStyleNum="dsDataType" spellChecking="false" />
    </itemDatas>
  </highlighting>
  <general>
    <comments>
      <comment name="singleLine" start="//" />
      <comment name="multiLine" start="/*" end="*/" />
    </comments>
    <keywords casesensitive="1" />
  </general>
</language>

<!-- kate: tab-width 2; replace-tabs on; indent-width 2; -->