Mercerenies / gdlisp

Lisp on the Godot platform
GNU General Public License v3.0
140 stars 1 forks source link

Potential bad names in `$` syntax #90

Closed Mercerenies closed 2 years ago

Mercerenies commented 2 years ago

Our $Path syntax may be more liberal than GDScript's. Ensure that, if we choose to compile get_node to $ syntax (as our call magic is wont to do), we only do so if the name is valid in GDScript.

Mercerenies commented 2 years ago

Closed by 4863228f4df35b9f0d862fc3b1e00581d2291674. More specifically, if the name is not a valid identifier, we compile to $"..." with explicit quotes.