1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language SYSTEM "language.dtd">
3 <language name="LLVM TableGen" section="Sources" version="1.00" kateversion="3.4.4" extensions="*.td" mimetype="" author="LLVM Team" license="LLVM Release License">
9 <list name="operator-keywords">
12 <list name="bang-operators">
27 <item> !foreach </item>
28 <item> !strconcat </item>
30 <item> !listconcat </item>
31 <item> !listsplat </item>
48 <item> multiclass </item>
50 <list name="class-like">
55 <item> multiclass </item>
57 <list name="variable-like">
70 <context name="llvm tablegen" attribute="Normal Text" lineEndContext="#stay">
72 <Detect2Chars attribute="Comment" context="Single-line comment" char="/" char1="/"/>
73 <Detect2Chars attribute="Comment" context="Multi-line comment" char="/" char1="*" beginRegion="Comment"/>
74 <keyword attribute="Keyword" context="Definition" String="class-like"/>
75 <keyword attribute="Keyword" context="Let expression" String="variable-like"/>
76 <keyword attribute="Keyword" String="objects"/>
77 <keyword attribute="Keyword" String="keywords"/>
78 <keyword attribute="Keyword" String="operator-keywords"/>
79 <keyword attribute="Keyword" String="bang-operators"/>
80 <keyword attribute="Data Type" String="types"/>
81 <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/>
82 <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/>
83 <Int attribute="Int" context="#stay"/>
84 <RegExpr attribute="Normal Text" String="[a-zA-Z_][a-zA-Z_0-9]{2,}" context="#stay"/>
86 <context attribute="Comment" lineEndContext="#pop" name="Single-line comment">
87 <IncludeRules context="##Alerts"/>
88 <LineContinue attribute="Comment" context="#stay"/>
90 <context attribute="Comment" lineEndContext="#stay" name="Multi-line comment">
91 <Detect2Chars attribute="Comment" context="Multi-line comment" char="/" char1="*" beginRegion="Comment"/>
92 <IncludeRules context="##Alerts"/>
93 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
95 <context attribute="Normal Text" lineEndContext="#stay" name="Definition">
97 <RegExpr attribute="Type" context="#stay" String="[a-zA-Z0-9_]+"/>
99 <DetectChar char=":" />
101 <RegExpr attribute="Type" context="#stay" String="[a-zA-Z0-9_]+"/>
102 <AnyChar context="#pop" lookAhead="true" String=" :;{<" />
104 <context attribute="Normal Text" lineEndContext="#stay" name="Let expression">
106 <RegExpr attribute="Variable" context="#pop" String="[a-zA-Z0-9_]+"/>
110 <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
111 <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/>
112 <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
113 <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
114 <itemData name="Type" defStyleNum="dsDataType" spellChecking="false"/>
115 <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/>
116 <itemData name="Int" defStyleNum="dsDecVal"/>
117 <itemData name="Hex" defStyleNum="dsBaseN"/>
118 <itemData name="Float" defStyleNum="dsFloat"/>
119 <itemData name="String" defStyleNum="dsString"/>
120 <itemData name="Comment" defStyleNum="dsComment"/>
121 <itemData name="Function" defStyleNum="dsFunction"/>
122 <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
123 <itemData name="SPECIAL" defStyleNum="dsAlert" strikeout="true" bold="true" underline="true" italic="true"/>
128 <comment name="singleLine" start="//"/>
129 <comment name="multiLine" start="/*" end="*/"/>
131 <keywords casesensitive="1" weakDeliminator=".!"/>
135 // kate: space-indent on; indent-width 2; replace-tabs on;