case '[':
case ']':
- case '.':
-
case '#':
return (lex->tok->ttype = ch);
case '^':
case '~':
case ',':
- return ch;
+ case '.':
+ return (lex->tok->ttype = ch);
default:
break;
}
}
- if (ch == ',') {
+ if (ch == ',' || ch == '.') {
if (!lex_tokench(lex, ch) ||
!lex_endtoken(lex))
{
!strcmp(v, "if") ||
!strcmp(v, "else") ||
!strcmp(v, "var") ||
+ !strcmp(v, "local") ||
!strcmp(v, "return") ||
!strcmp(v, "const"))
lex->tok->ttype = TOKEN_KEYWORD;