blib/lib/ChordPro/lib/Data/Printer/Theme/Zellner.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 12 CC 1 SCAR 6.9
CC
1
Cov
0%
colors
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Data::Printer::Theme::Zellner;
2 use warnings;
3 use strict;
4  
5 our $VERSION = '0.02';
6  
7 sub colors {
8 return {
9 array => '#ff0000', # array index numbers
10 number => '#870000', # numbers
11 string => '#ff00ff', # strings
12 class => '#000087', # class names
13 method => '#a52a2a', # method names
14 undef => '#a9a9a9', # the 'undef' value
15 hash => '#0000ff', # hash keys
16 regex => '#000087', # regular expressions
17 code => '#870087', # code references
18 glob => '#870087', # globs (usually file handles)
19 vstring => '#ff00ff', # version strings (v5.30.1, etc)
20 lvalue => '#000000', # lvalue label
21 format => '#000000', # format type
22 repeated => '#000000', # references to seen values
23 caller_info => '#878787', # details on what's being printed
24 weak => '#000000', # weak references flag
25 tainted => '#870000', # tainted flag
26 unicode => '#000000', # utf8 flag
27 escaped => '#ff00ff', # escaped characters (\t, \n, etc)
28 brackets => '#000000', # (), {}, []
29 separator => '#000000', # the "," between hash pairs, array elements, etc
30 quotes => '#000000', # q(")
31 unknown => '#878787', # any (potential) data type unknown to Data::Printer
32 };
33 }
34  
35 1;
36  
37 =pod
38  
39 =head1 NAME
40  
41 Data::Printer::Theme::Zellner - A L<Data::Printer> theme based on vims Zellner colors.
42  
43 =head1 SYNOPSIS
44  
45 $ echo "theme = Zellner" >> ~/.dataprinter
46  
47 or
48  
49 use DDP theme => 'Zellner';
50  
51 or
52  
53 $ perl -MDDP=theme,Zellner -wE 'my $x = "string"; p $x'
54  
55 =head1 DESCRIPTION
56  
57 This theme for L<Data::Printer> is for people who use a I<light> background in
58 their terminal. It is based on L<vim(1)>s B<Zellner> colorscheme.
59  
60 =head2 colors
61  
62 array => '#ff0000', # array index numbers
63 number => '#870000', # numbers
64 string => '#ff00ff', # strings
65 class => '#000087', # class names
66 method => '#a52a2a', # method names
67 undef => '#a9a9a9', # the 'undef' value
68 hash => '#0000ff', # hash keys
69 regex => '#000087', # regular expressions
70 code => '#870087', # code references
71 glob => '#870087', # globs (usually file handles)
72 vstring => '#ff00ff', # version strings (v5.30.1, etc)
73 lvalue => '#000000', # lvalue label
74 format => '#000000', # format type
75 repeated => '#000000', # references to seen values
76 caller_info => '#878787', # details on what's being printed
77 weak => '#000000', # weak references flag
78 tainted => '#870000', # tainted flag
79 unicode => '#000000', # utf8 flag
80 escaped => '#ff00ff', # escaped characters (\t, \n, etc)
81 brackets => '#000000', # (), {}, []
82 separator => '#000000', # the "," between hash pairs, array elements, etc
83 quotes => '#000000', # q(")
84 unknown => '#878787', # any (potential) data type unknown to Data::Printer
85  
86 =head1 COPYRIGHT
87  
88 E<copy> MMXXIII - Abe Timmerman <abeltje@cpan.org>
89  
90 =head1 CONTRIBUTIONS
91  
92 =over
93  
94 =item B<Johan Vromans>
95  
96 =back
97  
98 =head1 LICENSE
99  
100 This library is free software; you can redistribute it and/or modify
101 it under the same terms as Perl itself.
102  
103 This program is distributed in the hope that it will be useful,
104 but WITHOUT ANY WARRANTY; without even the implied warranty of
105 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
106  
107 =cut