Skip to content

Commit

Permalink
Issue #2 : EOF breaks parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
yuin committed May 14, 2019
1 parent ad605c0 commit 2988e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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' {
Expand Down

0 comments on commit 2988e18

Please sign in to comment.