1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add errors for keywords removed in Godot 4

Update modules/gdscript/gdscript_parser.cpp

Co-authored-by: Danil Alexeev <dalexeev12@yandex.ru>

Improve error message

Add tests

Add errors for other removed keywords

Remove very old keywords and improve wording of errors
This commit is contained in:
Malcolm Anderson
2025-03-25 21:12:52 -07:00
parent 28089c40c1
commit 5c662f7707
5 changed files with 35 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
export var test = 3
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
The "export" keyword was removed in Godot 4. Use an export annotation ("@export", "@export_range", etc.) instead.

View File

@@ -0,0 +1,5 @@
export(int, "a", "b", "c") var test = 3
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
The "export" keyword was removed in Godot 4. Use an export annotation ("@export", "@export_range", etc.) instead.