diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-06-16 12:41:37 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-06-21 11:31:55 -0700 |
commit | 739ba06680c762ff0a2e93027fefe0ab84ab6adc (patch) | |
tree | e719556a2fab710c4c17fa130e52e734b21e693b /glcpp | |
parent | 3b73ea36c4bda1353aa0315234233fc6fd6a28bd (diff) |
glcpp: Complain about unrecognized directives.
Diffstat (limited to 'glcpp')
-rw-r--r-- | glcpp/glcpp-parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/glcpp/glcpp-parse.y b/glcpp/glcpp-parse.y index f9fab8bf29..fde9b92ede 100644 --- a/glcpp/glcpp-parse.y +++ b/glcpp/glcpp-parse.y @@ -360,7 +360,9 @@ text_line: ; non_directive: - pp_tokens NEWLINE + pp_tokens NEWLINE { + yyerror (parser, "Invalid tokens after #"); + } ; replacement_list: |