Markdent/Regexes.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Markdent/Event/Text.pm ↑ Summary Markdent/Role/BlockParser.pm »
1 package Markdent::Regexes;
2  
3 35 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 35 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 35 our $VERSION = '0.39';
7  
8 35 ▶use List::AllUtils qw( uniq );
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 35 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 35 our %EXPORT_TAGS = (
13 block => [
14 qw(
15 $HorizontalWS
16 $EmptyLine
17 $EmptyLines
18 $BlockStart
19 $BlockEnd
20 ),
21 ],
22 span => [],
23 other => [qw( $HTMLComment )],
24 );
25  
26 35 our @EXPORT_OK = uniq( map { @{$_} } values %EXPORT_TAGS );
27  
28 ## no critic (Variables::ProhibitPackageVars)
29 35 our $HorizontalWS = qr/(?: \p{SpaceSeparator} | \t )/x;
30 35 our $EmptyLine = qr/(?: ^ $HorizontalWS* \n ) /xm;
31 35 our $EmptyLines = qr/ (?: $EmptyLine )+ /xm;
32  
33 35 our $BlockStart = qr/(?: \A | $EmptyLines )/xm;
34 35 our $BlockEnd = qr/(?=(?: $EmptyLines | \z ) )/xm;
35  
36 35 our $HTMLComment = qr{<!--(.+?)-->}s;
37 ## use critic
38  
39 35 1;
« Markdent/Event/Text.pm ↑ Summary Markdent/Role/BlockParser.pm »