summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gd_tokenizer.cpp
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2015-12-28 19:31:52 -0300
committerreduz <reduzio@gmail.com>2015-12-28 19:32:51 -0300
commit30c12297dc6df7d35df140475c0cec7308aea77a (patch)
treee09c1ed46a6d42bcaab5ff4f3a67749948ff6ff7 /modules/gdscript/gd_tokenizer.cpp
parenteecfeb1d7681bf9186bc231e9ee8c5d36f2afcea (diff)
downloadredot-engine-30c12297dc6df7d35df140475c0cec7308aea77a.tar.gz
- added 'onready' keyword to gdscript. Defers initialization of member variables until _ready() is run.
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
-rw-r--r--modules/gdscript/gd_tokenizer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp
index e445701669..c732c00b82 100644
--- a/modules/gdscript/gd_tokenizer.cpp
+++ b/modules/gdscript/gd_tokenizer.cpp
@@ -851,6 +851,7 @@ void GDTokenizerText::_advance() {
{TK_PR_FUNCTION,"function"},
{TK_PR_CLASS,"class"},
{TK_PR_EXTENDS,"extends"},
+ {TK_PR_ONREADY,"onready"},
{TK_PR_TOOL,"tool"},
{TK_PR_STATIC,"static"},
{TK_PR_EXPORT,"export"},
@@ -1040,7 +1041,7 @@ void GDTokenizerText::advance(int p_amount) {
//////////////////////////////////////////////////////////////////////////////////////////////////////
-#define BYTECODE_VERSION 5
+#define BYTECODE_VERSION 6
Error GDTokenizerBuffer::set_code_buffer(const Vector<uint8_t> & p_buffer) {