aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_l.l
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-13 22:56:46 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-13 22:56:46 +0000
commitcec47d40825fbc95f9527c098fca806976e57d39 (patch)
tree2d476b13dd5c363211b0d7254e992f26b0e3f411 /rcfile_l.l
parent1d2086dae4fd91eace41352c393e9fc613c0e2b1 (diff)
downloadfetchmail-cec47d40825fbc95f9527c098fca806976e57d39.tar.gz
fetchmail-cec47d40825fbc95f9527c098fca806976e57d39.tar.bz2
fetchmail-cec47d40825fbc95f9527c098fca806976e57d39.zip
Introduce a notion of numeric token.
svn path=/trunk/; revision=327
Diffstat (limited to 'rcfile_l.l')
-rw-r--r--rcfile_l.l2
1 files changed, 2 insertions, 0 deletions
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);