diff options
author | Carl Worth <[email protected]> | 2014-06-19 11:57:06 -0700 |
---|---|---|
committer | Carl Worth <[email protected]> | 2014-07-29 15:11:48 -0700 |
commit | cc335c0e57a92fd78141894350607eca3622465a (patch) | |
tree | d205bcd9ea62081d67a3bd74e6054d917eff42bf /src/glsl/test_optpass.h | |
parent | ea2e9300ece89dffdc4a228dc86bea28a7cd58e2 (diff) |
glsl/glcpp: Add support for comments between #define and macro identifier
The recent adddition of an error for "#define followed by a non-identifier"
was a bit to aggressive since it used a regular expression in the lexer to
flag any character that's not legal as the first character of an identifier.
But we need to allow comments to appear here, (since we aren't removing
comments in a preliminary pass). So we refine the error here to only flag
characters that could not be an identifier, nor a comment, nor whitespace.
We also augment the existing comment support to be active in the <DEFINE>
state as well.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/glsl/test_optpass.h')
0 files changed, 0 insertions, 0 deletions