Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/Octave.pm
Criterion Covered Total %
branch 87 102 85.2


line true false branch
2149 66 0 if ($self->testRegExpr($text, "'+", 0, 0, 0, undef, 0, "#pop", "Operator"))
2162 4 1830 if ($self->testRegExpr($text, "\\b(for)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2170 2 1828 if ($self->testRegExpr($text, "\\b(endfor)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2178 2 1826 if ($self->testRegExpr($text, "\\b(if)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2186 2 1824 if ($self->testRegExpr($text, "\\b(endif)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2194 0 1824 if ($self->testRegExpr($text, "\\b(do)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2202 0 1824 if ($self->testRegExpr($text, "\\b(until)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2210 2 1822 if ($self->testRegExpr($text, "\\b(while)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2218 2 1820 if ($self->testRegExpr($text, "\\b(endwhile)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2226 4 1816 if ($self->testRegExpr($text, "\\b(function)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2234 4 1812 if ($self->testRegExpr($text, "\\b(endfunction)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2242 2 1810 if ($self->testRegExpr($text, "\\b(switch)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2250 2 1808 if ($self->testRegExpr($text, "\\b(endswitch)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2258 2 1806 if ($self->testRegExpr($text, "\\b(try)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2266 2 1804 if ($self->testRegExpr($text, "\\b(end_try_catch)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2274 0 1804 if ($self->testRegExpr($text, "\\b(end)\\b", 0, 0, 0, undef, 0, "#stay", "Keyword"))
2281 24 1780 if ($self->testRegExpr($text, "[a-zA-Z]\\w*(?=')", 0, 0, 0, undef, 0, "_adjoint", "Variable"))
2288 22 1758 if ($self->testRegExpr($text, "(\\d+(\\.\\d+)?|\\.\\d+)([eE][+-]?\\d+)?[ij]?(?=')", 0, 0, 0, undef, 0, "_adjoint", "Number"))
2295 18 1740 if ($self->testRegExpr($text, "[\\)\\]}](?=')", 0, 0, 0, undef, 0, "_adjoint", "Delimiter"))
2302 2 1738 if ($self->testRegExpr($text, "\\.'(?=')", 0, 0, 0, undef, 0, "_adjoint", "Operator"))
2309 40 1698 if ($self->testRegExpr($text, "'([^'\\\\]|''|\\\\'|\\\\[^'])*'(?=[^']|\$)", 0, 0, 0, undef, 0, "#stay", "String"))
2316 0 1698 if ($self->testRegExpr($text, "'([^']|''|\\\\')*", 0, 0, 0, undef, 0, "#stay", "Incomplete String"))
2323 2 1696 if ($self->testRegExpr($text, "\"([^\"\\\\]|\"\"|\\\\\"|\\\\[^\"])*\"(?=[^\"]|\$)", 0, 0, 0, undef, 0, "#stay", "String"))
2330 0 1696 if ($self->testRegExpr($text, "\"([^\"]|\"\"|\\\\\")*", 0, 0, 0, undef, 0, "#stay", "Incomplete String"))
2337 20 1676 if ($self->testKeyword($text, "keywords", 0, undef, 0, "#stay", "Keyword"))
2344 0 1676 if ($self->testKeyword($text, "commands", 0, undef, 0, "#stay", "Commands"))
2351 8 1668 if ($self->testKeyword($text, "functions", 0, undef, 0, "#stay", "Functions"))
2358 0 1668 if ($self->testKeyword($text, "builtin", 0, undef, 0, "#stay", "Builtin"))
2365 12 1656 if ($self->testKeyword($text, "forge", 0, undef, 0, "#stay", "Forge"))
2372 0 1656 if ($self->testRegExpr($text, "[%#].*\$", 0, 0, 0, undef, 0, "#stay", "Comment"))
2379 244 1412 if ($self->testRegExpr($text, "[a-zA-Z]\\w*", 0, 0, 0, undef, 0, "#stay", "Variable"))
2386 78 1334 if ($self->testRegExpr($text, "(\\d+(\\.\\d+)?|\\.\\d+)([eE][+-]?\\d+)?[ij]?", 0, 0, 0, undef, 0, "#stay", "Number"))
2393 46 1288 if ($self->testAnyChar($text, "()[]{}", 0, 0, undef, 0, "#stay", "Delimiter"))
2400 2 1286 if ($self->testStringDetect($text, "...", 0, 0, 0, undef, 0, "#stay", "Operator"))
2407 106 1180 if ($self->testStringDetect($text, "==", 0, 0, 0, undef, 0, "#stay", "Operator"))
2414 2 1178 if ($self->testStringDetect($text, "~=", 0, 0, 0, undef, 0, "#stay", "Operator"))
2421 0 1178 if ($self->testStringDetect($text, "!=", 0, 0, 0, undef, 0, "#stay", "Operator"))
2428 2 1176 if ($self->testStringDetect($text, "<=", 0, 0, 0, undef, 0, "#stay", "Operator"))
2435 2 1174 if ($self->testStringDetect($text, ">=", 0, 0, 0, undef, 0, "#stay", "Operator"))
2442 0 1174 if ($self->testStringDetect($text, "<>", 0, 0, 0, undef, 0, "#stay", "Operator"))
2449 2 1172 if ($self->testStringDetect($text, "&&", 0, 0, 0, undef, 0, "#stay", "Operator"))
2456 2 1170 if ($self->testStringDetect($text, "||", 0, 0, 0, undef, 0, "#stay", "Operator"))
2463 0 1170 if ($self->testStringDetect($text, "++", 0, 0, 0, undef, 0, "#stay", "Operator"))
2470 0 1170 if ($self->testStringDetect($text, "--", 0, 0, 0, undef, 0, "#stay", "Operator"))
2477 0 1170 if ($self->testStringDetect($text, "**", 0, 0, 0, undef, 0, "#stay", "Operator"))
2484 2 1168 if ($self->testStringDetect($text, ".*", 0, 0, 0, undef, 0, "#stay", "Operator"))
2491 0 1168 if ($self->testStringDetect($text, ".**", 0, 0, 0, undef, 0, "#stay", "Operator"))
2498 2 1166 if ($self->testStringDetect($text, ".^", 0, 0, 0, undef, 0, "#stay", "Operator"))
2505 2 1164 if ($self->testStringDetect($text, "./", 0, 0, 0, undef, 0, "#stay", "Operator"))
2512 24 1140 if ($self->testStringDetect($text, ".'", 0, 0, 0, undef, 0, "#stay", "Operator"))
2519 304 836 if ($self->testAnyChar($text, "!\"%(*+,/;=>[]|~#&)-:<>\\^", 0, 0, undef, 0, "#stay", "Operator"))