From the excerpt:
The OpenGL Shading Language (GLSL) is the standard programming language for shaders in OpenGL.
While glsl is officially derived from C, it reserves many C++ keywords and otherwise has many significant differences. Also, it has a completely different use.
Among others, the one and only proper prototype for main
there is:
void main()
As it is its own, independent language, can we enable proper syntax-highlighting for it please?
lang-c
should work well enough.
<!-- language: lang-c -->
above a code block instead of mis-tagging itvec4
,mat4
,uniform
,attribute
,precision
etc. The lang-c one highightsfloat
. It would be weird to seeuniform float foo;
highlighted but notuniform vec4 bar;
and beside. It would literally take less than 30 minutes to add glsl support. Just clone the c one and add the keywords. In other words, don't be lazy when the right thing is so easy.