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">
12 <list name="operator-keywords">
15 <list name="bang-operators">
30 <item> !foreach </item>
31 <item> !strconcat </item>
33 <item> !listconcat </item>
34 <item> !listsplat </item>
52 <item> multiclass </item>
54 <list name="class-like">
59 <item> multiclass </item>
61 <list name="variable-like">
74 <context name="llvm tablegen" attribute="Normal Text" lineEndContext="#stay">
76 <Detect2Chars attribute="Comment" context="Single-line comment" char="/" char1="/"/>
77 <Detect2Chars attribute="Comment" context="Multi-line comment" char="/" char1="*" beginRegion="Comment"/>
78 <keyword attribute="Keyword" context="Definition" String="class-like"/>
79 <keyword attribute="Keyword" context="Let expression" String="variable-like"/>
80 <keyword attribute="Keyword" String="objects"/>
81 <keyword attribute="Keyword" String="keywords"/>
82 <keyword attribute="Keyword" String="operator-keywords"/>
83 <keyword attribute="Keyword" String="bang-operators"/>
84 <keyword attribute="Data Type" String="types"/>
85 <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/>
86 <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/>
87 <Int attribute="Int" context="#stay"/>
88 <RegExpr attribute="Normal Text" String="[a-zA-Z_][a-zA-Z_0-9]{2,}" context="#stay"/>
90 <context attribute="Comment" lineEndContext="#pop" name="Single-line comment">
91 <IncludeRules context="##Alerts"/>
92 <LineContinue attribute="Comment" context="#stay"/>
94 <context attribute="Comment" lineEndContext="#stay" name="Multi-line comment">
95 <Detect2Chars attribute="Comment" context="Multi-line comment" char="/" char1="*" beginRegion="Comment"/>
96 <IncludeRules context="##Alerts"/>
97 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
99 <context attribute="Normal Text" lineEndContext="#stay" name="Definition">
101 <RegExpr attribute="Type" context="#stay" String="[a-zA-Z0-9_]+"/>
103 <DetectChar char=":" />
105 <RegExpr attribute="Type" context="#stay" String="[a-zA-Z0-9_]+"/>
106 <AnyChar context="#pop" lookAhead="true" String=" :;{<" />
108 <context attribute="Normal Text" lineEndContext="#stay" name="Let expression">
110 <RegExpr attribute="Variable" context="#pop" String="[a-zA-Z0-9_]+"/>
114 <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
115 <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/>
116 <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
117 <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
118 <itemData name="Type" defStyleNum="dsDataType" spellChecking="false"/>
119 <itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/>
120 <itemData name="Int" defStyleNum="dsDecVal"/>
121 <itemData name="Hex" defStyleNum="dsBaseN"/>
122 <itemData name="Float" defStyleNum="dsFloat"/>
123 <itemData name="String" defStyleNum="dsString"/>
124 <itemData name="Comment" defStyleNum="dsComment"/>
125 <itemData name="Function" defStyleNum="dsFunction"/>
126 <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
127 <itemData name="SPECIAL" defStyleNum="dsAlert" strikeout="true" bold="true" underline="true" italic="true"/>
132 <comment name="singleLine" start="//"/>
133 <comment name="multiLine" start="/*" end="*/"/>
135 <keywords casesensitive="1" weakDeliminator=".!"/>
139 // kate: space-indent on; indent-width 2; replace-tabs on;