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">
26 <item> !foreach </item>
27 <item> !strconcat </item>
29 <item> !listconcat </item>
46 <item> multiclass </item>
48 <list name="class-like">
53 <item> multiclass </item>
55 <list name="variable-like">
68 <context name="llvm tablegen" attribute="Normal Text" lineEndContext="#stay">
70 <Detect2Chars attribute="Comment" context="Single-line comment" char="/" char1="/"/>
71 <Detect2Chars attribute="Comment" context="Multi-line comment" char="/" char1="*" beginRegion="Comment"/>
72 <keyword attribute="Keyword" context="Definition" String="class-like"/>
73 <keyword attribute="Keyword" context="Let expression" String="variable-like"/>
74 <keyword attribute="Keyword" String="objects"/>
75 <keyword attribute="Keyword" String="keywords"/>
76 <keyword attribute="Keyword" String="operator-keywords"/>
77 <keyword attribute="Keyword" String="bang-operators"/>
78 <keyword attribute="Data Type" String="types"/>
79 <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/>
80 <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/>
81 <Int attribute="Int" context="#stay"/>
82 <RegExpr attribute="Normal Text" String="[a-zA-Z_][a-zA-Z_0-9]{2,}" context="#stay"/>
84 <context attribute="Comment" lineEndContext="#pop" name="Single-line comment">
85 <IncludeRules context="##Alerts"/>
86 <LineContinue attribute="Comment" context="#stay"/>
88 <context attribute="Comment" lineEndContext="#stay" name="Multi-line comment">
89 <Detect2Chars attribute="Comment" context="Multi-line comment" char="/" char1="*" beginRegion="Comment"/>
90 <IncludeRules context="##Alerts"/>
91 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
93 <context attribute="Normal Text" lineEndContext="#stay" name="Definition">
95 <RegExpr attribute="Type" context="#stay" String="[a-zA-Z0-9_]+"/>
97 <DetectChar char=":" />
99 <RegExpr attribute="Type" context="#stay" String="[a-zA-Z0-9_]+"/>
100 <AnyChar context="#pop" lookAhead="true" String=" :;{<" />
102 <context attribute="Normal Text" lineEndContext="#stay" name="Let expression">
104 <RegExpr attribute="Variable" context="#pop" String="[a-zA-Z0-9_]+"/>
108 <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
109 <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/>
110 <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
111 <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
112 <itemData name="Type" defStyleNum="dsDataType" spellChecking="false"/>
113 <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/>
114 <itemData name="Int" defStyleNum="dsDecVal"/>
115 <itemData name="Hex" defStyleNum="dsBaseN"/>
116 <itemData name="Float" defStyleNum="dsFloat"/>
117 <itemData name="String" defStyleNum="dsString"/>
118 <itemData name="Comment" defStyleNum="dsComment"/>
119 <itemData name="Function" defStyleNum="dsFunction"/>
120 <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
121 <itemData name="SPECIAL" defStyleNum="dsAlert" strikeout="true" bold="true" underline="true" italic="true"/>
126 <comment name="singleLine" start="//"/>
127 <comment name="multiLine" start="/*" end="*/"/>
129 <keywords casesensitive="1" weakDeliminator=".!"/>
133 // kate: space-indent on; indent-width 2; replace-tabs on;