Files
QuickLook/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Dark/Kotlin.xshd
2025-07-05 02:56:16 +08:00

176 lines
6.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<SyntaxDefinition name="Kotlin" extensions=".kt;.kts">
<Environment>
<Default color="#D4D4D4" bgcolor="#1E1E1E"/>
<Selection color="#FFFFFF" bgcolor="#264F78"/>
<LineNumbers color="#858585" bgcolor="#1E1E1E"/>
<CaretMarker color="#2F2F2F"/>
<VRuler color="#404040"/>
<FoldLine color="#5F5F5F" bgcolor="#1E1E1E"/>
<FoldMarker color="#D4D4D4" bgcolor="#1E1E1E"/>
<SelectedFoldLine color="#FFFFFF" bgcolor="#1E1E1E"/>
<EOLMarkers color="#404040"/>
<SpaceMarkers color="#505050"/>
<TabMarkers color="#505050"/>
<InvalidLines color="#505050"/>
</Environment>
<Properties>
<Property name="LineComment" value="//"/>
<Property name="BlockCommentBegin" value="/*"/>
<Property name="BlockCommentEnd" value="*/"/>
</Properties>
<Digits name="Digits" color="#B5CEA8" bold="false" italic="false"/>
<RuleSets>
<RuleSet ignorecase="false">
<Delimiters>&amp;&lt;&gt;~!@$%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
<Span name="LineComment" rule="Doxygen" stopateol="true" color="#6A9955" bold="false" italic="false">
<Begin>//</Begin>
</Span>
<Span name="BlockComment" rule="Doxygen" stopateol="false" color="#6A9955" bold="false" italic="false">
<Begin>/*</Begin>
<End>*/</End>
</Span>
<Span name="String1" rule="StringFormatting" stopateol="false" color="#CE9178" bold="false" italic="false">
<Begin>"""</Begin>
<End>"""</End>
</Span>
<Span name="String2" rule="StringFormatting" stopateol="false" color="#CE9178" bold="false" italic="false">
<Begin>"</Begin>
<End>"</End>
</Span>
<Span name="Char" stopateol="true" color="#CE9178" bold="false" italic="false">
<Begin>'</Begin>
<End>'</End>
</Span>
<MarkFollowing color="#4EC9B0" bold="false" italic="false">val</MarkFollowing>
<MarkFollowing color="#4EC9B0" bold="false" italic="false">var</MarkFollowing>
<MarkFollowing color="#D4D4D4" bold="false" italic="true">class</MarkFollowing>
<KeyWords name="Keywords1" color="#569CD6" bold="false" italic="false">
<Key word="as"/>
<Key word="break"/>
<Key word="by"/>
<Key word="catch"/>
<Key word="continue"/>
<Key word="do"/>
<Key word="else"/>
<Key word="finally"/>
<Key word="for"/>
<Key word="get"/>
<Key word="if"/>
<Key word="import"/>
<Key word="in"/>
<Key word="is"/>
<Key word="out"/>
<Key word="return"/>
<Key word="set"/>
<Key word="super"/>
<Key word="this"/>
<Key word="throw"/>
<Key word="try"/>
<Key word="typealias"/>
<Key word="when"/>
<Key word="where"/>
<Key word="while"/>
</KeyWords>
<KeyWords name="Keywords2" color="#4EC9B0" bold="false" italic="false">
<Key word="Any"/>
<Key word="Array"/>
<Key word="Boolean"/>
<Key word="Byte"/>
<Key word="Char"/>
<Key word="Double"/>
<Key word="Float"/>
<Key word="Int"/>
<Key word="Long"/>
<Key word="Nothing"/>
<Key word="Short"/>
<Key word="String"/>
<Key word="Unit"/>
<Key word="abstract"/>
<Key word="annotation"/>
<Key word="attribute"/>
<Key word="class"/>
<Key word="companion"/>
<Key word="const"/>
<Key word="constructor"/>
<Key word="crossinline"/>
<Key word="data"/>
<Key word="dynamic"/>
<Key word="enum"/>
<Key word="external"/>
<Key word="final"/>
<Key word="fun"/>
<Key word="infix"/>
<Key word="init"/>
<Key word="inline"/>
<Key word="inner"/>
<Key word="interface"/>
<Key word="internal"/>
<Key word="lateinit"/>
<Key word="noinline"/>
<Key word="object"/>
<Key word="open"/>
<Key word="operator"/>
<Key word="override"/>
<Key word="package"/>
<Key word="private"/>
<Key word="protected"/>
<Key word="public"/>
<Key word="reified"/>
<Key word="sealed"/>
<Key word="tailrec"/>
<Key word="trait"/>
<Key word="val"/>
<Key word="var"/>
<Key word="vararg"/>
</KeyWords>
<KeyWords name="Keywords3" color="#569CD6" bold="false" italic="false">
<Key word="false"/>
<Key word="null"/>
<Key word="true"/>
</KeyWords>
</RuleSet>
<RuleSet ignorecase="false" name="StringFormatting">
<Delimiters>&amp;&lt;&gt;~$!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
<Span name="Formatting" stopateol="false" color="#FFCC02" bold="false" italic="false">
<Begin>${</Begin>
<End>}</End>
</Span>
<MarkFollowing color="#FFCC02" bold="false" italic="false">$</MarkFollowing>
<KeyWords name="Punctuation" color="#FFCC02" bold="false" italic="false">
<Key word="$"/>
</KeyWords>
</RuleSet>
<RuleSet name="Doxygen" ignorecase="false">
<Delimiters>~!%^*()+=|\#/{}[]:;"'&lt;&gt; , .?</Delimiters>
<KeyWords name="Keywords1" color="#FFA500" bgcolor="#2D2D2D" bold="true" italic="false">
<Key word="TODO"/>
<Key word="FIXME"/>
<Key word="XXX"/>
</KeyWords>
</RuleSet>
</RuleSets>
</SyntaxDefinition>