mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
74 lines
2.3 KiB
XML
74 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<SyntaxDefinition name="Json" extensions=".json" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
|
|
<Color name="Bool" foreground="#569CD6" exampleText="true | false" />
|
|
<Color name="Number" foreground="#B5CEA8" exampleText="3.14" />
|
|
<Color name="String" foreground="#CE9178" exampleText="" />
|
|
<Color name="Null" foreground="#569CD6" exampleText="" />
|
|
<Color name="FieldName" foreground="#9CDCF0" />
|
|
<Color name="Punctuation1" foreground="#DA66BE" />
|
|
<Color name="Punctuation2" foreground="#FFD710" />
|
|
<Color name="Punctuation3" foreground="#FFFFFF" />
|
|
|
|
<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="Punctuation3" ruleSet="Expression">
|
|
<Begin>:</Begin>
|
|
</Span>
|
|
<Span color="Punctuation3">
|
|
<Begin>,</Begin>
|
|
</Span>
|
|
</RuleSet>
|
|
|
|
<RuleSet name="Array">
|
|
<Import ruleSet="Expression"/>
|
|
<Span color="Punctuation3">
|
|
<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="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>
|