1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Inf and NaN support added to GDScript.

This commit is contained in:
Saracen
2017-02-06 22:44:22 +00:00
parent 0f8c6dd382
commit 5e938f0001
11 changed files with 53 additions and 4 deletions

View File

@@ -120,6 +120,8 @@ const char* GDTokenizer::token_names[TK_MAX]={
"'\\n'",
"PI",
"_",
"INF",
"NAN",
"Error",
"EOF",
"Cursor"};
@@ -901,6 +903,8 @@ void GDTokenizerText::_advance() {
{TK_SELF,"self"},
{TK_CONST_PI,"PI"},
{TK_WILDCARD,"_"},
{TK_CONST_INF,"INF"},
{TK_CONST_NAN,"NAN"},
{TK_ERROR,NULL}
};