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:
parent
28089c40c1
commit
5c662f7707
5 changed files with 35 additions and 1 deletions
|
|
@ -0,0 +1,5 @@
|
|||
export var test = 3
|
||||
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
The "export" keyword was removed in Godot 4. Use an export annotation ("@export", "@export_range", etc.) instead.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
export(int, "a", "b", "c") var test = 3
|
||||
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
The "export" keyword was removed in Godot 4. Use an export annotation ("@export", "@export_range", etc.) instead.
|
||||
Loading…
Add table
Add a link
Reference in a new issue