ignore shebang (#134)
This commit is contained in:
parent
3bc12d883e
commit
e88617a065
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue