diff options
Diffstat (limited to 'cparser/Lexer.mll')
-rw-r--r-- | cparser/Lexer.mll | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cparser/Lexer.mll b/cparser/Lexer.mll index 42980d30..9f7fba1e 100644 --- a/cparser/Lexer.mll +++ b/cparser/Lexer.mll @@ -34,6 +34,7 @@ let () = ("_Alignas", fun loc -> ALIGNAS loc); ("_Alignof", fun loc -> ALIGNOF loc); ("_Bool", fun loc -> UNDERSCORE_BOOL loc); + ("_Generic", fun loc -> GENERIC loc); ("_Complex", fun loc -> reserved_keyword loc "_Complex"); ("_Imaginary", fun loc -> reserved_keyword loc "_Imaginary"); ("_Static_assert", fun loc -> STATIC_ASSERT loc); @@ -538,6 +539,7 @@ and singleline_comment = parse | Pre_parser.EXTERN loc -> loop (Parser.EXTERN loc) | Pre_parser.FLOAT loc -> loop (Parser.FLOAT loc) | Pre_parser.FOR loc -> loop (Parser.FOR loc) + | Pre_parser.GENERIC loc -> loop (Parser.GENERIC loc) | Pre_parser.GEQ loc -> loop (Parser.GEQ loc) | Pre_parser.GOTO loc -> loop (Parser.GOTO loc) | Pre_parser.GT loc -> loop (Parser.GT loc) |