Merge pull request #6845 from karroffel/master

Adds pattern matching to GDScript
This commit is contained in:
Juan Linietsky 2017-01-14 17:08:10 -03:00 committed by GitHub
commit 4261880c94
6 changed files with 696 additions and 1 deletions

View file

@ -85,6 +85,7 @@ const char* GDTokenizer::token_names[TK_MAX]={
"continue",
"pass",
"return",
"match",
"func",
"class",
"extends",
@ -894,6 +895,7 @@ void GDTokenizerText::_advance() {
{TK_CF_BREAK,"break"},
{TK_CF_CONTINUE,"continue"},
{TK_CF_RETURN,"return"},
{TK_CF_MATCH, "match"},
{TK_CF_PASS,"pass"},
{TK_SELF,"self"},
{TK_CONST_PI,"PI"},