static int tok_beginningOfLine(LS tok, int i) { i |= 1; while (i > 1 && !containsNewLine(tok.get(i-1))) i -= 2; return i; }