|
|
@@ -0,0 +1,81 @@
|
|
|
+._nim {
|
|
|
+ @extend %simple;
|
|
|
+
|
|
|
+ @if $style == 'dark' {
|
|
|
+ span.DecNumber { color: #AE81FF; }
|
|
|
+ span.BinNumber { color: #AE81FF; }
|
|
|
+ span.HexNumber { color: #AE81FF; }
|
|
|
+ span.OctNumber { color: #AE81FF; }
|
|
|
+ span.FloatNumber { color: #AE81FF; }
|
|
|
+ span.Identifier { color: #F8F8F2; }
|
|
|
+ span.Keyword { font-weight: 600; color: #F92672; }
|
|
|
+ span.StringLit { color: #E6DB74; }
|
|
|
+ span.LongStringLit { color: #E6DB74; }
|
|
|
+ span.CharLit { color: #E6DB74; }
|
|
|
+ span.EscapeSequence { color: white; }
|
|
|
+ span.Operator { color: white; }
|
|
|
+ span.Punctuation {color: white; }
|
|
|
+ span.Comment, span.LongComment {
|
|
|
+ font-style: italic;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #75715E; }
|
|
|
+
|
|
|
+ span.RegularExpression { color: darkviolet; }
|
|
|
+ span.TagStart { color: #F92672; }
|
|
|
+ span.TagEnd { color: #F92672; }
|
|
|
+ span.Key { color: #AE81FF; }
|
|
|
+ span.Value { color: #AE81FF; }
|
|
|
+ span.RawData { color: #a4255b; }
|
|
|
+ span.Assembler { color: #AE81FF; }
|
|
|
+ span.Preprocessor { color: #AE81FF; }
|
|
|
+ span.Directive { color: #AE81FF; }
|
|
|
+
|
|
|
+ span.Command, span.Rule, span.Hyperlink, span.Label, span.Reference,
|
|
|
+ span.Other { color: white; }
|
|
|
+
|
|
|
+ /* Pop type, const, proc, and iterator defs in nim def blocks */
|
|
|
+ dt pre > span.Identifier, dt pre > span.Operator { color: #529B2F; font-weight: 700; }
|
|
|
+ } @else {
|
|
|
+ span.DecNumber { color: #252dbe; }
|
|
|
+ span.BinNumber { color: #252dbe; }
|
|
|
+ span.HexNumber { color: #252dbe; }
|
|
|
+ span.OctNumber { color: #252dbe; }
|
|
|
+ span.FloatNumber { color: #252dbe; }
|
|
|
+ span.Identifier { color: #3b3b3b; }
|
|
|
+ span.Keyword { font-weight: 600; color: #5e8f60; }
|
|
|
+ span.StringLit { color: #a4255b; }
|
|
|
+ span.LongStringLit { color: #a4255b; }
|
|
|
+ span.CharLit { color: #a4255b; }
|
|
|
+ span.EscapeSequence { color: black; }
|
|
|
+ span.Operator { color: black; }
|
|
|
+ span.Punctuation {color: black; }
|
|
|
+ span.Comment, span.LongComment {
|
|
|
+ font-style: italic;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #484a86; }
|
|
|
+
|
|
|
+ span.RegularExpression { color: darkviolet; }
|
|
|
+ span.TagStart { color: darkviolet; }
|
|
|
+ span.TagEnd { color: darkviolet; }
|
|
|
+ span.Key { color: #252dbe; }
|
|
|
+ span.Value { color: #252dbe; }
|
|
|
+ span.RawData { color: #a4255b; }
|
|
|
+ span.Assembler { color: #252dbe; }
|
|
|
+ span.Preprocessor { color: #252dbe; }
|
|
|
+ span.Directive { color: #252dbe; }
|
|
|
+
|
|
|
+ span.Command, span.Rule, span.Hyperlink, span.Label, span.Reference,
|
|
|
+ span.Other { color: black; }
|
|
|
+
|
|
|
+ /* Pop type, const, proc, and iterator defs in nim def blocks */
|
|
|
+ dt pre > span.Identifier, dt pre > span.Operator { color: #155da4; font-weight: 700; }
|
|
|
+ }
|
|
|
+ dt pre > span.Identifier ~ span.Identifier, dt pre > span.Operator ~ span.Identifier {
|
|
|
+ color: inherit;
|
|
|
+ font-weight: inherit; }
|
|
|
+
|
|
|
+ dt pre > span.Operator ~ span.Identifier, dt pre > span.Operator ~ span.Operator {
|
|
|
+ color: inherit;
|
|
|
+ font-weight: inherit; }
|
|
|
+
|
|
|
+}
|