diff options
author | Carl Worth <[email protected]> | 2014-06-26 10:56:41 -0700 |
---|---|---|
committer | Carl Worth <[email protected]> | 2014-07-29 15:11:50 -0700 |
commit | 12d583b21a7e538d7fa44c3129e95b407d03c01a (patch) | |
tree | 4a422c7cf743ee45b50f6c4d165ecbd086133b2b /src/glsl/program.h | |
parent | 346d712e87f09b434706ee21de02860f104c1c3c (diff) |
glsl/glcpp: Add test for a multi-line comment within an #if 0 block
This test is written to exercise a bug which I recently wrote, (but
fortunately caught and fixed before ever committing it).
For the curious:
The bug happened when the NEWLINE_CATCHUP code didn't actually return the
NEWLINE token (due to the skipping). This resulted in the lexer continuing
on through all the subsequent rules while still in the NEWLINE_CATCHUP start
condition, (which then triggered the internal-compiler-error catch-all
rule).
What is intended is for the return of the NEWLINE token to start a new
iteration of the lexer loop, at which time the NEWLINE_CATCHUP-handling code
will reset from the <NEWLINE_CATCHUP> to the <INITIAL> start condition.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/glsl/program.h')
0 files changed, 0 insertions, 0 deletions