Add dark syntax highlighting for multiple languages

Introduces dark theme syntax definition (.xshd) files for various programming languages in QuickLook.Plugin.TextViewer, including ANTLR, Boo, Ceylon, ChucK, Clojure, Cocoa, CoffeeScript, Cool, and others. This enhances text viewer support for code files with improved readability in dark mode.
This commit is contained in:
ema
2026-01-16 18:54:22 +08:00
parent 51bb5862a9
commit 31f794de08
48 changed files with 11690 additions and 0 deletions

View File

@@ -0,0 +1,165 @@
<?xml version="1.0" encoding="utf-8"?>
<SyntaxDefinition name="Nim" extensions=".nim">
<Environment>
<Default color="#FFD4D4D4" bgcolor="#FF1E1E1E"/>
<Selection color="#FFD4D4D4" bgcolor="#C3C3FF"/>
<LineNumbers color="#FF858585" bgcolor="#FF1E1E1E"/>
<CaretMarker color="#FF2A2A2A"/>
<VRuler color="#FF424242"/>
<FoldLine color="#FF606060" bgcolor="#FF1E1E1E"/>
<FoldMarker color="#FFD4D4D4" bgcolor="#FF1E1E1E"/>
<SelectedFoldLine color="#FFD4D4D4" bgcolor="#FF1E1E1E"/>
<EOLMarkers color="#FF606060"/>
<SpaceMarkers color="#FF505050"/>
<TabMarkers color="#FF505050"/>
<InvalidLines color="#FF505050"/>
</Environment>
<Properties>
<Property name="LineComment" value="#"/>
</Properties>
<Digits name="Digits" color="#FFD4D4D4"/>
<RuleSets>
<RuleSet ignorecase="false">
<Delimiters>()[]{},:.`=;+-*/%~ &amp;|^&gt;&lt;</Delimiters>
<Span name="LineComment" stopateol="true" color="#FF57A64A" bold="false" italic="false">
<Begin>#</Begin>
</Span>
<Span name="String" stopateol="false" color="#FFD69D85" bold="false" italic="false" escapecharacter="\">
<Begin>"</Begin>
<End>"</End>
</Span>
<Span name="Char" stopateol="false" color="#FFD69D85" bold="false" italic="false" escapecharacter="\">
<Begin>'</Begin>
<End>'</End>
</Span>
<KeyWords name="Keywords1" color="#FF569CD6" bold="false" italic="false">
<Key word="addr"/>
<Key word="as"/>
<Key word="assert"/>
<Key word="atomic"/>
<Key word="await"/>
<Key word="bind"/>
<Key word="block"/>
<Key word="break"/>
<Key word="byte"/>
<Key word="case"/>
<Key word="cast"/>
<Key word="const"/>
<Key word="continue"/>
<Key word="converter"/>
<Key word="countdown"/>
<Key word="countup"/>
<Key word="declared"/>
<Key word="defer"/>
<Key word="defined"/>
<Key word="discard"/>
<Key word="distinct"/>
<Key word="div"/>
<Key word="do"/>
<Key word="echo"/>
<Key word="elif"/>
<Key word="else"/>
<Key word="end"/>
<Key word="enum"/>
<Key word="except"/>
<Key word="export"/>
<Key word="false"/>
<Key word="finally"/>
<Key word="for"/>
<Key word="from"/>
<Key word="generic"/>
<Key word="high"/>
<Key word="if"/>
<Key word="import"/>
<Key word="include"/>
<Key word="inf"/>
<Key word="interface"/>
<Key word="iterator"/>
<Key word="lambda"/>
<Key word="let"/>
<Key word="low"/>
<Key word="macro"/>
<Key word="method"/>
<Key word="mixin"/>
<Key word="mod"/>
<Key word="natural"/>
<Key word="new"/>
<Key word="newException"/>
<Key word="nil"/>
<Key word="object"/>
<Key word="of"/>
<Key word="out"/>
<Key word="proc"/>
<Key word="ptr"/>
<Key word="raise"/>
<Key word="range"/>
<Key word="ref"/>
<Key word="return"/>
<Key word="shared"/>
<Key word="shl"/>
<Key word="shr"/>
<Key word="static"/>
<Key word="template"/>
<Key word="tobject"/>
<Key word="true"/>
<Key word="try"/>
<Key word="tuple"/>
<Key word="type"/>
<Key word="typed"/>
<Key word="untyped"/>
<Key word="var"/>
<Key word="when"/>
<Key word="while"/>
<Key word="with"/>
<Key word="without"/>
<Key word="yield"/>
</KeyWords>
<KeyWords name="Keywords2" color="#FFC586C0" bold="false" italic="false">
<Key word="any"/>
<Key word="array"/>
<Key word="auto"/>
<Key word="bool"/>
<Key word="char"/>
<Key word="cstring"/>
<Key word="expr"/>
<Key word="float"/>
<Key word="float16"/>
<Key word="float32"/>
<Key word="float64"/>
<Key word="float8"/>
<Key word="int"/>
<Key word="int16"/>
<Key word="int32"/>
<Key word="int64"/>
<Key word="int8"/>
<Key word="openarray"/>
<Key word="pointer"/>
<Key word="seq"/>
<Key word="set"/>
<Key word="stmt"/>
<Key word="string"/>
<Key word="typedesc"/>
<Key word="uint"/>
<Key word="uint16"/>
<Key word="uint32"/>
<Key word="uint64"/>
<Key word="uint8"/>
<Key word="varargs"/>
<Key word="void"/>
</KeyWords>
</RuleSet>
</RuleSets>
</SyntaxDefinition>