vscode-shader icon indicating copy to clipboard operation
vscode-shader copied to clipboard

Potential visual regression in glsl grammar

Open Strum355 opened this issue 4 years ago • 4 comments

Not sure if this was intended or not, but the visuals changed fairly dramatically in certain aspects (include directives, function names, probably more)

Before: image After: image

Strum355 avatar Feb 09 '21 02:02 Strum355

Hm, the recent refresh of the GLSL grammar removed some of our improvements, indeed. Will fix that.

stef-levesque avatar Feb 14 '21 22:02 stef-levesque

There is arguably pros and cons to the new GLSL grammar. I agree the #include tag should be fix, and the function parameter. But on the other side, we now have a distinction between data-type constructors (blue), built-in functions (yellow) and user functions (white).

We don't have code analysis on GLSL, so I like the distinction between built-in and regular functions. I wouldn't like to have them marked as generic keyword. Not sure what would be the best approach here.

image

stef-levesque avatar Feb 14 '21 23:02 stef-levesque

I think reverting the color of the user functions would make sense. This would be in-line with what other languages do, in my case functions having a blue color as you can see from screenie #1. Giving built-in functions a distinction seems like a good idea though for sure, fully on-board with that :slightly_smiling_face:

Strum355 avatar Feb 17 '21 15:02 Strum355

making progress

image

stef-levesque avatar Feb 18 '21 04:02 stef-levesque