From 94f9f2e421271a30b3f7244ab35c1cf0599423dd Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 9 Mar 2010 12:31:19 +0100 Subject: [PATCH] isl_stream: allow "_" in tokens --- isl_stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/isl_stream.c b/isl_stream.c index 2023956..cf45942 100644 --- a/isl_stream.c +++ b/isl_stream.c @@ -326,7 +326,8 @@ static struct isl_token *next_token(struct isl_stream *s, int same_line) if (!tok) return NULL; isl_stream_push_char(s, c); - while ((c = isl_stream_getc(s)) != -1 && isalnum(c)) + while ((c = isl_stream_getc(s)) != -1 && + (isalnum(c) || c == '_')) isl_stream_push_char(s, c); if (c != -1) isl_stream_ungetc(s, c); -- 2.7.4