Firefox Minefield Error/warning message: not well-formed

In general, I notice that Firefox Minefield is much stricter than Chrome Canary when compiling my Javascript. Chrome Canary missed them. For example, it notifies me undeclared variables, assigning to a read-only property, etc.

I use the following comment on my shader


// Light structure 
struct structPointLight {
	vec4 position;
	vec4 diffuse;
	vec4 specular;
	vec4 ambient;

	float constant_attenuation;
	float linear_attenuation;
	float quadratic_attenuation;
};

Firefox Minefield issues error/warning message: not well-formed on the “// Light structure” on the Error Console.
Chrome Canary issues no warning on its console.

I then removed the “// Light structure” as the following:


struct structPointLight {
	vec4 position;
	vec4 diffuse;
	vec4 specular;
	vec4 ambient;

	float constant_attenuation;
	float linear_attenuation;
	float quadratic_attenuation;
};

Firefox now issues an error on the "struct ". Chrome issues no error.

The program works just fine. I am just curious about the above error/warning.

Any pointer is appreciated.

Thanks in advance for your help.

Sounds like the problem is with whatever code is just above there…what’s the previous thing in that shader?

I have the latest version of Firefox but am not sure what add-ins I should be using.
Some advice to aa newbee please…

I still think it’s whatever code comes BEFORE the bit you quoted.