PolyMeilex/vscode-wgsl

Some words are not colored

kocsis1david opened this issue · 4 comments

Types like vecX<> are not colored, also in the parameter list, everything has the same color.

It would be nice if types were recognized if they are pascal case, like VertexOutput.

image

vscode-wgsl does recognize vecX and matXxY
img
It's just cheapens that many themes color it as white. That being said, I will change its type to be something with higher chance of being colored. (probably something like storage.type)

also in the parameter list, everything has the same color.

yeah, it's super annoying, I haven't found a reason for this behavior yet. (fixed)

It would be nice if types were recognized if they are pascal case, like VertexOutput.

That's a grate idea, should be easy to add too.

I published 0.1.10 version, I believe it addressed all of your problems, give it a try and let me know if it works as you would expect.

That was fast, looks better now. But the return type is still not colored.

Ok, now it should work, instead of trying to patch it I rewrote the whole thing with the newest WGSL spec in mind. Let's hope that I did not introduce to many regressions by doing that.