Hallucinate more fixes

This commit is contained in:
2025-07-20 17:29:37 +02:00
parent 42de0ddbb2
commit 766a5a9cfe
2 changed files with 26 additions and 4 deletions

View File

@@ -81,9 +81,11 @@ func MapType(t string) string {
case "var":
return "any"
case "var...":
return "any..."
return "..."
case "int":
return "number"
case "int...":
return "number..."
case "unsigned int":
return "number"
case "float":
@@ -92,6 +94,8 @@ func MapType(t string) string {
return "number"
case "bool":
return "boolean"
case "char":
return "string"
case "table_t":
return "table"
default:
@@ -101,7 +105,7 @@ func MapType(t string) string {
func IsReservedKeyword(t string) bool {
switch t {
case "any", "boolean", "number", "string", "table", "function", "thread", "userdata", "nil", "var", "in":
case "and", "break", "do", "else", "elseif", "end", "false", "for", "function", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while", "any", "boolean", "number", "string", "table", "thread", "userdata", "var":
return true
}
return false