case '[':
case ']':
- case ',':
-
case '#':
return (lex->tok->ttype = ch);
case '|':
case '^':
case '~':
+ case ',':
return ch;
default:
break;
}
}
+ if (ch == ',') {
+ if (!lex_tokench(lex, ch) ||
+ !lex_endtoken(lex))
+ {
+ return (lex->tok->ttype = TOKEN_FATAL);
+ }
+ return (lex->tok->ttype = TOKEN_OPERATOR);
+ }
+
if (ch == '+' || ch == '-' || /* ++, --, +=, -= and -> as well! */
ch == '>' || ch == '<' || /* <<, >>, <=, >= */
ch == '=' || /* == */