Skip to content

Commit 0a916af

Browse files
committed
fix xshd files
1 parent 7ff4066 commit 0a916af

32 files changed

+72
-30
lines changed

src/CodeSnip/Resources/Highlighting/Dark/d.xshd

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<SyntaxDefinition name="D" extensions=".d" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
33

4-
<!-- Definicija boja za različite elemente -->
54
<Color name="Comment" foreground="#75715E" />
65
<Color name="String" foreground="#E6DB74" />
76
<Color name="Character" foreground="#FD971F" />
@@ -16,44 +15,36 @@
1615

1716
<RuleSet ignoreCase="false">
1817

19-
<!-- Punctuation: simboli i operatori -->
2018
<Rule color="Punctuation">[?,.;()\[\]{}+\-/%*&lt;&gt;^=~!&amp;]+</Rule>
2119

22-
<!-- Komentari -->
2320
<Span color="Comment" begin="//" end="$" />
2421
<Span color="Comment" multiline="true" begin="/\*" end="\*/" />
2522
<!-- nested comments -->
2623
<Span color="Comment" multiline="true" begin="/\+" end="\+/" />
2724

28-
<!-- Stringovi -->
2925
<Span color="String" begin="`" end="`" />
3026
<Span color="String" begin="r&quot;" end="&quot;" />
3127
<Span color="String" begin="q{" end="}" />
3228
<Span color="String">
3329
<Begin>"</Begin>
3430
<End>"</End>
3531
<RuleSet>
36-
<!-- Escape sekvence unutar stringa -->
3732
<Span begin="\\" end="." />
3833
</RuleSet>
3934
</Span>
4035

41-
<!-- Karakteri -->
4236
<Span color="Character">
4337
<Begin>'</Begin>
4438
<End>'</End>
4539
<RuleSet>
46-
<!-- Escape sekvence unutar karaktera -->
4740
<Span begin="\\" end="." />
4841
</RuleSet>
4942
</Span>
5043

51-
<!-- Brojevi: heksadecimalni, decimalni, sa eksponentom i podvlakama -->
5244
<Rule color="Number">
5345
\b0[xX][0-9a-fA-F_]+|\b\d+(_\d+)*(\.\d+(_\d+)*)?([eE][+-]?\d+(_\d+)*)?\b
5446
</Rule>
5547

56-
<!-- Preprocesorske direktive i slične ključne reči -->
5748
<Keywords color="Preprocessor">
5849
<Word>version</Word>
5950
<Word>debug</Word>
@@ -63,7 +54,6 @@
6354
<Word>scope</Word>
6455
</Keywords>
6556

66-
<!-- Ključne riječi jezika D -->
6757
<Keywords color="Keywords">
6858
<Word>invariant</Word>
6959
<Word>shared</Word>
@@ -132,7 +122,6 @@
132122
<Word>void</Word>
133123
</Keywords>
134124

135-
<!-- Tipovi podataka -->
136125
<Keywords color="Type">
137126
<Word>var</Word>
138127
<Word>bool</Word>
@@ -170,10 +159,8 @@
170159
<Word>tuple</Word>
171160
</Keywords>
172161

173-
<!-- Pravilo za metode/funkcije -->
174-
<!-- Prepoznaje identifikatore ispred otvarajuće zagrade, npr. funkcije -->
175162
<Rule color="MethodName">[\d\w_]+(?=(\s*\())</Rule>
176-
<!-- Ne boja npr. std.string -->
163+
<!-- std.string -->
177164
<Rule color="Type">(?&lt;!\bstd\.)\bstring\b</Rule>
178165

179166

src/CodeSnip/Resources/Highlighting/Light/as.xshd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<Color name="CommentMarkerSet" foreground="Red" fontWeight="bold" />
1414
<Color name="CommentMarkerSetHackUndone" foreground="#E0E000" fontWeight="bold" />
1515

16+
<Property name="Extension" value="as" />
17+
1618
<RuleSet name="CommentMarkerSet">
1719
<Keywords color="CommentMarkerSet">
1820
<Word>TODO</Word>

src/CodeSnip/Resources/Highlighting/Light/aspx.xshd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<SyntaxDefinition name="ASP/XHTML" extensions=".asp;.aspx;.asax;.asmx;.ascx;.master" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
44
<Color name="ASPSectionStartEndTags" foreground="Black" background="Yellow" exampleText="&lt;% System.Console.WriteLine(&quot;Hello World!&quot;); %&gt;" />
55
<Color name="ASPSection" foreground="Black" background="#FFF7F2E3" exampleText="&lt;% System.Console.WriteLine(&quot;Hello World!&quot;); %&gt;" />
6+
7+
<Property name="Extension" value="asp" />
8+
69
<RuleSet ignoreCase="true">
710
<Span ruleSet="ASP" multiline="true">
811
<Begin color="ASPSectionStartEndTags">&lt;%</Begin>

src/CodeSnip/Resources/Highlighting/Light/atg.xshd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
<Color name="Punctuation" foreground="#FF000000" fontWeight="bold" />
77
<Color name="Keywords" foreground="#FF0000FF" fontWeight="bold" />
88
<Color name="String" foreground="#FF006400" />
9+
10+
<Property name="Extension" value="atg" />
11+
912
<RuleSet ignoreCase="false">
1013
<Rule color="Punctuation">
1114
[{}\(\)\[\]|+\-=\.]+

src/CodeSnip/Resources/Highlighting/Light/bat.xshd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<Color name="Command2" foreground="#FF5000FF" fontWeight="normal" />
2323
<Color name="Command3" foreground="#FFFF6000" fontWeight="normal" />
2424

25+
<Property name="Extension" value="bat" />
26+
2527
<RuleSet ignoreCase="true">
2628

2729
<Span color="String2" multiline="false" begin="&quot;" end="&quot;" >

src/CodeSnip/Resources/Highlighting/Light/boo.xshd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<Color name="Comment" foreground="Green" />
33
<Color name="String" foreground="Blue" />
44
<Color name="Regex" foreground="#FFFF6600" />
5+
6+
<Property name="Extension" value="boo" />
7+
58
<RuleSet>
69
<Span color="Comment" multiline="true">
710
<Begin>"""</Begin>

src/CodeSnip/Resources/Highlighting/Light/cpp.xshd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<Color name="JumpKeywords" foreground="#FF000080" />
2323
<Color name="ExceptionHandling" foreground="#FF008080" fontWeight="bold" />
2424
<Color name="ControlFlow" foreground="#FF0000FF" fontWeight="bold" />
25+
26+
<Property name="Extension" value="cpp" />
27+
2528
<RuleSet ignoreCase="false">
2629
<Rule color="Punctuation">
2730
[?,.;()\[\]{}+\-/%*&lt;&gt;^=~!&amp;]+

src/CodeSnip/Resources/Highlighting/Light/cs.xshd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
<Color name="TypeKeywords" fontWeight="bold" foreground="DarkCyan" exampleText="if (x is int) { a = x as int; type = typeof(int); size = sizeof(int); c = new object(); }"/>
3030
<Color name="SemanticKeywords" fontWeight="bold" foreground="DarkCyan" exampleText="if (args == null) throw new ArgumentNullException(nameof(args));" />
3131

32+
<Property name="Extension" value="cs" />
33+
3234
<Property name="DocCommentMarker" value="///" />
3335

3436
<RuleSet name="CommentMarkerSet">

src/CodeSnip/Resources/Highlighting/Light/css.xshd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<Color name="Value" foreground="Blue" exampleText="p { color: red; }" />
88
<Color name="CurlyBraces" foreground="Black" exampleText="{ }" />
99
<Color name="Colon" foreground="Black" exampleText=":" />
10+
11+
<Property name="Extension" value="css" />
12+
1013
<RuleSet ignoreCase="true">
1114
<Span color="Comment" multiline="true">
1215
<Begin>/\*</Begin>

src/CodeSnip/Resources/Highlighting/Light/d.xshd

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<SyntaxDefinition name="D" extensions=".d" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
33

4-
<!-- Definicija boja za različite elemente -->
54
<Color name="Comment" foreground="Green" />
65
<Color name="String" foreground="Fuchsia" />
76
<Color name="Character" foreground="Fuchsia" />
@@ -12,47 +11,40 @@
1211
<Color name="MethodName" foreground="MidnightBlue" />
1312
<Color name="Preprocessor" foreground="#FF0000FF" />
1413

14+
<Property name="Extension" value="d" />
1515

1616
<RuleSet ignoreCase="false">
1717

18-
<!-- Punctuation: simboli i operatori -->
1918
<Rule color="Punctuation">[?,.;()\[\]{}+\-/%*&lt;&gt;^=~!&amp;]+</Rule>
2019

21-
<!-- Komentari -->
2220
<Span color="Comment" begin="//" end="$" />
2321
<Span color="Comment" multiline="true" begin="/\*" end="\*/" />
2422
<!-- nested comments -->
2523
<Span color="Comment" multiline="true" begin="/\+" end="\+/" />
2624

27-
<!-- Stringovi -->
2825
<Span color="String" begin="`" end="`" />
2926
<Span color="String" begin="r&quot;" end="&quot;" />
3027
<Span color="String" begin="q{" end="}" />
3128
<Span color="String">
3229
<Begin>"</Begin>
3330
<End>"</End>
3431
<RuleSet>
35-
<!-- Escape sekvence unutar stringa -->
3632
<Span begin="\\" end="." />
3733
</RuleSet>
3834
</Span>
3935

40-
<!-- Karakteri -->
4136
<Span color="Character">
4237
<Begin>'</Begin>
4338
<End>'</End>
4439
<RuleSet>
45-
<!-- Escape sekvence unutar karaktera -->
4640
<Span begin="\\" end="." />
4741
</RuleSet>
4842
</Span>
4943

50-
<!-- Brojevi: heksadecimalni, decimalni, sa eksponentom i podvlakama -->
5144
<Rule color="Number">
5245
\b0[xX][0-9a-fA-F_]+|\b\d+(_\d+)*(\.\d+(_\d+)*)?([eE][+-]?\d+(_\d+)*)?\b
5346
</Rule>
5447

55-
<!-- Preprocesorske direktive i slične ključne reči -->
5648
<Keywords color="Preprocessor">
5749
<Word>version</Word>
5850
<Word>debug</Word>
@@ -62,15 +54,14 @@
6254
<Word>scope</Word>
6355
</Keywords>
6456

65-
<!-- Ključne riječi jezika D -->
6657
<Keywords color="Keywords">
6758
<Word>invariant</Word>
6859
<Word>shared</Word>
6960
<Word>immutable</Word>
7061
<Word>const</Word>
7162
<Word>deprecated</Word>
7263
<Word>finalize</Word>
73-
64+
7465
<Word>true</Word>
7566
<Word>false</Word>
7667
<Word>if</Word>
@@ -131,7 +122,6 @@
131122
<Word>void</Word>
132123
</Keywords>
133124

134-
<!-- Tipovi podataka -->
135125
<Keywords color="Type">
136126
<Word>var</Word>
137127
<Word>bool</Word>
@@ -155,7 +145,7 @@
155145
<Word>char</Word>
156146
<Word>wchar</Word>
157147
<Word>dchar</Word>
158-
<Word>string</Word>
148+
159149
<Word>wstring</Word>
160150
<Word>dstring</Word>
161151
<Word>size_t</Word>
@@ -169,10 +159,8 @@
169159
<Word>tuple</Word>
170160
</Keywords>
171161

172-
<!-- Pravilo za metode/funkcije -->
173-
<!-- Prepoznaje identifikatore ispred otvarajuće zagrade, npr. funkcije -->
174162
<Rule color="MethodName">[\d\w_]+(?=(\s*\())</Rule>
175-
<!-- Ne boja npr. std.string -->
163+
<!-- std.string -->
176164
<Rule color="Type">(?&lt;!\bstd\.)\bstring\b</Rule>
177165
</RuleSet>
178166
</SyntaxDefinition>

0 commit comments

Comments
 (0)