You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Improve GDScript "unexpected token in class body" parser error
This parser error was misleading. Fixes: 1. Now points at correct line 2. For identifiers, prints out `Identifier "%s"`
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# GH-96792
|
||||
|
||||
var error
|
||||
error = true
|
||||
|
||||
func test():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
Unexpected identifier "error" in class body.
|
||||
Reference in New Issue
Block a user