glsl: Add an internal-error catch-all rule
authorCarl Worth <cworth@cworth.org>
Wed, 25 Jun 2014 20:07:44 +0000 (13:07 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 29 Jul 2014 22:11:50 +0000 (15:11 -0700)
commitf196eb2d39d334b3ac8fbc5c0513dcb25e725155
tree8def244319cda11eee85b00e6ced4b0c63caa8ae
parentf062f0506a5b827667b7eb52136d8420b7e8113b
glsl: Add an internal-error catch-all rule

This is to avoid the default, silent flex rule which simply prints the
character to stdout.

For the following Khronos GLES3 conformance tests:

invalid_char_in_name_vertex
invalid_char_in_name_fragment

With this commit, these tests now report Pass where they previously reported
Fail, but Mesa isn't behaving correctly yet. It's now reporting the internal
error where what is really desired is a syntax error.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/glsl_lexer.ll