forked from AvaloniaUI/AvaloniaEdit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
icsharpcode/AvalonEdit#205 (sync xshd files)
- Loading branch information
1 parent
abd78eb
commit 1bd3b55
Showing
15 changed files
with
264 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -307,4 +307,4 @@ | |
[?,.;()\[\]{}+\-/%*<>^+~!|&]+ | ||
</Rule> | ||
</RuleSet> | ||
</SyntaxDefinition> | ||
</SyntaxDefinition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- syntaxdefinition for Json by alek kowalczyk --> | ||
<!-- update by zuijin in 2019.12.20 --> | ||
<SyntaxDefinition name="Json" extensions=".json" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> | ||
<Color name="Bool" foreground="Blue" exampleText="true | false" /> | ||
<Color name="Number" foreground="Red" exampleText="3.14" /> | ||
<Color name="String" foreground="Green" exampleText="" /> | ||
<Color name="Null" foreground="Olive" exampleText="" /> | ||
<Color name="FieldName" foreground="DarkMagenta" /> | ||
<Color name="Punctuation" foreground="Black" /> | ||
|
||
<RuleSet name="String"> | ||
<Span begin="\\" end="."/> | ||
</RuleSet> | ||
|
||
<RuleSet name="Object"> | ||
<Span color="FieldName" ruleSet="String"> | ||
<Begin>"</Begin> | ||
<End>"</End> | ||
</Span> | ||
<Span color="FieldName" ruleSet="String"> | ||
<Begin>'</Begin> | ||
<End>'</End> | ||
</Span> | ||
<Span color="Punctuation" ruleSet="Expression"> | ||
<Begin>:</Begin> | ||
</Span> | ||
<Span color="Punctuation"> | ||
<Begin>,</Begin> | ||
</Span> | ||
</RuleSet> | ||
|
||
<RuleSet name="Array"> | ||
<Import ruleSet="Expression"/> | ||
<Span color="Punctuation"> | ||
<Begin>,</Begin> | ||
</Span> | ||
</RuleSet> | ||
|
||
<RuleSet name="Expression"> | ||
<Keywords color="Bool" > | ||
<Word>true</Word> | ||
<Word>false</Word> | ||
</Keywords> | ||
<Keywords color="Null" > | ||
<Word>null</Word> | ||
</Keywords> | ||
<Span color="String" ruleSet="String"> | ||
<Begin>"</Begin> | ||
<End>"</End> | ||
</Span> | ||
<Span color="String" ruleSet="String"> | ||
<Begin>'</Begin> | ||
<End>'</End> | ||
</Span> | ||
<Span color="Punctuation" ruleSet="Object" multiline="true"> | ||
<Begin>\{</Begin> | ||
<End>\}</End> | ||
</Span> | ||
<Span color="Punctuation" ruleSet="Array" multiline="true"> | ||
<Begin>\[</Begin> | ||
<End>\]</End> | ||
</Span> | ||
<Rule color="Number"> | ||
\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)? | ||
</Rule> | ||
</RuleSet> | ||
|
||
<RuleSet> | ||
<Import ruleSet="Expression"/> | ||
</RuleSet> | ||
</SyntaxDefinition> |
148 changes: 74 additions & 74 deletions
148
src/AvaloniaEdit/Highlighting/Resources/MarkDownWithFontSize-Mode.xshd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,76 @@ | ||
<?xml version="1.0"?> | ||
<SyntaxDefinition name="MarkDownWithFontSize" extensions=".md" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> | ||
<Color name="Heading1" foreground="Maroon" fontSize="30" exampleText="# Title #" /> | ||
<Color name="Heading2" foreground="Maroon" fontSize="27" exampleText="# Title #" /> | ||
<Color name="Heading3" foreground="Maroon" fontSize="24" exampleText="# Title #" /> | ||
<Color name="Heading4" foreground="Maroon" fontSize="21" exampleText="# Title #" /> | ||
<Color name="Heading5" foreground="Maroon" fontSize="18" exampleText="# Title #" /> | ||
<Color name="Heading6" foreground="Maroon" fontSize="15" exampleText="# Title #" /> | ||
<Color name="Emphasis" fontStyle="italic" exampleText="*this* is important!" /> | ||
<Color name="StrongEmphasis" fontWeight="bold" exampleText="**this** is more important!" /> | ||
<Color name="Code" fontFamily="Footlight MT Light" exampleText="this is `int.GetHashCode()`" /> | ||
<Color name="BlockQuote" foreground="DarkBlue" exampleText="> This is a\r\n> quote." /> | ||
<Color name="Link" foreground="Blue" exampleText="[text](http://example.com)" /> | ||
<Color name="Image" foreground="Green" exampleText="[text][http://example.com/test.png]" /> | ||
<Color name="LineBreak" background="LightGray" exampleText="end of line \r\n2nd line " /> | ||
|
||
<RuleSet ignoreCase="true"> | ||
<Rule color="Heading1"> | ||
^[#]{1}[ ]{1}.* | ||
</Rule> | ||
<Rule color="Heading2"> | ||
^[#]{2}[ ]{1}.* | ||
</Rule> | ||
<Rule color="Heading3"> | ||
^[#]{3}[ ]{1}.* | ||
</Rule> | ||
<Rule color="Heading4"> | ||
^[#]{4}[ ]{1}.* | ||
</Rule> | ||
<Rule color="Heading5"> | ||
^[#]{5}[ ]{1}.* | ||
</Rule> | ||
<Rule color="Heading6"> | ||
^[#]{6}[ ]{1}.* | ||
</Rule> | ||
<Rule color="StrongEmphasis"> | ||
\*\*.*\*\* | ||
</Rule> | ||
<Rule color="StrongEmphasis"> | ||
__.*__ | ||
</Rule> | ||
<Rule color="Emphasis"> | ||
\*(?![ ]).*\* | ||
</Rule> | ||
<Rule color="Emphasis"> | ||
_.*_ | ||
</Rule> | ||
<Rule color="Code"> | ||
`.*` | ||
</Rule> | ||
<Span color="Code" ruleSet="C#/" multiline="true"> | ||
<Begin>^\t</Begin> | ||
<End>^(?!\t)</End> | ||
</Span> | ||
<Span color="Code" ruleSet="C#/" multiline="true"> | ||
<Begin>^[ ]{4}</Begin> | ||
<End>^(?![ ]{4})</End> | ||
</Span> | ||
<Span color="BlockQuote" multiline="true"> | ||
<Begin>^></Begin> | ||
<End>^(?!>)</End> | ||
</Span> | ||
<Rule color="Image"> | ||
\!\[.*\]\[.*\] | ||
</Rule> | ||
<Rule color="Link"> | ||
\[.*\]\(.*\) | ||
</Rule> | ||
<Rule color="Link"> | ||
\[.*\]\[.*\] | ||
</Rule> | ||
<Rule color="LineBreak"> | ||
[ ]{2}$ | ||
</Rule> | ||
</RuleSet> | ||
</SyntaxDefinition> | ||
<Color name="Heading1" foreground="Maroon" fontSize="30" exampleText="# Title #" /> | ||
<Color name="Heading2" foreground="Maroon" fontSize="27" exampleText="# Title #" /> | ||
<Color name="Heading3" foreground="Maroon" fontSize="24" exampleText="# Title #" /> | ||
<Color name="Heading4" foreground="Maroon" fontSize="21" exampleText="# Title #" /> | ||
<Color name="Heading5" foreground="Maroon" fontSize="18" exampleText="# Title #" /> | ||
<Color name="Heading6" foreground="Maroon" fontSize="15" exampleText="# Title #" /> | ||
<Color name="Emphasis" fontStyle="italic" exampleText="*this* is important!" /> | ||
<Color name="StrongEmphasis" fontWeight="bold" exampleText="**this** is more important!" /> | ||
<Color name="Code" fontFamily="Footlight MT Light" exampleText="this is `int.GetHashCode()`" /> | ||
<Color name="BlockQuote" foreground="DarkBlue" exampleText="> This is a\r\n> quote." /> | ||
<Color name="Link" foreground="Blue" exampleText="[text](http://example.com)" /> | ||
<Color name="Image" foreground="Green" exampleText="[text][http://example.com/test.png]" /> | ||
<Color name="LineBreak" background="LightGray" exampleText="end of line \r\n2nd line " /> | ||
<RuleSet ignoreCase="true"> | ||
<Rule color="Heading1"> | ||
^[#]{1}[ ]{1}.* | ||
</Rule> | ||
<Rule color="Heading2"> | ||
^[#]{2}[ ]{1}.* | ||
</Rule> | ||
<Rule color="Heading3"> | ||
^[#]{3}[ ]{1}.* | ||
</Rule> | ||
<Rule color="Heading4"> | ||
^[#]{4}[ ]{1}.* | ||
</Rule> | ||
<Rule color="Heading5"> | ||
^[#]{5}[ ]{1}.* | ||
</Rule> | ||
<Rule color="Heading6"> | ||
^[#]{6}[ ]{1}.* | ||
</Rule> | ||
<Rule color="StrongEmphasis"> | ||
\*\*.*\*\* | ||
</Rule> | ||
<Rule color="StrongEmphasis"> | ||
__.*__ | ||
</Rule> | ||
<Rule color="Emphasis"> | ||
\*(?![ ]).*\* | ||
</Rule> | ||
<Rule color="Emphasis"> | ||
_.*_ | ||
</Rule> | ||
<Rule color="Code"> | ||
`.*` | ||
</Rule> | ||
<Span color="Code" ruleSet="C#/" multiline="true"> | ||
<Begin>^\t</Begin> | ||
<End>^(?!\t)</End> | ||
</Span> | ||
<Span color="Code" ruleSet="C#/" multiline="true"> | ||
<Begin>^[ ]{4}</Begin> | ||
<End>^(?![ ]{4})</End> | ||
</Span> | ||
<Span color="BlockQuote" multiline="true"> | ||
<Begin>^></Begin> | ||
<End>^(?!>)</End> | ||
</Span> | ||
<Rule color="Image"> | ||
\!\[.*\]\[.*\] | ||
</Rule> | ||
<Rule color="Link"> | ||
\[.*\]\(.*\) | ||
</Rule> | ||
<Rule color="Link"> | ||
\[.*\]\[.*\] | ||
</Rule> | ||
<Rule color="LineBreak"> | ||
[ ]{2}$ | ||
</Rule> | ||
</RuleSet> | ||
</SyntaxDefinition> |
Oops, something went wrong.