Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/rust.xml
Show All 27 Lines | |||||
28 | --> | 28 | --> | ||
29 | <!DOCTYPE language SYSTEM "language.dtd" | 29 | <!DOCTYPE language SYSTEM "language.dtd" | ||
30 | [ | 30 | [ | ||
31 | <!ENTITY rustIdent "([a-zA-Z_]|[^[:ascii:]])(\w|[^[:ascii:]])*"> | 31 | <!ENTITY rustIdent "([a-zA-Z_]|[^[:ascii:]])(\w|[^[:ascii:]])*"> | ||
32 | <!ENTITY rustIntSuf "([iu](8|16|32|64|128|size)?)?"> | 32 | <!ENTITY rustIntSuf "([iu](8|16|32|64|128|size)?)?"> | ||
33 | <!ENTITY commonEscape "([trn0'"\\]|x[0-9a-fA-F]{2})"> | 33 | <!ENTITY commonEscape "([trn0'"\\]|x[0-9a-fA-F]{2})"> | ||
34 | <!ENTITY unicodeEscape "u\{([0-9a-fA-F]_*){1,6}\}"> | 34 | <!ENTITY unicodeEscape "u\{([0-9a-fA-F]_*){1,6}\}"> | ||
35 | ]> | 35 | ]> | ||
36 | <language name="Rust" version="5" kateversion="5.0" section="Sources" extensions="*.rs" mimetype="text/rust" priority="15" license="MIT" author="The Rust Project Developers"> | 36 | <language name="Rust" version="6" kateversion="5.0" section="Sources" extensions="*.rs" mimetype="text/rust" priority="15" license="MIT" author="The Rust Project Developers"> | ||
37 | <highlighting> | 37 | <highlighting> | ||
38 | <list name="fn"> | 38 | <list name="fn"> | ||
39 | <item>fn</item> | 39 | <item>fn</item> | ||
40 | </list> | 40 | </list> | ||
41 | <list name="type"> | 41 | <list name="type"> | ||
42 | <item>type</item> | 42 | <item>type</item> | ||
43 | </list> | 43 | </list> | ||
44 | <list name="keywords"> | 44 | <list name="keywords"> | ||
▲ Show 20 Lines • Show All 283 Lines • ▼ Show 20 Line(s) | 261 | <contexts> | |||
328 | <context attribute="CharEscape" lineEndContext="#pop" name="CharEscape"> | 328 | <context attribute="CharEscape" lineEndContext="#pop" name="CharEscape"> | ||
329 | <RegExpr String="&commonEscape;" attribute="CharEscape" context="#pop"/> | 329 | <RegExpr String="&commonEscape;" attribute="CharEscape" context="#pop"/> | ||
330 | <RegExpr String="." attribute="Error" context="#pop"/> | 330 | <RegExpr String="." attribute="Error" context="#pop"/> | ||
331 | </context> | 331 | </context> | ||
332 | <context attribute="CharEscape" lineEndContext="#pop" name="CharEscapeWithUnicode"> | 332 | <context attribute="CharEscape" lineEndContext="#pop" name="CharEscapeWithUnicode"> | ||
333 | <RegExpr String="&unicodeEscape;" attribute="CharEscape" context="#pop"/> | 333 | <RegExpr String="&unicodeEscape;" attribute="CharEscape" context="#pop"/> | ||
334 | <IncludeRules context="CharEscape"/> | 334 | <IncludeRules context="CharEscape"/> | ||
335 | </context> | 335 | </context> | ||
336 | <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/> | 336 | <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"> | ||
337 | <IncludeRules context="##Alerts" /> | ||||
338 | <IncludeRules context="##Modelines" /> | ||||
339 | </context> | ||||
337 | <context attribute="Comment" lineEndContext="#stay" name="Commentar 2"> | 340 | <context attribute="Comment" lineEndContext="#stay" name="Commentar 2"> | ||
338 | <DetectSpaces/> | 341 | <DetectSpaces/> | ||
339 | <Detect2Chars char="/" char1="*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/> | 342 | <Detect2Chars char="/" char1="*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/> | ||
340 | <Detect2Chars char="*" char1="/" attribute="Comment" context="#pop" endRegion="Comment"/> | 343 | <Detect2Chars char="*" char1="/" attribute="Comment" context="#pop" endRegion="Comment"/> | ||
344 | <IncludeRules context="##Alerts" /> | ||||
345 | <IncludeRules context="##Modelines" /> | ||||
341 | </context> | 346 | </context> | ||
342 | </contexts> | 347 | </contexts> | ||
343 | <itemDatas> | 348 | <itemDatas> | ||
344 | <itemData name="Normal Text" defStyleNum="dsNormal"/> | 349 | <itemData name="Normal Text" defStyleNum="dsNormal"/> | ||
345 | <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/> | 350 | <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/> | ||
346 | <itemData name="Self" defStyleNum="dsKeyword" spellChecking="0"/> | 351 | <itemData name="Self" defStyleNum="dsKeyword" spellChecking="0"/> | ||
347 | <itemData name="Type" defStyleNum="dsDataType" spellChecking="0"/> | 352 | <itemData name="Type" defStyleNum="dsDataType" spellChecking="0"/> | ||
348 | <itemData name="Trait" defStyleNum="dsBuiltIn" spellChecking="0"/> | 353 | <itemData name="Trait" defStyleNum="dsBuiltIn" spellChecking="0"/> | ||
Show All 26 Lines |