Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential visual regression in glsl grammar #42

Open
Strum355 opened this issue Feb 9, 2021 · 4 comments
Open

Potential visual regression in glsl grammar #42

Strum355 opened this issue Feb 9, 2021 · 4 comments
Assignees
Labels

Comments

@Strum355
Copy link

Strum355 commented Feb 9, 2021

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

@stef-levesque stef-levesque self-assigned this Feb 14, 2021
@stef-levesque
Copy link
Owner

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

@stef-levesque
Copy link
Owner

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

@Strum355
Copy link
Author

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 🙂

@stef-levesque
Copy link
Owner

making progress

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants