mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Update parse.rs
This commit is contained in:
parent
0b88641243
commit
8913a26c60
1 changed files with 5 additions and 0 deletions
|
@ -323,6 +323,11 @@ impl Parser {
|
|||
self.restore(nl);
|
||||
break;
|
||||
}
|
||||
// last line dedent without newline
|
||||
Some(t) if t.is(Dedent) => {
|
||||
self.skip();
|
||||
break;
|
||||
}
|
||||
Some(t) if t.category_is(TC::Separator) => {
|
||||
self.skip();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue