summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gd_tokenizer.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-08 02:04:53 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-08 02:04:53 -0300
commit8b912d11152410302f45eaa117c19b7016d781f5 (patch)
tree58e7e9ab9ee7e22c5f7e70c4342219a5918fd55e /modules/gdscript/gd_tokenizer.cpp
parent2ab83e1abbf5ee6d00e16056a9e9394114026f28 (diff)
downloadredot-engine-8b912d11152410302f45eaa117c19b7016d781f5.tar.gz
-Fix bugs related to PoolVector crashes
-Added ability to request nodes using $Name in GDScript :)
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
-rw-r--r--modules/gdscript/gd_tokenizer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp
index 427b0cbf04..865c07f3b2 100644
--- a/modules/gdscript/gd_tokenizer.cpp
+++ b/modules/gdscript/gd_tokenizer.cpp
@@ -460,6 +460,9 @@ void GDTokenizerText::_advance() {
case ':':
_make_token(TK_COLON); //for methods maybe but now useless.
break;
+ case '$':
+ _make_token(TK_DOLLAR); //for the get_node() shortener
+ break;
case '^': {
if (GETCHAR(1)=='=') {
_make_token(TK_OP_ASSIGN_BIT_XOR);