Skip to content

Commit 27f560d

Browse files
Test: Implement edge case.
1 parent b890e94 commit 27f560d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

compiler/src/modules/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ impl<'src, I: Iterator<Item = Token>> Parser<'src, I> {
18571857
}
18581858

18591859
fn parse_args(&mut self) -> u16 {
1860-
self.advance(); // consume '('
1860+
self.advance();
18611861
let mut argc = 0;
18621862
while !matches!(self.peek(), Some(TokenType::Rpar) | None) {
18631863
if self.eat_if(TokenType::Star) {

compiler/tests/cases/parser_cases.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@
15911591
"errors": ["'break' outside loop"]
15921592
},
15931593
{
1594-
"src": "print(\"hello\"",
1594+
"src": "print('hello'",
15951595
"constants": [],
15961596
"names": [],
15971597
"instructions": [["ReturnValue", 0]],

0 commit comments

Comments
 (0)