// index returned is N index that contains '\n' (or last N) static int tok_findEndOfLine(LS tok, int i) { int n = l(tok); if (odd(i)) ++i; // Point to N token while (i < n) { S t = tok.get(i); if (containsNewLine(t)) ret i; i += 2; } ret n-1; }