// counts lines from 0 static int tokenLineNr(L tok, int i) { ret toLines(join(tok.subList(0, i))).size(); }