mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 18:33:36 +00:00
Merge pull request #6845 from karroffel/master
Adds pattern matching to GDScript
This commit is contained in:
commit
4261880c94
6 changed files with 696 additions and 1 deletions
|
|
@ -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"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue