glcpp: Complain about unrecognized directives.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Jun 2010 19:41:37 +0000 (12:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 21 Jun 2010 18:31:55 +0000 (11:31 -0700)
glcpp/glcpp-parse.y

index f9fab8b..fde9b92 100644 (file)
@@ -360,7 +360,9 @@ text_line:
 ;
 
 non_directive:
-       pp_tokens NEWLINE
+       pp_tokens NEWLINE {
+               yyerror (parser, "Invalid tokens after #");
+       }
 ;
 
 replacement_list: