glsl2: Emit error from lexer when illegal reserved word is encountered
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 12 Aug 2010 00:01:31 +0000 (17:01 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 12 Aug 2010 00:03:31 +0000 (17:03 -0700)
commit77215e7e7babe73e5d959ab5ad82054a8d73c538
treee468fe7f98d9061050b85d48de76189da69ac5d7
parent202604e8160157e4e80b3458175e0170d168e557
glsl2: Emit error from lexer when illegal reserved word is encountered

Without this, the parser will generate obtuse, useless error
diagnostics when reservered word that are not used by the grammar are
encountered in a shader.

Fixes bugzilla #29519.
src/glsl/glsl_lexer.lpp
src/glsl/glsl_parser.ypp