mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser/ast: Block
This commit is contained in:
@@ -334,6 +334,12 @@ pub fn (p mut Parser) line_comment() ast.LineComment {
|
||||
|
||||
pub fn (p mut Parser) stmt() ast.Stmt {
|
||||
match p.tok.kind {
|
||||
.lcbr {
|
||||
stmts := p.parse_block()
|
||||
return ast.Block{
|
||||
stmts: stmts
|
||||
}
|
||||
}
|
||||
.key_assert {
|
||||
p.next()
|
||||
expr := p.expr(0)
|
||||
|
||||
Reference in New Issue
Block a user