summaryrefslogtreecommitdiff
path: root/lisp.l
diff options
context:
space:
mode:
Diffstat (limited to 'lisp.l')
-rw-r--r--lisp.l5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp.l b/lisp.l
index fa2203a..cb0453a 100644
--- a/lisp.l
+++ b/lisp.l
@@ -7,8 +7,9 @@ int tcnt = 0;
%}
%%
-[[:space:]]+ { /* ignore whitespace */ }
-";"[^\n]* { /* ignore comment */ }
+[[:space:]&&[^\n]]+ { /* ignore whitespace */ }
+";"[^\n]* { /* ignore comment */ }
+\n { return NLINE; }
"(" { return LPAREN; }
")" { return RPAREN; }
"\." { return DOT; }