From 025589f7720358802ed2ae2e017747dc6122a513 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 6 Oct 1995 10:10:53 -0300 Subject: [PATCH] nova forma de comentarios: de '#' ate' fim de linha (para uso de lua como shell) --- lex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lex.c b/lex.c index 675a944f..221a4b4b 100644 --- a/lex.c +++ b/lex.c @@ -1,4 +1,4 @@ -char *rcs_lex = "$Id: lex.c,v 2.16 1995/09/15 20:48:26 roberto Exp $"; +char *rcs_lex = "$Id: lex.c,v 2.17 1995/10/03 18:06:10 roberto Exp $"; #include @@ -185,7 +185,8 @@ int yylex (void) case '-': save_and_next(); - if (current != '-') return '-'; + if (current != '-') return '-'; /* else goes through */ + case '#': do { next(); } while (current != '\n' && current != 0); continue;