Issue #2 : EOF breaks parsing

This commit is contained in:
yuin 2019-05-15 00:56:22 +09:00
parent ad605c0a32
commit 2988e183ed

View file

@ -189,7 +189,7 @@ func (r *reader) AdvanceLine() {
if r.pos.Start < 0 {
return
}
r.pos.Stop = invalidValue
r.pos.Stop = r.sourceLength
for i := r.pos.Start; i < r.sourceLength; i++ {
c := r.source[i]
if c == '\n' {