Files
QuickLook/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Dark/Lyric.xshd
2025-01-02 05:37:29 +08:00

40 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<SyntaxDefinition name="Lyric" extensions=".lrc" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
<Color name="Number" foreground="#B5CEA8" exampleText="3.14" />
<Color name="Punctuation1" foreground="#DA66BE" />
<Color name="Punctuation2" foreground="#FFD710" />
<Color name="Punctuation3" foreground="#FFFFFF" />
<RuleSet name="Object">
<Span color="Punctuation3" ruleSet="Expression">
<Begin>:</Begin>
</Span>
</RuleSet>
<RuleSet name="Array">
<Import ruleSet="Expression"/>
<Span color="Punctuation3">
<Begin>,</Begin>
</Span>
</RuleSet>
<RuleSet name="Expression">
<Span color="Punctuation1" ruleSet="Object" multiline="true">
<Begin>\{</Begin>
<End>\}</End>
</Span>
<Span color="Punctuation2" 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>