isl_stream: allow tokens to start with "_"
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 19 Oct 2010 12:34:10 +0000 (14:34 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 26 Oct 2010 14:27:10 +0000 (16:27 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_stream.c

index 4d684ec..b134aca 100644 (file)
@@ -340,7 +340,7 @@ static struct isl_token *next_token(struct isl_stream *s, int same_line)
                isl_int_read(tok->u.v, s->buffer);
                return tok;
        }
-       if (isalpha(c)) {
+       if (isalpha(c) || c == '_') {
                tok = isl_token_new(s->ctx, line, col, old_line != line);
                if (!tok)
                        return NULL;