| 1313 | } |
| 1314 | |
| 1315 | bool ScriptModule::ShouldDisplayLineExecutionPre(std::string priorLine, std::string line) |
| 1316 | { |
| 1317 | if (!IsNonWhitespace(line)) |
| 1318 | return false; |
| 1319 | |
| 1320 | char firstCharacter; |
| 1321 | char lastCharacter; |
| 1322 | |
| 1323 | GetFirstAndLastCharacter(priorLine, firstCharacter, lastCharacter); |
| 1324 | if (firstCharacter == '@') |
| 1325 | return false; |
| 1326 | if (lastCharacter == ',') |
| 1327 | return false; |
| 1328 | |
| 1329 | GetFirstAndLastCharacter(line, firstCharacter, lastCharacter); |
| 1330 | if (firstCharacter == '@') |
| 1331 | return false; |
| 1332 | if (firstCharacter == '#') |
| 1333 | return false; |
| 1334 | if (lastCharacter == ':' && (ofIsStringInString(line, "else") || ofIsStringInString(line, "elif") || ofIsStringInString(line, "except"))) |
| 1335 | return false; |
| 1336 | return true; |
| 1337 | } |
| 1338 | |
| 1339 | std::string ScriptModule::GetIndentation(std::string line) |
| 1340 | { |
nothing calls this directly
no test coverage detected