summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2014-06-26 14:04:01 -0700
committerCarl Worth <[email protected]>2014-07-29 15:11:51 -0700
commit4757c74c840460f387a466894baf1c45624467c7 (patch)
treeba59873fa2ee051073f21a4e89c6604bfc7ce22b /.gitignore
parent12d583b21a7e538d7fa44c3129e95b407d03c01a (diff)
glsl/glcpp: Treat carriage return as equivalent to line feed.
Previously, the '\r' character was not explicitly matched by any lexer rule. This means that glcpp would have been using the default flex rule to match '\r' characters, (where they would have been printed to stdout rather than actually correctly handled). With this commit, we treat '\r' as equivalent to '\n'. This is clearly an improvement the bogus printing to stdout. The resulting behavior is compliant with the GLSL specification for any source file that uses exclusively '\r' or '\n' to separate lines. For shaders that use a multiple-character line separator, (such as "\r\n"), glcpp won't be precisely compliant with the specification, (treating these as two newline characters rather than one), but this should not introduce any semantic changes to the shader programs. Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions