blib/lib/Text/Sass/Token.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Text/Sass/Functions.pm ↑ Summary
1 # -*- mode: cperl; tab-width: 8; indent-tabs-mode: nil; basic-offset: 2 -*-
2 # vim:ts=8:sw=2:et:sta:sts=2
3 #########
4 # Author: annulen
5 # Last Modified: $Date$
6 # Id: $Id$
7 # $HeadURL$
8 #
9 package Text::Sass::Token;
10 30 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 30 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 30 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 30 our $VERSION = q[1.0.4];
15  
16 # TODO: Use token patterns from original sass and use them consistently
17  
18 30 Readonly our $ESCAPE => qr/\\./smx;
19 30 Readonly our $NMCHAR => qr/[^\s:\\]|$ESCAPE/smx;
20 30 Readonly our $IDENT => qr/(?:$NMCHAR)+/smx;
21  
22 # Next patterns are already consistent with Sass
23  
24 30 Readonly our $COMMENT => qr{/[*]([^*]|[*]+[^*])*[*]*[*]/}smx;
25 30 Readonly our $SINGLE_LINE_COMMENT => qr{\s//.*}mx; ## no critic (RequireDotMatchAnything)
26  
27 30 1;
28 __END__
« blib/lib/Text/Sass/Functions.pm ↑ Summary