public static int readname(LexState LS) { int l = 0; checkbuffer(LS, l); do { checkbuffer(LS, l); save_and_next(LS, ref l); } while (Char.IsLetterOrDigit((char)LS.current) || LS.current == '_'); save(LS, '\0', ref l); return l - 1; }