aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rcfile_l.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/rcfile_l.l b/rcfile_l.l
index 5980a6ce..398d83f0 100644
--- a/rcfile_l.l
+++ b/rcfile_l.l
@@ -167,7 +167,7 @@ options {/* EMPTY */}
(#.*)?\\?\n { prc_lineno++; } /* newline is ignored */
-[0-9]+ { yylval.number = atoi(yytext); return NUMBER; }
+-?[0-9]+ { yylval.number = atoi(yytext); return NUMBER; }
[^=;:, \t\r\n]+ {
char buf[MSGBUFSIZE];