Skip to content

Commit 586b494

Browse files
committed
Minor modifications.
Added . as a weakDeliminator, which helps prevent keywords from turning blue at the wrong time. Made brackets on /// references more visible and more similar to brackets on typescriptlang.org's playground.
1 parent 9a83b33 commit 586b494

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

typescript.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<contexts>
5151
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
5252
<DetectSpaces/>
53-
<keyword attribute="Keyword" context="#stay" String="keywords" />
53+
<keyword attribute="Keyword" context="#stay" String="keywords"/>
5454
<DetectChar attribute="String" context="String" char="&quot;"/>
5555
<DetectChar attribute="String Char" context="String 1" char="'"/>
5656
<StringDetect attribute="Reference" context="Reference" String="///" />
@@ -85,6 +85,8 @@
8585
</context>
8686

8787
<context attribute="Reference" lineEndContext="#pop" name="Reference">
88+
<DetectChar attribute="ReferenceBracket" context="#stay" char="&lt;"/>
89+
<DetectChar attribute="ReferenceBracket" context="#stay" char="&gt;"/>
8890
<DetectChar attribute="ReferenceFile" context="ReferenceFile" char="&quot;"/>
8991
<DetectChar attribute="ReferenceFile" context="ReferenceFile 1" char="'"/>
9092
</context>
@@ -104,13 +106,14 @@
104106
</context>
105107
</contexts>
106108
<itemDatas>
107-
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
108-
<itemData name="Keyword" defStyleNum="dsNormal" spellChecking="false" color="#00f"/>
109-
<itemData name="Char" defStyleNum="dsChar" spellChecking="false"/>
109+
<itemData name="Normal Text" defStyleNum="dsNormal"/>
110+
<itemData name="Keyword" defStyleNum="dsNormal" color="#00f"/>
111+
<itemData name="Char" defStyleNum="dsChar"/>
110112
<itemData name="String" defStyleNum="dsString" color="#a31515"/>
111-
<itemData name="String Char" defStyleNum="dsChar" spellChecking="false" color="#a31515"/>
113+
<itemData name="String Char" defStyleNum="dsString" color="#a31515"/>
112114
<itemData name="Comment" defStyleNum="dsNormal" italic="true" color="#080"/>
113-
<itemData name="Reference" defStyleNum="dsNormal" color="#888"/>
115+
<itemData name="Reference" defStyleNum="dsNormal" color="#aeb9ae"/>
116+
<itemData name="ReferenceBracket" defStyleNum="dsNormal" color="#708870" bold="true"/>
114117
<itemData name="ReferenceFile" defStyleNum="dsNormal" color="#2c51cc"/>
115118
</itemDatas>
116119
</highlighting>
@@ -119,6 +122,6 @@
119122
<comment name="singleLine" start="//" />
120123
<comment name="multiLine" start="/*" end="*/" />
121124
</comments>
122-
<keywords casesensitive="1" />
125+
<keywords casesensitive="1" weakDeliminator="."/>
123126
</general>
124127
</language>

0 commit comments

Comments
 (0)