Fix global script class parsing.
* Broke with #72226 * Restored previous version of the code, made it even more error tolerant. * Added a warning to **not** change the code. Fixes #72226.
This commit is contained in:
parent
e9de988020
commit
1bbe0a2b2f
2 changed files with 83 additions and 13 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Error here. Annotations should be used before `class_name`, not after.
|
||||
class_name HelloWorld
|
||||
class_name WrongAnnotationPlace
|
||||
@icon("res://path/to/optional/icon.svg")
|
||||
|
||||
func test():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue