ivy: fix comment lexing

Another bug left over from converting the old code that had the whole string in memory.