[fine] Fix a problem with a stuck parser
Whoops
This commit is contained in:
parent
5f0a0b3268
commit
11cb7199e9
2 changed files with 44 additions and 3 deletions
20
fine/tests/errors/unbalanced_right_brace.fine
Normal file
20
fine/tests/errors/unbalanced_right_brace.fine
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
fun foo() { }
|
||||
|
||||
} // <- Whoopsie!
|
||||
|
||||
// @concrete:
|
||||
// | File
|
||||
// | FunctionDecl
|
||||
// | Fun:'"fun"'
|
||||
// | Identifier:'"foo"'
|
||||
// | ParamList
|
||||
// | LeftParen:'"("'
|
||||
// | RightParen:'")"'
|
||||
// | Block
|
||||
// | LeftBrace:'"{"'
|
||||
// | RightBrace:'"}"'
|
||||
// | Error
|
||||
// | Error:'"Error at '}': unbalanced '}'"'
|
||||
// | RightBrace:'"}"'
|
||||
// |
|
||||
//
|
||||
Loading…
Add table
Add a link
Reference in a new issue