ColorTheme/Data/Dump/Color/Default256.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
_ansi256fg
1.0
CRAP 1.0
« auto/share/dist/Data-Dump-Color/examples/example2.pl ↑ Summary
1 package ColorTheme::Data::Dump::Color::Default256;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use parent 'ColorThemeBase::Static::FromStructColors';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
7 1 our $DATE = '2025-02-21'; # DATE
8 1 our $DIST = 'Data-Dump-Color'; # DIST
9 1 our $VERSION = '0.251'; # VERSION
10  
11 12 ▶sub _ansi256fg {
Subroutine _ansi256fg: called CC=1 SCAR=0.0
12 12 my $code = shift;
13 12 return {ansi_fg=>"\e[38;5;${code}m"};
14 }
15  
16 1 our %THEME = (
17 v => 2,
18 items => {
19 Regexp => _ansi256fg(135),
20 undef => _ansi256fg(124),
21 number => _ansi256fg(27),
22 float => _ansi256fg(51),
23 string => _ansi256fg(226),
24 object => _ansi256fg(10),
25 glob => _ansi256fg(10),
26 key => _ansi256fg(202),
27 comment => _ansi256fg(34),
28 keyword => _ansi256fg(21),
29 symbol => _ansi256fg(51),
30 linum => _ansi256fg(10),
31 },
32 );
33  
34 1 1;
35 # ABSTRACT: Default color theme for Data::Dump::Color (256 color)
36  
37 __END__
« auto/share/dist/Data-Dump-Color/examples/example2.pl ↑ Summary