glcpp: Reject #version and #line not followed by whitespace
authorMatt Turner <mattst88@gmail.com>
Wed, 21 Nov 2012 01:23:42 +0000 (17:23 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 28 Nov 2012 18:26:53 +0000 (10:26 -0800)
commitaed466192a78ff2bb3db877a9599424de708cf90
tree33e7e1f4700aff357776d57e703ec9fc5cf5815b
parent91ca053714957aca5205122e8478002c62cc4344
glcpp: Reject #version and #line not followed by whitespace

Fixes part of es3conform's preprocess16_frag test.
Reviewed-by: Carl Worth <cworth@cworth.org>
src/glsl/glcpp/glcpp-lex.l
src/glsl/glcpp/tests/108-no-space-after-hash-version.c [new file with mode: 0644]
src/glsl/glcpp/tests/108-no-space-after-hash-version.c.expected [new file with mode: 0644]
src/glsl/glcpp/tests/109-no-space-after-hash-line.c [new file with mode: 0644]
src/glsl/glcpp/tests/109-no-space-after-hash-line.c.expected [new file with mode: 0644]