lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> So it seems that any of "\n", "\r", "\r\n" and "\n\r" are valid 
> newlines. But where in the code is it?

I think you are looking for "inclinenumber", in llex.c:



    /*
    ** increment line number and skips newline sequence (any of
    ** \n, \r, \n\r, or \r\n)
    */
    static void inclinenumber (LexState *ls) {