After preprocessing by glcpp all adjacent spaces were replaced by
single one and glsl parser received column-shifted shader source.
It negatively affected ast location set up and produced wrong error
messages for heavily-spaced shaders.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
return OTHER;
}
-{HSPACE}+ {
+{HSPACE} {
if (yyextra->space_tokens) {
return SPACE;
}
-this is four tokens
+ this is four tokens with spaces
-this is four tokens
+ this is four tokens with spaces
switch (1) {
- case 1 + 2:
- break;
+ case 1 + 2:
+ break;
}