From e88617a0657f86999476521d3687f89743efd234 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 17 Jun 2014 21:28:20 +0900 Subject: [PATCH] ignore shebang (#134) --- src/scan.l | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scan.l b/src/scan.l index c3d9b1b8..747f31a7 100644 --- a/src/scan.l +++ b/src/scan.l @@ -33,6 +33,9 @@ %option extra-type="struct parser_control *" %option never-interactive + /* shebang */ +shebang #!.*$ + /* comment */ comment ;.*$ @@ -71,6 +74,7 @@ label #{uinteger} [ \t\n\r] /* skip whitespace */ {comment} /* skip comment */ +{shebang} /* skip shebang */ "#|" { BEGIN(BLOCK_COMMENT);