support static move too

This commit is contained in:
bellau
2022-02-12 16:07:58 +01:00
parent 1284bc0af3
commit 2008607946
4 changed files with 22 additions and 3 deletions

View File

@@ -7,4 +7,5 @@ fn foo() {
move || {};
async move || {};
static || {};
static move || {};
}

View File

@@ -149,6 +149,22 @@ SOURCE_FILE
L_CURLY "{"
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\n "
EXPR_STMT
CLOSURE_EXPR
STATIC_KW "static"
WHITESPACE " "
MOVE_KW "move"
WHITESPACE " "
PARAM_LIST
PIPE "|"
PIPE "|"
WHITESPACE " "
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\n"
R_CURLY "}"
WHITESPACE "\n"