1
0
Fork 0

Count line breaks inside strings

This commit is contained in:
Gregory Eremin 2015-02-16 16:02:40 +07:00
parent 2e6cafb1cb
commit a02ba712b8
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,8 @@ loop:
l.emit(itemString)
break loop
}
case '\n':
l.lineNum++
case EOF:
return l.errorf("String hits EOF")
default: