Recognize a dot as operator when not in 'no-ops' mode in the lexer

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-12 19:00:44 +02:00
parent 437988c5b4
commit fd1a850629

View file

@ -497,8 +497,6 @@ int lex_do(lex_file *lex)
case '[':
case ']':
case '.':
case '#':
return (lex->tok->ttype = ch);
@ -525,13 +523,14 @@ int lex_do(lex_file *lex)
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))
{