finish engram-lang: protocols, decorators, imports, Result, closures, stdlib, integration tests
This commit is contained in:
@@ -911,7 +911,7 @@ impl Parser {
|
||||
match self.peek() {
|
||||
Token::StringLiteral(_) => {
|
||||
// Check if next is Colon
|
||||
self.tokens.get(self.pos + 1).map_or(false, |t| matches!(t.node, Token::Colon))
|
||||
self.tokens.get(self.pos + 1).is_some_and(|t| matches!(t.node, Token::Colon))
|
||||
}
|
||||
Token::RBrace => false, // empty block `{}`
|
||||
_ => false,
|
||||
|
||||
Reference in New Issue
Block a user