diff options
Diffstat (limited to 'bin/c11.l')
-rw-r--r-- | bin/c11.l | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/bin/c11.l b/bin/c11.l index b9490f2e..b1f0b960 100644 --- a/bin/c11.l +++ b/bin/c11.l @@ -1,4 +1,4 @@ -/* Copyright (C) 2020 C. McEnroe <june@causal.agency> +/* Copyright (C) 2020 June McEnroe <june@causal.agency> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -15,7 +15,7 @@ */ %option prefix="c11" -%option noyywrap +%option noinput nounput noyywrap %{ #include "hilex.h" @@ -79,7 +79,7 @@ register|restrict|return|static|struct|switch|typedef|union|volatile|while | {ident} { return Ident; } "//"([^\n]|"\\\n")* | -"/*"([^*]|"*"[^/])*"*"+"/" { +"/*"([^*]|"*"+[^*/])*"*"+"/" { return Comment; } @@ -139,11 +139,6 @@ register|restrict|return|static|struct|switch|typedef|union|volatile|while | .|\n { return Normal; } -%{ - (void)yyunput; - (void)input; -%} - %% const struct Lexer LexC = { yylex, &yyin, &yytext }; |