laurentlb / shader-minifier

Minify and obfuscate GLSL or HLSL code
https://ctrl-alt-test.fr/minifier/
Apache License 2.0
424 stars 29 forks source link

Better handling of spaces in preprocessor directives #404

Closed laurentlb closed 1 month ago

laurentlb commented 1 month ago

There's a bit of complexity to handle: #define foo(x) vs #define foo (x)

With this commit, we now remove a few superfluous spaces, and we also preserve the space in #define foo .2

Fixes #401