|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <!DOCTYPE language SYSTEM "language.dtd">
|
3 |
| -<language name="Rust" version="0.3.1" kateversion="2.4" section="Sources" extensions="*.rs" mimetype="text/x-rust" priority="15"> |
| 3 | +<language name="Rust" version="0.3.1" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15"> |
4 | 4 | <highlighting>
|
5 | 5 | <list name="fn">
|
6 | 6 | <item> fn </item>
|
|
197 | 197 | <DetectChar char="{" attribute="Symbol" context="#stay" beginRegion="Brace" />
|
198 | 198 | <DetectChar char="}" attribute="Symbol" context="#stay" endRegion="Brace" />
|
199 | 199 | <DetectChar char=""" attribute="String" context="String"/>
|
| 200 | + <DetectChar char="'" attribute="Character" context="Character"/> |
200 | 201 | <DetectIdentifier/>
|
201 | 202 | </context>
|
202 | 203 | <context attribute="Definition" lineEndContext="#stay" name="Function">
|
|
209 | 210 | <DetectChar char="=" attribute="Normal Text" context="#pop"/>
|
210 | 211 | <DetectChar char="<" attribute="Normal Text" context="#pop"/>
|
211 | 212 | </context>
|
212 |
| - <context attribute="String" lineEndContext="#pop" name="String"> |
| 213 | + <context attribute="String" lineEndContext="#stay" name="String"> |
213 | 214 | <LineContinue attribute="String" context="#stay"/>
|
214 | 215 | <HlCStringChar attribute="String Char" context="#stay"/>
|
215 | 216 | <DetectChar attribute="String" context="#pop" char="""/>
|
216 | 217 | </context>
|
| 218 | + <context attribute="Character" lineEndContext="#pop" name="Character"> |
| 219 | + <HlCStringChar attribute="Character" context="#stay"/> |
| 220 | + <DetectChar attribute="Character" context="#pop" char="'"/> |
| 221 | + </context> |
217 | 222 | <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/>
|
218 | 223 | <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
|
219 | 224 | <DetectSpaces/>
|
|
234 | 239 | <itemData name="Number" defStyleNum="dsDecVal" color="#116644"/>
|
235 | 240 | <itemData name="String" defStyleNum="dsString" color="#FF0000"/>
|
236 | 241 | <itemData name="String Char" defStyleNum="dsChar" color="#FF0000"/>
|
| 242 | + <itemData name="Character" defStyleNum="dsChar" color="#FF0000"/> |
237 | 243 | </itemDatas>
|
238 | 244 | </highlighting>
|
239 | 245 | <general>
|
|
0 commit comments