From cec47d40825fbc95f9527c098fca806976e57d39 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 13 Oct 1996 22:56:46 +0000 Subject: Introduce a notion of numeric token. svn path=/trunk/; revision=327 --- rcfile_l.l | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rcfile_l.l') diff --git a/rcfile_l.l b/rcfile_l.l index a6bb0cfb..9ae0fcfa 100644 --- a/rcfile_l.l +++ b/rcfile_l.l @@ -67,6 +67,8 @@ options {/* EMPTY */} (#.*)?\\?\n { prc_lineno++; } /* newline is ignored */ +[0-9]+ { yylval.number = atoi(yytext); return NUMBER; } + \"[^\"]*\" { yytext[strlen(yytext)-1] = '\0'; yylval.sval = (char *) strdup(yytext+1); -- cgit v1.2.3