Add TypeScript dark mode highlighting

This commit is contained in:
ema
2025-06-29 10:14:13 +08:00
parent ae7633e1e7
commit b2a7b22f20

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<SyntaxDefinition name="TypeScript" extensions=".ts;.tsx;.uts;">
<Environment>
<Default color="#D4D4D4" bgcolor="#1E1E1E"/>
<Selection color="#1E1E1E" bgcolor="#264F78"/>
<LineNumbers color="#858585" bgcolor="#1E1E1E"/>
<CaretMarker color="#AEAFAD"/>
<VRuler color="#2A2A2A"/>
<FoldLine color="#858585" bgcolor="#1E1E1E"/>
<FoldMarker color="#D4D4D4" bgcolor="#1E1E1E"/>
<SelectedFoldLine color="#D4D4D4" bgcolor="#1E1E1E"/>
<EOLMarkers color="#404040"/>
<SpaceMarkers color="#404040"/>
<TabMarkers color="#404040"/>
<InvalidLines color="#404040"/>
</Environment>
<Properties>
<Property name="LineComment" value="//"/>
<Property name="BlockCommentBegin" value="/*"/>
<Property name="BlockCommentEnd" value="*/"/>
</Properties>
<Digits name="Digits" color="#B5CEA8"/>
<RuleSets>
<RuleSet ignorecase="false">
<Delimiters>()[]{},:.@`=;+-*/%~ &amp;|^&gt;&lt;</Delimiters>
<Span name="LineComment1" stopateol="true" color="#608B4E" bold="false" italic="false">
<Begin>//</Begin>
</Span>
<Span name="BlockComment" stopateol="false" color="#608B4E" bold="false" italic="false">
<Begin>/*</Begin>
<End>*/</End>
</Span>
<Span name="String" stopateol="true" color="#CE9178" bold="false" italic="false" escapecharacter="\">
<Begin>"</Begin>
<End>"</End>
</Span>
<Span name="Char" stopateol="true" color="#CE9178" bold="false" italic="false" escapecharacter="\">
<Begin>'</Begin>
<End>'</End>
</Span>
<MarkFollowing color="#D4D4D4" bold="false" italic="true">class</MarkFollowing>
<KeyWords name="Keywords1" color="#569CD6" bold="false" italic ="false">
<Key word="any"/>
<Key word="as"/>
<Key word="boolean"/>
<Key word="break"/>
<Key word="case"/>
<Key word="catch"/>
<Key word="class"/>
<Key word="const"/>
<Key word="constructor"/>
<Key word="continue"/>
<Key word="debugger"/>
<Key word="declare"/>
<Key word="default"/>
<Key word="delete"/>
<Key word="do"/>
<Key word="else"/>
<Key word="enum"/>
<Key word="export"/>
<Key word="extends"/>
<Key word="false"/>
<Key word="finally"/>
<Key word="for"/>
<Key word="from"/>
<Key word="function"/>
<Key word="get"/>
<Key word="if"/>
<Key word="implements"/>
<Key word="import"/>
<Key word="in"/>
<Key word="instanceof"/>
<Key word="interface"/>
<Key word="let"/>
<Key word="module"/>
<Key word="new"/>
<Key word="null"/>
<Key word="number"/>
<Key word="of"/>
<Key word="package"/>
<Key word="private"/>
<Key word="protected"/>
<Key word="public"/>
<Key word="require"/>
<Key word="return"/>
<Key word="set"/>
<Key word="static"/>
<Key word="string"/>
<Key word="super"/>
<Key word="switch"/>
<Key word="symbol"/>
<Key word="this"/>
<Key word="throw"/>
<Key word="true"/>
<Key word="try"/>
<Key word="type"/>
<Key word="typeof"/>
<Key word="var"/>
<Key word="void"/>
<Key word="while"/>
<Key word="with"/>
<Key word="yield"/>
</KeyWords>
</RuleSet>
</RuleSets>
</SyntaxDefinition>