erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.63k stars 54 forks source link

fix: dedent error when EOF comes in a block of two or greater depth #316

Closed GreasySlug closed 1 year ago

GreasySlug commented 1 year ago

Fixes #315.

Dedent is automatically called if EOF is at the end of the block In this case, it is interpreted that no spaces are inserted, resulting in a problem where indentation and spaces do not match This caused an invalid indent error

Changes proposed in this PR:

@mtshiba