From c63cbd8db40fbdeccabd218229010cbfb8a93977 Mon Sep 17 00:00:00 2001 From: Felix Perktold Date: Tue, 23 Dec 2025 14:29:00 +0100 Subject: fix tests, fix empty input behavior --- lisp.l | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lisp.l') diff --git a/lisp.l b/lisp.l index cb0453a..d5d2c69 100644 --- a/lisp.l +++ b/lisp.l @@ -7,9 +7,8 @@ int tcnt = 0; %} %% -[[:space:]&&[^\n]]+ { /* ignore whitespace */ } +[[:space:]]+ { /* ignore whitespace */ } ";"[^\n]* { /* ignore comment */ } -\n { return NLINE; } "(" { return LPAREN; } ")" { return RPAREN; } "\." { return DOT; } -- cgit v1.2.3