ema
2025-06-23 01:43:30 +08:00
parent 879ec689a9
commit 4d3d216d78

View File

@@ -0,0 +1,91 @@
<!--
There is no such thing like a log file format but there are usually keywords,
such as, ERROR, FATAL, DEBUG, or timestamps in squared brackets that could be
viewed with a better experience than no highlighting at all.
This highlighting pattern is intended to improve the viewing experience for text
based (non-xml based) log files.
-->
<SyntaxDefinition name="LOG" extensions=".log"
xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
<Color name="Digits" foreground="#FFb5cea8" fontStyle="normal" fontWeight="normal" />
<Color name="Comment" foreground="#FF57A64A"/>
<Color name="Punctuation" foreground="White"/>
<Color name="String" foreground="#FFD69D85"/>
<Color name="String2" foreground="#FFD69D85"/>
<Color name="Section" foreground="#FFdcdcaa"/>
<Color name="AmericanDate" foreground="#FFd8a0df"/>
<Color name="TimeStamp" foreground="#FFd8a0df"/>
<Color name="ImportantKeywords" foreground="#FFd8a0df" fontWeight="bold" />
<Color name="InfoKeywords" foreground="#FF559CD6" fontWeight="bold" />
<RuleSet ignoreCase="true">
<Keywords color="InfoKeywords">
<Word>Info</Word>
<Word>Information</Word>
<Word>Trace</Word>
<Word>Debug</Word>
</Keywords>
<Keywords color="ImportantKeywords">
<Word>Error</Word>
<Word>Warn</Word>
<Word>Warning</Word>
<Word>Exception</Word>
<Word>Fatal</Word>
</Keywords>
<Span color="String" multiline="false" >
<Begin>'</Begin>
<End>'</End>
</Span>
<Span color="String2" multiline="false" >
<Begin>"</Begin>
<End>"</End>
</Span>
<!-- span for escape sequences -->
<Span color="Comment" multiline="false">
<Begin>;</Begin>
</Span>
<Span color="Comment" multiline="false">
<Begin>\#</Begin>
</Span>
<Span color="Section" multiline="false">
<Begin>\[</Begin>
<End>\]</End>
</Span>
<Rule color="Punctuation">
[?,.;()\[\]{}+\-/%*&lt;&gt;^+~!|&amp;]+
</Rule>
<Rule color="Digits">
[?,.;()\[\]{}+\-/%*&lt;&gt;^+~!|&amp;]+[0-9]+[ ?,.;()\[\]{}+\-/%*&lt;&gt;^+~!|&amp;]+\n
</Rule>
<!-- American Date: 2013-01-28 -->
<Rule color="AmericanDate">
[0-9][0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]
</Rule>
<!-- Time Stamp with milli seconds: 13:05:35.425 -->
<Rule color="TimeStamp">
[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]\.[0-9][0-9][0-9]
</Rule>
<!-- Time Stamp WITHOUT milli seconds: 13:05:35 -->
<Rule color="TimeStamp">
[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]
</Rule>
</RuleSet>
</SyntaxDefinition>