mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Global class names (and GDScript support for it)
This commit is contained in:
parent
f6ce73f724
commit
a3f1ee5c57
13 changed files with 381 additions and 10 deletions
|
@ -91,6 +91,7 @@ const char *GDScriptTokenizer::token_names[TK_MAX] = {
|
|||
"match",
|
||||
"func",
|
||||
"class",
|
||||
"class_name",
|
||||
"extends",
|
||||
"is",
|
||||
"onready",
|
||||
|
@ -187,6 +188,7 @@ static const _kws _keyword_list[] = {
|
|||
//func
|
||||
{ GDScriptTokenizer::TK_PR_FUNCTION, "func" },
|
||||
{ GDScriptTokenizer::TK_PR_CLASS, "class" },
|
||||
{ GDScriptTokenizer::TK_PR_CLASS_NAME, "class_name" },
|
||||
{ GDScriptTokenizer::TK_PR_EXTENDS, "extends" },
|
||||
{ GDScriptTokenizer::TK_PR_IS, "is" },
|
||||
{ GDScriptTokenizer::TK_PR_ONREADY, "onready" },
|
||||
|
@ -1137,7 +1139,7 @@ void GDScriptTokenizerText::advance(int p_amount) {
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define BYTECODE_VERSION 12
|
||||
#define BYTECODE_VERSION 13
|
||||
|
||||
Error GDScriptTokenizerBuffer::set_code_buffer(const Vector<uint8_t> &p_buffer) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue