glslify / glsl-tokenizer

r/w stream of glsl tokens
MIT License
51 stars 6 forks source link

Builtin function as variable name seems legal #1

Closed gre closed 10 years ago

gre commented 10 years ago

I don't know if this bug is in glsl-tokenizer or glsl-parser

but

  float distance = 1.0;

seems to not parse but is ok when compiling the GLSL.

I don't know what the spec say about that, if it is legal?

chrisdickinson commented 10 years ago

Fixed in glsl-parser, as of v0.0.8. Thanks very much!