From c24c739da54225dd5090e82c8d0a34f8bbe0724a Mon Sep 17 00:00:00 2001 From: karroffel Date: Fri, 20 Jan 2017 09:25:15 +0100 Subject: made _ a special token in GDScript --- modules/gdscript/gd_tokenizer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/gdscript/gd_tokenizer.cpp') diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp index 70fc991bc..5be2a2bea 100644 --- a/modules/gdscript/gd_tokenizer.cpp +++ b/modules/gdscript/gd_tokenizer.cpp @@ -119,6 +119,7 @@ const char* GDTokenizer::token_names[TK_MAX]={ "':'", "'\\n'", "PI", +"_", "Error", "EOF", "Cursor"}; @@ -899,6 +900,7 @@ void GDTokenizerText::_advance() { {TK_CF_PASS,"pass"}, {TK_SELF,"self"}, {TK_CONST_PI,"PI"}, + {TK_WILDCARD,"_"}, {TK_ERROR,NULL} }; -- cgit v1.2.3-70-g09d2