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
« 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 34 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 34 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 34 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 34 our $VERSION = q[1.1.0];
15  
16 # TODO: Use token patterns from original sass and use them consistently
17  
18 34 Readonly our $ESCAPE => qr/\\./smx;
19 34 Readonly our $NMCHAR => qr/[^\s:\\]|$ESCAPE/smx;
20 34 Readonly our $IDENT => qr/(?:$NMCHAR)+/smx;
21  
22 # Next patterns are already consistent with Sass
23  
24 34 Readonly our $COMMENT => qr{/[*]([^*]|[*]+[^*])*[*]*[*]/}smx;
25 34 Readonly our $SINGLE_LINE_COMMENT => qr{\s//.*}mx; ## no critic (RequireDotMatchAnything)
26  
27 34 1;
28 __END__
« lib/Text/Sass/Functions.pm ↑ Summary