| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package CSS::Prepare::CSSGrammar; |
|
2
|
|
|
|
|
|
|
|
|
3
|
57
|
|
|
57
|
|
325
|
use Modern::Perl; |
|
|
57
|
|
|
|
|
111
|
|
|
|
57
|
|
|
|
|
833
|
|
|
4
|
57
|
|
|
57
|
|
7247
|
use Exporter; |
|
|
57
|
|
|
|
|
111
|
|
|
|
57
|
|
|
|
|
28443
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our @ISA = qw( Exporter ); |
|
7
|
|
|
|
|
|
|
our @EXPORT = qw( |
|
8
|
|
|
|
|
|
|
$grammar_media_query_list |
|
9
|
|
|
|
|
|
|
); |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my $ident = qr{ -? [_a-z] [_a-z0-9-]* }ix; |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# FIXME: this is lazy |
|
16
|
|
|
|
|
|
|
my $term = qr{ \S+ }x; |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my $expression = qr{ \( \s* $ident \s* (?: : \s* $term )? \s* \) }x; |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
my $media_query = qr{ |
|
21
|
|
|
|
|
|
|
(?: |
|
22
|
|
|
|
|
|
|
(?: only | not )? \s* $ident |
|
23
|
|
|
|
|
|
|
(?: \s* and \s* $expression )* |
|
24
|
|
|
|
|
|
|
) |
|
25
|
|
|
|
|
|
|
| |
|
26
|
|
|
|
|
|
|
(?: |
|
27
|
|
|
|
|
|
|
$expression |
|
28
|
|
|
|
|
|
|
(?: and \s* $expression )* |
|
29
|
|
|
|
|
|
|
) |
|
30
|
|
|
|
|
|
|
}x; |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
our $grammar_media_query_list |
|
33
|
|
|
|
|
|
|
= qr{ $media_query (?: \, \s* $media_query )* }x; |