Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/CSS_PHP.pm
Criterion Covered Total %
branch 0 182 0.0


line true false branch
573 0 0 if ($self->includeRules('FindPHP', $text))
577 0 0 if ($self->testLineContinue($text, 0, undef, 0, '#stay', undef))
581 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
586 0 0 if ($self->includeRules('FindRuleSets', $text))
596 0 0 if ($self->includeRules('FindPHP', $text))
600 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
609 0 0 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment'))
614 0 0 if ($self->includePlugin('Alerts', $text))
618 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
628 0 0 if ($self->includeRules('FindPHP', $text))
636 0 0 if ($self->testRegExpr($text, '/\\*BEGIN.*\\*/', 0, 0, 0, undef, 0, '#stay', 'Region Marker'))
644 0 0 if ($self->testRegExpr($text, '/\\*END.*\\*/', 0, 0, 0, undef, 0, '#stay', 'Region Marker'))
653 0 0 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Comment', 'Comment'))
665 0 0 if ($self->testRegExpr($text, '<\\?(?:=|php)?', 0, 0, 1, undef, 0, '##PHP/PHP', undef))
675 0 0 if ($self->includeRules('FindPHP', $text))
682 0 0 if ($self->testRegExpr($text, '@media\\b', 0, 0, 0, undef, 0, 'Media', 'Media'))
689 0 0 if ($self->testRegExpr($text, '@import\\b', 0, 0, 0, undef, 0, 'Import', 'At Rule'))
696 0 0 if ($self->testRegExpr($text, '@(font-face|charset)\\b', 0, 0, 0, undef, 0, '#stay', 'At Rule'))
704 0 0 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, 'RuleSet', 'Property'))
711 0 0 if ($self->testDetectChar($text, '[', 0, 0, 0, undef, 0, 'SelAttr', 'Selector Attr'))
718 0 0 if ($self->testRegExpr($text, '#[A-Za-z0-9][\\w\\-]*', 0, 0, 0, undef, 0, '#stay', 'Selector Id'))
725 0 0 if ($self->testRegExpr($text, '\\.[A-Za-z0-9][\\w\\-]*', 0, 0, 0, undef, 0, '#stay', 'Selector Class'))
732 0 0 if ($self->testRegExpr($text, ':lang\\([\\w_-]+\\)', 0, 0, 0, undef, 0, '#stay', 'Selector Pseudo'))
739 0 0 if ($self->testDetectChar($text, ':', 0, 0, 0, undef, 0, 'SelPseudo', 'Selector Pseudo'))
744 0 0 if ($self->includeRules('FindStrings', $text))
749 0 0 if ($self->includeRules('FindComments', $text))
759 0 0 if ($self->includeRules('FindPHP', $text))
766 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'StringDQ', 'String'))
773 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, 'StringSQ', 'String'))
783 0 0 if ($self->includeRules('FindPHP', $text))
790 0 0 if ($self->testRegExpr($text, '[-+]?[0-9.]+(em|ex|px|in|cm|mm|pt|pc|deg|rad|grad|ms|s|Hz|kHz)\\b', 0, 0, 0, undef, 0, '#stay', 'Value'))
797 0 0 if ($self->testRegExpr($text, '[-+]?[0-9.]+[%]?', 0, 0, 0, undef, 0, '#stay', 'Value'))
804 0 0 if ($self->testRegExpr($text, '[\\w\\-]+', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
814 0 0 if ($self->includeRules('FindPHP', $text))
821 0 0 if ($self->testDetectChar($text, ';', 0, 0, 0, undef, 0, '#pop', 'At Rule'))
828 0 0 if ($self->testKeyword($text, 'mediatypes', 0, undef, 0, '#stay', 'Media'))
833 0 0 if ($self->includeRules('FindValues', $text))
838 0 0 if ($self->includeRules('FindStrings', $text))
843 0 0 if ($self->includeRules('FindComments', $text))
853 0 0 if ($self->includeRules('FindPHP', $text))
860 0 0 if ($self->testRegExpr($text, q(\\\\["']), 0, 0, 0, undef, 0, '#stay', 'String'))
864 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
874 0 0 if ($self->includeRules('FindPHP', $text))
882 0 0 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, 'Media2', 'Media'))
889 0 0 if ($self->testKeyword($text, 'mediatypes', 0, undef, 0, '#stay', 'Media'))
896 0 0 if ($self->testDetectChar($text, ',', 0, 0, 0, undef, 0, '#stay', 'Media'))
901 0 0 if ($self->includeRules('FindComments', $text))
908 0 0 if ($self->testRegExpr($text, '\\S+', 0, 0, 0, undef, 0, '#stay', 'Error'))
918 0 0 if ($self->includeRules('FindPHP', $text))
926 0 0 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#pop#pop', 'Media'))
931 0 0 if ($self->includeRules('FindRuleSets', $text))
941 0 0 if ($self->includeRules('FindPHP', $text))
948 0 0 if ($self->testDetectChar($text, '(', 0, 0, 0, undef, 0, 'PropParen2', 'Value'))
953 0 0 if ($self->includeRules('FindComments', $text))
960 0 0 if ($self->testRegExpr($text, '\\S', 0, 0, 0, undef, 0, '#stay', 'Error'))
970 0 0 if ($self->includeRules('FindPHP', $text))
977 0 0 if ($self->testDetectChar($text, ')', 0, 0, 0, undef, 0, '#pop#pop', 'Value'))
982 0 0 if ($self->includeRules('FindValues', $text))
987 0 0 if ($self->includeRules('FindStrings', $text))
992 0 0 if ($self->includeRules('FindComments', $text))
1002 0 0 if ($self->includeRules('FindPHP', $text))
1009 0 0 if ($self->testDetectChar($text, ':', 0, 0, 0, undef, 0, 'Rule2', 'Property'))
1016 0 0 if ($self->testRegExpr($text, '\\S', 0, 0, 0, undef, 0, '#stay', 'Error'))
1026 0 0 if ($self->includeRules('FindPHP', $text))
1033 0 0 if ($self->testDetectChar($text, ';', 0, 0, 0, undef, 0, '#pop#pop', 'Property'))
1041 0 0 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#pop#pop#pop', 'Property'))
1048 0 0 if ($self->testKeyword($text, 'types', 0, undef, 0, '#stay', 'Value'))
1055 0 0 if ($self->testKeyword($text, 'colors', 0, undef, 0, '#stay', 'Value'))
1062 0 0 if ($self->testRegExpr($text, '#([0-9A-Fa-f]{3}){1,4}\\b', 0, 0, 0, undef, 0, '#stay', 'Value'))
1069 0 0 if ($self->testKeyword($text, 'paren', 0, undef, 0, 'PropParen', 'Value'))
1076 0 0 if ($self->testRegExpr($text, '!important\\b', 0, 0, 0, undef, 0, '#stay', 'Important'))
1081 0 0 if ($self->includeRules('FindValues', $text))
1086 0 0 if ($self->includeRules('FindStrings', $text))
1091 0 0 if ($self->includeRules('FindComments', $text))
1101 0 0 if ($self->includeRules('FindPHP', $text))
1109 0 0 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#pop', 'Property'))
1116 0 0 if ($self->testKeyword($text, 'properties', 0, undef, 0, 'Rule', 'Property'))
1123 0 0 if ($self->testRegExpr($text, '-?[A-Za-z_-]+(?=\\s*:)', 0, 0, 0, undef, 0, 'Rule', 'Unknown Property'))
1128 0 0 if ($self->includeRules('FindComments', $text))
1135 0 0 if ($self->testRegExpr($text, '\\S', 0, 0, 0, undef, 0, '#stay', 'Error'))
1145 0 0 if ($self->includeRules('FindPHP', $text))
1152 0 0 if ($self->testDetectChar($text, ']', 0, 0, 0, undef, 0, '#pop', 'Selector Attr'))
1157 0 0 if ($self->includeRules('FindStrings', $text))
1167 0 0 if ($self->includeRules('FindPHP', $text))
1174 0 0 if ($self->testKeyword($text, 'pseudoclasses', 0, undef, 0, '#pop', 'Selector Pseudo'))
1184 0 0 if ($self->includeRules('FindPHP', $text))
1191 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))
1196 0 0 if ($self->includeRules('InsideString', $text))
1206 0 0 if ($self->includeRules('FindPHP', $text))
1213 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'String'))
1218 0 0 if ($self->includeRules('InsideString', $text))