Branch Coverage

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


line true false branch
736 0 0 if ($self->testRegExpr($text, '\\s+', 0, 0, 0, undef, 0, '#stay', 'Print Command'))
743 0 0 if ($self->testKeyword($text, 'mupfontnames', 0, undef, 0, 'Print Command', 'Print Command'))
750 0 0 if ($self->testKeyword($text, 'mupfontstyles', 0, undef, 0, 'Print Command', 'Print Command'))
757 0 0 if ($self->testRegExpr($text, '\\b(let|mnum|num)\\b', 0, 0, 0, undef, 0, '#pop', 'Barline'))
762 0 0 if ($self->includeRules('Macro', $text))
771 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
778 0 0 if ($self->testRegExpr($text, '\\b(ending|endending|hidechanges)\\b', 0, 0, 0, undef, 0, '#stay', 'Barline'))
785 0 0 if ($self->testRegExpr($text, '\\breh(earsal)?\\b', 0, 0, 0, undef, 0, 'Bar Rehearsal', 'Barline'))
792 0 0 if ($self->testRegExpr($text, '\\bmnum\\s*=\\s*[0-9]+', 0, 0, 0, undef, 0, '#stay', 'Barline'))
799 0 0 if ($self->testRegExpr($text, '\\bnum\\s*=\\s*[0-9]+', 0, 0, 0, undef, 0, '#stay', 'Barline'))
806 0 0 if ($self->testRegExpr($text, '\\blet\\s*=\\s*("[A-Z]{1,2}")?', 0, 0, 0, undef, 0, '#stay', 'Barline'))
813 0 0 if ($self->testRegExpr($text, '\\bpad\\s+[0-9]+', 0, 0, 0, undef, 0, '#stay', 'Barline'))
820 0 0 if ($self->testRegExpr($text, '=([a-z]|_[a-z][a-z_0-9]*)\\b', 0, 0, 0, undef, 0, '#stay', 'Location'))
825 0 0 if ($self->includeRules('Macro', $text))
837 0 0 if ($self->testDetectChar($text, ']', 0, 0, 0, undef, 0, '#pop', 'Special Char'))
844 0 0 if ($self->testRegExpr($text, '[\\s;,]+', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
851 0 0 if ($self->testRegExpr($text, '\\b(grace|xnote|cue|diam|up|down)\\b', 0, 0, 0, undef, 0, '#stay', 'Note Attribute'))
858 0 0 if ($self->testRegExpr($text, '\\b(slash|len|pad|ho|dist)\\s*[0-9.+-]*', 0, 0, 0, undef, 0, '#stay', 'Note Attribute'))
865 0 0 if ($self->testRegExpr($text, '\\bwith\\s*(?=[A-Z"^>.-])', 0, 0, 0, undef, 0, 'Bracket With', 'Note Attribute'))
872 0 0 if ($self->testRegExpr($text, '\\bhs\\s*(?=[A-Z"])', 0, 0, 0, undef, 0, 'Bracket Hs', 'Note Attribute'))
879 0 0 if ($self->testRegExpr($text, '=([a-z]|_[a-z][a-z_0-9]*)\\b', 0, 0, 0, undef, 0, '#stay', 'Location'))
886 0 0 if ($self->testRegExpr($text, '\\bc\\b', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
891 0 0 if ($self->includeRules('Macro', $text))
903 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
908 0 0 if ($self->includeRules('Macro', $text))
920 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
927 0 0 if ($self->testRegExpr($text, '[>.^-]+', 0, 0, 0, undef, 0, '#stay', 'Note Attribute'))
934 0 0 if ($self->testRegExpr($text, '[\\s,]+', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
939 0 0 if ($self->includeRules('Macro', $text))
949 0 0 if ($self->includePlugin('Alerts', $text))
961 0 0 if ($self->testDetectChar($text, ')', 0, 0, 0, undef, 0, '#pop', 'String Special'))
968 0 0 if ($self->testRegExpr($text, '[ABCHNPT][RBIX](?=\\))', 0, 0, 0, undef, 0, '#stay', 'String Special'))
975 0 0 if ($self->testKeyword($text, 'mupfontnames', 0, undef, 0, 'Font Style', 'String Special'))
982 0 0 if ($self->testRegExpr($text, '(PV|previous)(?=\\))', 0, 0, 0, undef, 0, '#stay', 'String Special'))
989 0 0 if ($self->testRegExpr($text, '[^ )"]+', 0, 0, 0, undef, 0, '#stay', 'String Error'))
1001 0 0 if ($self->testDetectChar($text, ')', 0, 0, 0, undef, 0, '#pop', 'String Special'))
1008 0 0 if ($self->testRegExpr($text, '[-+]?[0-9]+(?=\\))', 0, 0, 0, undef, 0, '#stay', 'String Special'))
1015 0 0 if ($self->testRegExpr($text, '(PV|previous)(?=\\))', 0, 0, 0, undef, 0, '#stay', 'String Special'))
1022 0 0 if ($self->testRegExpr($text, '[^ )"]+', 0, 0, 0, undef, 0, '#stay', 'String Error'))
1034 0 0 if ($self->testRegExpr($text, '\\s+', 0, 0, 0, undef, 0, '#stay', 'String Special'))
1041 0 0 if ($self->testKeyword($text, 'mupfontstyles', 0, undef, 0, '#stay', 'String Special'))
1048 0 0 if ($self->testRegExpr($text, '[^ )"]+', 0, 0, 0, undef, 0, '#stay', 'String Error'))
1060 0 0 if ($self->testRegExpr($text, '[\\+\\-\\s]+', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
1066 0 0 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Normal Text'))
1073 0 0 if ($self->testRegExpr($text, '\\btime\\b', 0, 0, 0, undef, 0, '#stay', 'Location'))
1078 0 0 if ($self->includeRules('Macro', $text))
1090 0 0 if ($self->testRegExpr($text, '[h-qt-z]|_[a-z][a-z_0-9]*', 0, 0, 0, undef, 0, '#pop', 'Location Probably'))
1103 0 0 if ($self->testKeyword($text, 'mupmacrodirectives_start', 0, undef, 0, '#stay', 'Macro'))
1111 0 0 if ($self->testKeyword($text, 'mupmacrodirectives_end', 0, undef, 0, '#stay', 'Macro'))
1118 0 0 if ($self->testKeyword($text, 'mupmacrodirectives', 0, undef, 0, '#stay', 'Macro'))
1125 0 0 if ($self->testRegExpr($text, '[A-Z][A-Z0-9_]*(?=\\.[xynews]\\b)', 0, 0, 0, undef, 0, 'Macro Location', 'Macro'))
1132 0 0 if ($self->testRegExpr($text, '[A-Z][A-Z0-9_]*', 0, 0, 0, undef, 0, '#stay', 'Macro'))
1140 0 0 if ($self->testDetectChar($text, '@', 0, 0, 0, undef, 0, '#stay', 'Macro'))
1152 0 0 if ($self->testRegExpr($text, '..', 0, 0, 0, undef, 0, '#pop', 'Location Probably'))
1164 0 0 if ($self->testKeyword($text, 'mupcontexts', 0, undef, 0, '#stay', 'Context'))
1171 0 0 if ($self->testRegExpr($text, '\\blyrics\\b', 0, 0, 0, undef, 0, '#stay', 'Lyrics'))
1178 0 0 if ($self->testRegExpr($text, '\\b((dashed|dotted)\\s+)?(bar|endbar|dblbar|invisbar|repeatstart|repeatboth|repeatend|restart)\\b', 0, 0, 0, undef, 0, 'Barline', 'Barline'))
1185 0 0 if ($self->testRegExpr($text, '\\bnew(score|page)\\b', 0, 0, 0, undef, 0, '#stay', 'Newscore'))
1192 0 0 if ($self->testRegExpr($text, '\\bmultirest\\s+[0-9]+\\b', 0, 0, 0, undef, 0, '#stay', 'Newscore'))
1199 0 0 if ($self->testRegExpr($text, '\\bunset\\b', 0, 0, 0, undef, 0, 'Unset', 'Unset Command'))
1207 0 0 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Comment', 'Comment'))
1214 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
1221 0 0 if ($self->testRegExpr($text, '\\\\$', 0, 0, 0, undef, 0, '#stay', 'Special Char'))
1228 0 0 if ($self->testKeyword($text, 'mupprintcommands', 0, undef, 0, 'Print Command', 'Print Command'))
1235 0 0 if ($self->testKeyword($text, 'mupfontnames', 0, undef, 0, 'Print Command', 'Print Command'))
1242 0 0 if ($self->testKeyword($text, 'mupfontstyles', 0, undef, 0, 'Print Command', 'Print Command'))
1249 0 0 if ($self->testRegExpr($text, '\\b((ragged|justified)\\s+)?paragraph\\b', 0, 0, 0, undef, 0, 'Print Command', 'Print Command'))
1256 0 0 if ($self->testKeyword($text, 'mupprintspecifiers', 0, undef, 0, '#stay', 'Print Command'))
1263 0 0 if ($self->testKeyword($text, 'mupgraphics', 0, undef, 0, '#stay', 'Print Command'))
1270 0 0 if ($self->testKeyword($text, 'muplocations', 0, undef, 0, '#stay', 'Print Command'))
1277 0 0 if ($self->testRegExpr($text, '\\bdist(?=\\s+[^=])', 0, 0, 0, undef, 0, '#stay', 'Print Command'))
1284 0 0 if ($self->testKeyword($text, 'mupparameters', 0, undef, 0, 'Parameter', 'Parameter'))
1291 0 0 if ($self->testRegExpr($text, '\\[(?=(grace|xnote|cue|diam|with|slash|up|down|len|pad|ho|dist|hs|c\\b|=))', 0, 0, 0, undef, 0, 'Bracket', 'Special Char'))
1298 0 0 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, 'Tuplet', 'Special Char'))
1305 0 0 if ($self->testAnyChar($text, '[]{', 0, 0, undef, 0, '#stay', 'Special Char'))
1312 0 0 if ($self->testRegExpr($text, '(<<|>>)', 0, 0, 0, undef, 0, '#stay', 'Special Char'))
1319 0 0 if ($self->testRegExpr($text, q[(\\(\\s*)?((1/4|1/2|1|2|4|8|16|32|64|128|256)\\.*\\s*)?((\\(\\s*)?([a-grs]|us)(?!bm)([0-9'?\\sxn]|[+-]+|[&#]{1,2}|\\(\\s*[&#]{1,2}\\s*\\)|\\(\\s*[xn]\\s*\\)|\\(\\s*[0-9]\\s*\\))*\\)?\\s*)*\\s*(?=[;~="
1326 0 0 if ($self->testRegExpr($text, ';\\s*(?=[~=<]|\\b(bm|es?bm|dashed|dotted|tie|slur|alt|hs|ifn?def|else|elseif|endif)\\b)', 0, 0, 0, undef, 0, 'Note', 'Normal Text'))
1333 0 0 if ($self->testRegExpr($text, '(1/4|1/2|1|2|4|8|16|32|64|128|256)?mu?[rs]+\\s*(?=;)', 0, 0, 0, undef, 0, '#stay', 'Note'))
1340 0 0 if ($self->testRegExpr($text, 'm\\s*rpt\\s*(?=;)', 0, 0, 0, undef, 0, '#stay', 'Note'))
1347 0 0 if ($self->testRegExpr($text, '=([a-z]|_[a-z][a-z_0-9]*)\\b', 0, 0, 0, undef, 0, '#stay', 'Location'))
1354 0 0 if ($self->testRegExpr($text, '([a-z]|_[a-z][a-z_0-9]*)\\.[xynews]\\b', 0, 0, 0, undef, 0, 'Location', 'Location'))
1361 0 0 if ($self->testRegExpr($text, '([a-z]|_[a-z][a-z_0-9]*)\\.(?=[A-Z])', 0, 0, 0, undef, 0, '#stay', 'Location Probably'))
1368 0 0 if ($self->testRegExpr($text, '[(,]\\s*(?=([h-qt-z]|_[a-z][a-z_0-9]*)\\s*[,)])', 0, 0, 0, undef, 0, 'Location Probably', 'Normal Text'))
1375 0 0 if ($self->testRegExpr($text, '[(,]\\s*(?=[a-grs]\\s*[,)])', 0, 0, 0, undef, 0, 'Note Probably', 'Normal Text'))
1380 0 0 if ($self->includeRules('Macro', $text))
1387 0 0 if ($self->testRegExpr($text, '[0-9.]*\\s*til\\s*(([0-9]+m(\\s*\\+\\s*[0-9.]+)?)|[0-9.]+)\\s*;', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
1394 0 0 if ($self->testRegExpr($text, '[0-9]*[a-z_]+', 0, 0, 0, undef, 0, '#stay', 'Error'))
1406 0 0 if ($self->testRegExpr($text, '(\\bdashed\\s+|\\bdotted\\s+)?(<(/n|\\\\n|n/|n\\\\|[a-g]([+-]*|[0-7]))?>|tie|slur|[~])', 0, 0, 0, undef, 0, '#stay', 'Note Attribute'))
1413 0 0 if ($self->testRegExpr($text, '^(/|[a-g]([+-]*|[0-7]))', 0, 0, 0, undef, 0, '#stay', 'Note Attribute'))
1420 0 0 if ($self->testRegExpr($text, '\\bbm\\b(\\s+with\\s+staff\\s+(below|above)\\b)?', 0, 0, 0, undef, 0, '#stay', 'Note Attribute'))
1427 0 0 if ($self->testRegExpr($text, '\\bes?bm\\b', 0, 0, 0, undef, 0, '#stay', 'Note Attribute'))
1434 0 0 if ($self->testRegExpr($text, '\\balt\\s+[1-9]\\b', 0, 0, 0, undef, 0, '#stay', 'Note Attribute'))
1441 0 0 if ($self->testRegExpr($text, '\\bhs\\s+', 0, 0, 0, undef, 0, '#stay', 'Note Attribute'))
1448 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
1453 0 0 if ($self->includeRules('Macro', $text))
1465 0 0 if ($self->testRegExpr($text, '[a-grs]*', 0, 0, 0, undef, 0, '#pop', 'Note'))
1477 0 0 if ($self->testDetectChar($text, '=', 0, 0, 0, undef, 0, 'Value', 'Normal Text'))
1484 0 0 if ($self->testRegExpr($text, '\\s+', 0, 0, 0, undef, 0, '#stay', 'Parameter'))
1493 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
1500 0 0 if ($self->testKeyword($text, 'mupfontstyles', 0, undef, 0, '#stay', 'Print Command'))
1507 0 0 if ($self->testRegExpr($text, '\\bnl\\b', 0, 0, 0, undef, 0, '#stay', 'Print Command'))
1514 0 0 if ($self->testRegExpr($text, '\\([0-9]+\\)', 0, 0, 0, undef, 0, '#pop', 'Print Command'))
1526 0 0 if ($self->testDetectChar($text, ')', 0, 0, 0, undef, 0, '#pop', 'String Special'))
1533 0 0 if ($self->testKeyword($text, 'mupspecialchars', 0, undef, 0, '#stay', 'String Special'))
1540 0 0 if ($self->testKeyword($text, 'mupmusicchars', 0, undef, 0, '#stay', 'String Special'))
1547 0 0 if ($self->testRegExpr($text, q[[AaEeOo]['`:^~](?=\\))], 0, 0, 0, undef, 0, '#stay', 'String Special'))
1554 0 0 if ($self->testRegExpr($text, q[[IiUu]['`:^](?=\\))], 0, 0, 0, undef, 0, '#stay', 'String Special'))
1561 0 0 if ($self->testRegExpr($text, '[Nn]~(?=\\))', 0, 0, 0, undef, 0, '#stay', 'String Special'))
1568 0 0 if ($self->testRegExpr($text, '[Yy]:(?=\\))', 0, 0, 0, undef, 0, '#stay', 'String Special'))
1575 0 0 if ($self->testRegExpr($text, '[LlOo]/(?=\\))', 0, 0, 0, undef, 0, '#stay', 'String Special'))
1582 0 0 if ($self->testRegExpr($text, '[Cc],(?=\\))', 0, 0, 0, undef, 0, '#stay', 'String Special'))
1589 0 0 if ($self->testRegExpr($text, q[(>>|<<|``|'')(?=\\))], 0, 0, 0, undef, 0, '#stay', 'String Special'))
1596 0 0 if ($self->testRegExpr($text, '[^)"]+', 0, 0, 0, undef, 0, '#stay', 'String Error'))
1608 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))
1615 0 0 if ($self->testRegExpr($text, '[\\\\][][{}%#"nb|^:,\\\\/ ]', 0, 0, 0, undef, 0, '#stay', 'String Special'))
1622 0 0 if ($self->testStringDetect($text, '\\(', 0, 0, 0, undef, 0, 'Special Char', 'String Special'))
1629 0 0 if ($self->testStringDetect($text, '\\f(', 0, 0, 0, undef, 0, 'Font Name', 'String Special'))
1636 0 0 if ($self->testStringDetect($text, '\\s(', 0, 0, 0, undef, 0, 'Font Size', 'String Special'))
1643 0 0 if ($self->testRegExpr($text, '\\\\v\\(-?[0-9]{1,3}\\)', 0, 0, 0, undef, 0, '#stay', 'String Special'))
1650 0 0 if ($self->testRegExpr($text, '[~<>|^]', 0, 0, 0, undef, 0, '#stay', 'String Lyrics'))
1657 0 0 if ($self->testRegExpr($text, '[-+]?[0-9]+\\|', 0, 0, 0, undef, 0, '#stay', 'String Lyrics'))
1669 0 0 if ($self->testRegExpr($text, '\\s*(above|below)?\\s*[0-9]{1,2}(y|n|num)?(\\s*,\\s*[0-9]{1,2}\\.?([+][0-9]{1,2}\\.?)*)?', 0, 0, 0, undef, 0, '#pop', 'Tuplet'))
1681 0 0 if ($self->testKeyword($text, 'mupparameters', 0, undef, 0, '#stay', 'Parameter'))
1688 0 0 if ($self->testRegExpr($text, '[\\s,]+', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
1695 0 0 if ($self->testRegExpr($text, '\\w+', 0, 0, 0, undef, 0, '#pop', 'Error'))
1707 0 0 if ($self->testDetectChar($text, ';', 0, 0, 0, undef, 0, '#pop', 'Normal Text'))
1714 0 0 if ($self->testRegExpr($text, '[\\s,&()-]+', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
1721 0 0 if ($self->testKeyword($text, 'mupvalues', 0, undef, 0, '#stay', 'Value'))
1728 0 0 if ($self->testKeyword($text, 'mupfontnames', 0, undef, 0, '#pop', 'Value'))
1735 0 0 if ($self->testKeyword($text, 'mupfontstyles', 0, undef, 0, '#pop', 'Value'))
1742 0 0 if ($self->testRegExpr($text, '\\b[1-9][0-9]*/(1|2|4|8|16|32|64|128)n?\\b', 0, 0, 0, undef, 0, '#stay', 'Value'))
1749 0 0 if ($self->testRegExpr($text, q[\\b[a-g][#&]?'?([0-9]\\b)?], 0, 0, 0, undef, 0, '#stay', 'Value'))
1756 0 0 if ($self->testRegExpr($text, '[0-7][#&]', 0, 0, 0, undef, 0, '#stay', 'Value'))
1763 0 0 if ($self->testRegExpr($text, 'r\\b', 0, 0, 0, undef, 0, '#stay', 'Value'))
1769 0 0 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Value'))
1775 0 0 if ($self->testInt($text, 0, undef, 0, '#stay', 'Value'))
1782 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
1787 0 0 if ($self->includeRules('Macro', $text))
1794 0 0 if ($self->testRegExpr($text, '[a-z][a-z0-9]*', 0, 0, 0, undef, 0, '#stay', 'Error'))