Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/Matlab.pm
Criterion Covered Total %
branch 26 50 52.0


line true false branch
85 0 0 if ($self->testRegExpr($text, "'+", 0, 0, 0, undef, 0, "#pop", "Operator"))
97 0 58 if ($self->testRegExpr($text, "[a-zA-Z]\\w*(?=')", 0, 0, 0, undef, 0, "_adjoint", "Variable"))
104 0 58 if ($self->testRegExpr($text, "(\\d+(\\.\\d+)?|\\.\\d+)([eE][+-]?\\d+)?[ij]?(?=')", 0, 0, 0, undef, 0, "_adjoint", "Number"))
111 0 58 if ($self->testRegExpr($text, "[\\)\\]}](?=')", 0, 0, 0, undef, 0, "_adjoint", "Delimiter"))
118 0 58 if ($self->testRegExpr($text, "\\.'(?=')", 0, 0, 0, undef, 0, "_adjoint", "Operator"))
125 0 58 if ($self->testRegExpr($text, "'[^']*(''[^']*)*'(?=[^']|\$)", 0, 0, 0, undef, 0, "#stay", "String"))
132 0 58 if ($self->testRegExpr($text, "'[^']*(''[^']*)*", 0, 0, 0, undef, 0, "#stay", "Incomplete String"))
139 0 58 if ($self->testKeyword($text, "KeywordsList", 0, undef, 0, "#stay", "Keyword"))
146 0 58 if ($self->testRegExpr($text, "%.*\$", 0, 0, 0, undef, 0, "#stay", "Comment"))
153 0 58 if ($self->testRegExpr($text, "!.*\$", 0, 0, 0, undef, 0, "#stay", "System"))
160 0 58 if ($self->testRegExpr($text, "[a-zA-Z]\\w*", 0, 0, 0, undef, 0, "#stay", "Variable"))
167 0 58 if ($self->testRegExpr($text, "(\\d+(\\.\\d+)?|\\.\\d+)([eE][+-]?\\d+)?[ij]?", 0, 0, 0, undef, 0, "#stay", "Number"))
174 0 58 if ($self->testAnyChar($text, "()[]{}", 0, 0, undef, 0, "#stay", "Delimiter"))
181 0 58 if ($self->testStringDetect($text, "...", 0, 0, 0, undef, 0, "#stay", "Operator"))
188 52 6 if ($self->testStringDetect($text, "==", 0, 0, 0, undef, 0, "#stay", "Operator"))
195 0 6 if ($self->testStringDetect($text, "~=", 0, 0, 0, undef, 0, "#stay", "Operator"))
202 0 6 if ($self->testStringDetect($text, "<=", 0, 0, 0, undef, 0, "#stay", "Operator"))
209 0 6 if ($self->testStringDetect($text, ">=", 0, 0, 0, undef, 0, "#stay", "Operator"))
216 0 6 if ($self->testStringDetect($text, "&&", 0, 0, 0, undef, 0, "#stay", "Operator"))
223 0 6 if ($self->testStringDetect($text, "||", 0, 0, 0, undef, 0, "#stay", "Operator"))
230 0 6 if ($self->testStringDetect($text, ".*", 0, 0, 0, undef, 0, "#stay", "Operator"))
237 0 6 if ($self->testStringDetect($text, ".^", 0, 0, 0, undef, 0, "#stay", "Operator"))
244 0 6 if ($self->testStringDetect($text, "./", 0, 0, 0, undef, 0, "#stay", "Operator"))
251 0 6 if ($self->testStringDetect($text, ".'", 0, 0, 0, undef, 0, "#stay", "Operator"))
258 2 4 if ($self->testAnyChar($text, "*+-/\\&|<>~^=,;:\@", 0, 0, undef, 0, "#stay", "Operator"))