From: Sven Verdoolaege Date: Tue, 9 Mar 2010 11:31:19 +0000 (+0100) Subject: isl_stream: allow "_" in tokens X-Git-Tag: isl-0.02~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94f9f2e421271a30b3f7244ab35c1cf0599423dd;p=platform%2Fupstream%2Fisl.git isl_stream: allow "_" in tokens --- 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);