parser: minor optimization of `expr()` (#7575)

pull/7578/head
yuyi 2020-12-26 18:22:06 +08:00 committed by GitHub
parent 80a9d08505
commit 1558bd1658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ pub fn (mut p Parser) expr(precedence int) ast.Expr {
// Prefix
match p.tok.kind {
.key_mut, .key_shared, .key_atomic, .key_static {
node = p.name_expr()
node = p.parse_ident(table.Language.v)
p.is_stmt_ident = is_stmt_ident
}
.name {