You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
GDScript: Allow "match" to be used as an identifier
This is needed to call the String.match() function.
This commit is contained in:
@@ -168,9 +168,8 @@ public:
|
||||
String source;
|
||||
|
||||
const char *get_name() const;
|
||||
// TODO: Allow some keywords as identifiers?
|
||||
bool is_identifier() const { return type == IDENTIFIER; }
|
||||
StringName get_identifier() const { return literal; }
|
||||
bool is_identifier() const;
|
||||
StringName get_identifier() const { return source; }
|
||||
|
||||
Token(Type p_type) {
|
||||
type = p_type;
|
||||
|
||||
Reference in New Issue
Block a user