lua-users home
lua-l archive

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


>
> ---- diff for llex.c,v 2.19 2006/02/06 18:28:16 roberto
>
> in static int llex (LexState *ls, SemInfo *seminfo) { ...
>
>  Replace, at line 368
>
> --      case '=': {
> --        next(ls);
> --        if (ls->current != '=') return '=';
> --        else { next(ls); return TK_EQ; }
> --      }
>
> with
>
> ++      case '=': {
> ++        next(ls);
> ++        switch(ls->current) {
> ++         case '=': next(ls); return TK_EQ; break;
> ++         case '>': next(ls); return TK_RETURN; break;
> ++         default: return '=';  }
> ++       }
> ++      case '\\': {
> ++        next(ls);
> ++        return TK_FUNCTION;
> ++        }
> --


thanks Gavin. will get back to you as things come up.
--
salud,
eyan

http://www.eyan.org