From 97a5b852d2088f3564b6f94f27b91111b35152fe Mon Sep 17 00:00:00 2001 From: dcw <dcw> Date: Tue, 28 Nov 1989 19:59:59 +0000 Subject: [PATCH] added underscore in tID at solly's request. --- lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexer.c b/lexer.c index 9d6c4a9..217df88 100644 --- a/lexer.c +++ b/lexer.c @@ -114,7 +114,7 @@ TOKEN nexttok() if( isalpha( c ) ) { curtok = tID; - for( pos=0; isalpha(c) || isdigit(c); ) + for( pos=0; isalpha(c)||isdigit(c)||c=='_'; ) { if( pos<MAXIDSIZE-1 ) lexidval[pos++] = c; -- GitLab