Count line breaks inside strings
This commit is contained in:
parent
2e6cafb1cb
commit
a02ba712b8
|
@ -107,6 +107,8 @@ loop:
|
||||||
l.emit(itemString)
|
l.emit(itemString)
|
||||||
break loop
|
break loop
|
||||||
}
|
}
|
||||||
|
case '\n':
|
||||||
|
l.lineNum++
|
||||||
case EOF:
|
case EOF:
|
||||||
return l.errorf("String hits EOF")
|
return l.errorf("String hits EOF")
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue