mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
check for leading { while parsing a block
This commit is contained in:
committed by
Teodor Tanasoaia
parent
16be1a9237
commit
bb20ae8e79
@@ -1776,7 +1776,7 @@ impl Parser {
|
||||
|
||||
ctx.local_table.push_scope();
|
||||
|
||||
let _ = lexer.next();
|
||||
lexer.expect(Token::Paren('{'))?;
|
||||
let mut statements = ast::Block::default();
|
||||
while !lexer.skip(Token::Paren('}')) {
|
||||
self.statement(lexer, ctx.reborrow(), &mut statements)?;
|
||||
|
||||
Reference in New Issue
Block a user