|
|
|
@ -7,6 +7,7 @@
@@ -7,6 +7,7 @@
|
|
|
|
|
<!-- The named colors 'Comment' and 'String' are used in SharpDevelop to detect if a line is inside a multiline string/comment --> |
|
|
|
|
<Color name="Comment" foreground="Green" exampleText="// comment" /> |
|
|
|
|
<Color name="String" foreground="Blue" exampleText="string text = "Hello, World!""/> |
|
|
|
|
<Color name="StringInterpolation" foreground="Black" exampleText="string text = $"Hello, {name}!""/> |
|
|
|
|
<Color name="Char" foreground="Magenta" exampleText="char linefeed = '\n';"/> |
|
|
|
|
<Color name="Preprocessor" foreground="Green" exampleText="#region Title" /> |
|
|
|
|
<Color name="Punctuation" exampleText="a(b.c);" /> |
|
|
|
@ -123,6 +124,18 @@
@@ -123,6 +124,18 @@
|
|
|
|
|
</RuleSet> |
|
|
|
|
</Span> |
|
|
|
|
|
|
|
|
|
<Span color="String"> |
|
|
|
|
<Begin>\$"</Begin> |
|
|
|
|
<End>"</End> |
|
|
|
|
<RuleSet> |
|
|
|
|
<!-- span for escape sequences --> |
|
|
|
|
<Span begin="\\" end="."/> |
|
|
|
|
<Span begin="\{\{" end=""/> |
|
|
|
|
<!-- string interpolation --> |
|
|
|
|
<Span begin="{" end="}" color="StringInterpolation" ruleSet=""/> |
|
|
|
|
</RuleSet> |
|
|
|
|
</Span> |
|
|
|
|
|
|
|
|
|
<!-- Digits --> |
|
|
|
|
<Rule color="NumberLiteral"> |
|
|
|
|
\b0[xX][0-9a-fA-F]+ # hex number |
|
|
|
|