Godot: Sugar $ produce syntax error if it contains an expression name

Created on 7 Jun 2017  路  4Comments  路  Source: godotengine/godot

Operating system or device - Godot version:
3.0 master Linux

Steps to reproduce:

  • Create an object named: var, if, continue, onready ...
  • Use $ to select said object, example: $buttons/continue
  • In this case editor reported error: Expected end of statement (continue)
bug gdscript

Most helpful comment

Would be fixed by #8217. Thus, related to #8085.

All 4 comments

pinging the GDScript wizards, @bojidar-bg @karroffel

You can do $"node name", I think is good to discourage the use of keywords for node names, but give a better error description.

Would be fixed by #8217. Thus, related to #8085.

This seems to be fixed.
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bojidar-bg picture bojidar-bg  路  3Comments

n-pigeon picture n-pigeon  路  3Comments

RebelliousX picture RebelliousX  路  3Comments

timoschwarzer picture timoschwarzer  路  3Comments

SleepProgger picture SleepProgger  路  3Comments