Hallucinate more fixes
This commit is contained in:
8
main.go
8
main.go
@@ -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
|
||||
|
Reference in New Issue
Block a user