llvm-tablegen.xml
5.54 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="LLVM TableGen" section="Sources" version="1.00" kateversion="3.4.4" extensions="*.td" mimetype="" author="LLVM Team" license="LLVM Release License">
<highlighting>
<list name="keywords">
<item> foreach </item>
<item> field </item>
<item> if </item>
<item> then </item>
<item> else </item>
</list>
<list name="operator-keywords">
<item> in </item>
</list>
<list name="bang-operators">
<item> !eq </item>
<item> !if </item>
<item> !head </item>
<item> !tail </item>
<item> !con </item>
<item> !add </item>
<item> !mul </item>
<item> !shl </item>
<item> !sra </item>
<item> !srl </item>
<item> !and </item>
<item> !or </item>
<item> !empty </item>
<item> !subst </item>
<item> !foreach </item>
<item> !strconcat </item>
<item> !cast </item>
<item> !listconcat </item>
<item> !listsplat </item>
<item> !size </item>
<item> !foldl </item>
<item> !isa </item>
<item> !dag </item>
<item> !le </item>
<item> !lt </item>
<item> !ge </item>
<item> !gt </item>
<item> !ne </item>
</list>
<list name="objects">
<item> class </item>
<item> def </item>
<item> defm </item>
<item> defset </item>
<item> let </item>
<item> defvar </item>
<item> multiclass </item>
</list>
<list name="class-like">
<item> class </item>
<item> def </item>
<item> defm </item>
<item> defset </item>
<item> multiclass </item>
</list>
<list name="variable-like">
<item> let </item>
</list>
<list name="types">
<item> string </item>
<item> code </item>
<item> bit </item>
<item> int </item>
<item> dag </item>
<item> bits </item>
<item> list </item>
</list>
<contexts>
<context name="llvm tablegen" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces/>
<Detect2Chars attribute="Comment" context="Single-line comment" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Multi-line comment" char="/" char1="*" beginRegion="Comment"/>
<keyword attribute="Keyword" context="Definition" String="class-like"/>
<keyword attribute="Keyword" context="Let expression" String="variable-like"/>
<keyword attribute="Keyword" String="objects"/>
<keyword attribute="Keyword" String="keywords"/>
<keyword attribute="Keyword" String="operator-keywords"/>
<keyword attribute="Keyword" String="bang-operators"/>
<keyword attribute="Data Type" String="types"/>
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/>
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/>
<Int attribute="Int" context="#stay"/>
<RegExpr attribute="Normal Text" String="[a-zA-Z_][a-zA-Z_0-9]{2,}" context="#stay"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Single-line comment">
<IncludeRules context="##Alerts"/>
<LineContinue attribute="Comment" context="#stay"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Multi-line comment">
<Detect2Chars attribute="Comment" context="Multi-line comment" char="/" char1="*" beginRegion="Comment"/>
<IncludeRules context="##Alerts"/>
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Definition">
<DetectSpaces/>
<RegExpr attribute="Type" context="#stay" String="[a-zA-Z0-9_]+"/>
<DetectSpaces/>
<DetectChar char=":" />
<DetectSpaces/>
<RegExpr attribute="Type" context="#stay" String="[a-zA-Z0-9_]+"/>
<AnyChar context="#pop" lookAhead="true" String=" :;{<" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Let expression">
<DetectSpaces/>
<RegExpr attribute="Variable" context="#pop" String="[a-zA-Z0-9_]+"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
<itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/>
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
<itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
<itemData name="Type" defStyleNum="dsDataType" spellChecking="false"/>
<itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/>
<itemData name="Int" defStyleNum="dsDecVal"/>
<itemData name="Hex" defStyleNum="dsBaseN"/>
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Function" defStyleNum="dsFunction"/>
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
<itemData name="SPECIAL" defStyleNum="dsAlert" strikeout="true" bold="true" underline="true" italic="true"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="//"/>
<comment name="multiLine" start="/*" end="*/"/>
</comments>
<keywords casesensitive="1" weakDeliminator=".!"/>
</general>
</language>
<!--
// kate: space-indent on; indent-width 2; replace-tabs on;
-->