Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/wayland-trace.xml
- This file was added.
1 | <?xml version="1.0" encoding="UTF-8"?> | ||||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||||
3 | | ||||
4 | <language name="Wayland Trace" section="Other" | ||||
5 | version="1" kateversion="3.4" | ||||
6 | extensions="" | ||||
7 | mimetype="" | ||||
8 | author="Andreas Cord-Landwehr (cordlandwehr@kde.org)" license="MIT"> | ||||
9 | | ||||
10 | <highlighting> | ||||
11 | <list name="ParameterKeywords"> | ||||
12 | <item>array</item> | ||||
13 | <item>fd</item> | ||||
14 | <item>id</item> | ||||
15 | <item>new</item> | ||||
16 | <item>nil</item> | ||||
17 | </list> | ||||
18 | | ||||
19 | <contexts> | ||||
20 | <context name="WaylandTrace" attribute="Normal" lineEndContext="#stay"> | ||||
21 | <RegExpr attribute="TimeStamp" context="#stay" String="\[[0-9]*\.[0-9]*\]" /> | ||||
22 | <Detect2Chars attribute="Operator" char="-" char1=">" context="#stay" /> | ||||
23 | <RegExpr attribute="Interface" String="[a-zA-Z0-9_]*@[0-9]*." context="Interface" lookAhead="true" /> | ||||
24 | </context> | ||||
25 | <context name="Interface" attribute="Interface" lineEndContext="#pop"> | ||||
26 | <RegExpr attribute="Interface" String="(\[unknown\]|[a-zA-Z0-9_])*@[0-9]*" /> | ||||
27 | <DetectChar char="." context="Message" /> | ||||
28 | <DetectSpaces lookAhead="true" context="#pop" /> | ||||
29 | </context> | ||||
30 | <context name="Message" attribute="Normal" lineEndContext="#stay" dynamic="true"> | ||||
31 | <RegExpr attribute="Function" String="[a-zA-Z_]" /> | ||||
32 | <DetectChar char="(" attribute="Normal" context="Parameters" /> | ||||
33 | </context> | ||||
34 | <context name="Parameters" attribute="Normal" lineEndContext="#stay" dynamic="true"> | ||||
35 | <Int attribute="NumberParameter" /> | ||||
36 | <DetectChar attribute="StringParameter" context="String" char="""/> | ||||
37 | <keyword attribute="Keyword" String="ParameterKeywords" /> | ||||
38 | <RegExpr attribute="Interface" String="(\[unknown\]|[a-zA-Z0-9_])*@[0-9]*" /> | ||||
39 | <DetectChar char=")" attribute="Normal" context="#pop#pop" /> | ||||
40 | </context> | ||||
41 | <context attribute="StringParameter" lineEndContext="#pop" name="String"> | ||||
42 | <LineContinue attribute="StringParameter" context="#stay"/> | ||||
43 | <HlCStringChar attribute="StringParameter" context="#stay"/> | ||||
44 | <DetectChar attribute="StringParameter" context="#pop" char="""/> | ||||
45 | </context> | ||||
46 | </contexts> | ||||
47 | <itemDatas> | ||||
48 | <itemData name="Normal" defStyleNum="dsNormal" /> | ||||
49 | <itemData name="Keyword" defStyleNum="dsKeyword" /> | ||||
50 | <itemData name="Interface" defStyleNum="dsVariable" /> | ||||
51 | <itemData name="TimeStamp" defStyleNum="dsComment" /> | ||||
52 | <itemData name="Operator" defStyleNum="dsOperator" /> | ||||
53 | <itemData name="Function" defStyleNum="dsFunction" /> | ||||
54 | <itemData name="NumberParameter" defStyleNum="dsDecVal" /> | ||||
55 | <itemData name="StringParameter" defStyleNum="dsString" /> | ||||
56 | </itemDatas> | ||||
57 | </highlighting> | ||||
58 | | ||||
59 | </language> | ||||
60 | | ||||
61 | <!-- kate: replace-tabs: on; tab-width: 4; indent-width: 4; --> |