add panic and repo config

This commit is contained in:
2023-03-28 22:51:41 +01:00
parent c5c5fef4bc
commit be2ac857ca
3 changed files with 35 additions and 3 deletions

View File

@@ -28,9 +28,11 @@ func parseTryCatch(code UNPARSEcode, index int, codelines []UNPARSEcode) (TryCat
return TryCatch{}, false, err, i
}
totalIndex += i
if index+totalIndex >= len(codelines) {
return TryCatch{}, false, ArErr{"Syntax Error", "expected catch statement", code.line, code.path, code.realcode, true}, i
}
/*
if index+totalIndex >= len(codelines) {
return TryCatch{}, false, ArErr{"Syntax Error", "expected catch statement", code.line, code.path, code.realcode, true}, i
}
*/
catchtrimmed := strings.TrimSpace(codelines[index+totalIndex].code)
if !catchCompiled.MatchString(catchtrimmed) {
return TryCatch{}, false, ArErr{"Syntax Error", "invalid syntax", code.line, code.path, code.realcode, true}, i