line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
## no critic: TestingAndDebugging::RequireUseStrict |
2
|
|
|
|
|
|
|
package Config::IOD::Constants; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
5
|
|
|
|
|
|
|
our $DATE = '2022-05-02'; # DATE |
6
|
|
|
|
|
|
|
our $DIST = 'Config-IOD'; # DIST |
7
|
|
|
|
|
|
|
our $VERSION = '0.353'; # VERSION |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
BEGIN { |
10
|
15
|
|
|
15
|
|
644
|
our %constants = ( |
11
|
|
|
|
|
|
|
COL_TYPE => 0, |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
COL_B_RAW => 1, |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
COL_D_COMMENT_CHAR => 1, |
16
|
|
|
|
|
|
|
COL_D_WS1 => 2, |
17
|
|
|
|
|
|
|
COL_D_WS2 => 3, |
18
|
|
|
|
|
|
|
COL_D_DIRECTIVE => 4, |
19
|
|
|
|
|
|
|
COL_D_WS3 => 5, |
20
|
|
|
|
|
|
|
COL_D_ARGS_RAW => 6, |
21
|
|
|
|
|
|
|
COL_D_NL => 7, |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
COL_C_WS1 => 1, |
24
|
|
|
|
|
|
|
COL_C_COMMENT_CHAR => 2, |
25
|
|
|
|
|
|
|
COL_C_COMMENT => 3, |
26
|
|
|
|
|
|
|
COL_C_NL => 4, |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
COL_S_WS1 => 1, |
29
|
|
|
|
|
|
|
COL_S_WS2 => 2, |
30
|
|
|
|
|
|
|
COL_S_SECTION => 3, |
31
|
|
|
|
|
|
|
COL_S_WS3 => 4, |
32
|
|
|
|
|
|
|
COL_S_WS4 => 5, |
33
|
|
|
|
|
|
|
COL_S_COMMENT_CHAR => 6, |
34
|
|
|
|
|
|
|
COL_S_COMMENT => 7, |
35
|
|
|
|
|
|
|
COL_S_NL => 8, |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
COL_K_WS1 => 1, |
38
|
|
|
|
|
|
|
COL_K_KEY => 2, |
39
|
|
|
|
|
|
|
COL_K_WS2 => 3, |
40
|
|
|
|
|
|
|
COL_K_WS3 => 4, |
41
|
|
|
|
|
|
|
COL_K_VALUE_RAW => 5, |
42
|
|
|
|
|
|
|
COL_K_NL => 6, |
43
|
|
|
|
|
|
|
); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
15
|
|
|
15
|
|
79
|
use constant \%constants; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
3113
|
|
47
|
|
|
|
|
|
|
|
48
|
15
|
|
|
15
|
|
86
|
use Exporter qw(import); |
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
1229
|
|
49
|
|
|
|
|
|
|
our @EXPORT_OK = sort keys %constants; |
50
|
|
|
|
|
|
|
our %EXPORT_TAGS = (ALL => \@EXPORT_OK); |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
# ABSTRACT: Constants used when parsing IOD document |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |