Darkyenus / glsl4idea

A GLSL language plugin for IntelliJ IDEA
GNU Lesser General Public License v3.0
101 stars 31 forks source link

{} style array initializers aren't recognized #55

Closed dannypurcell closed 9 years ago

dannypurcell commented 9 years ago

While working with a 430 core comp shader I noticed a couple of incorrect syntax checks.

const box boxes[] = {
  /* The ground */
  {vec3(-5.0, -0.1, -5.0), vec3(5.0, 0.0, 5.0)},
  /* Box in the middle */
  {vec3(-0.5, 0.0, -0.5), vec3(0.5, 1.0, 0.5)}
};

Samples from a recent LWJGL Ray trace tutorial. Syntax validates with the Reference Compiler

dannypurcell commented 9 years ago

Thank you for taking on this project! I took a shot at it a while back but I could not spare the time to make meaningful improvements here while also trying to learn OpenGL in the first place.

If you have Gratipay or some other kind of donation system setup I'd like to send you something for taking this on.

Darkyenus commented 9 years ago

Thanks for the feedback! I appreciate your willingness to donate, but I am not sure if I should set it up, since we have multiple core contributors (I didn't even start this project), so it wouldn't be just right to set it up without any kind of split. Maybe others can say what they think, but I am not sure about it. Thanks nevertheless.

Your first reported issue should be now fixed by #59 .