PolyMeilex / vscode-wgsl

VsCode Syntax highlight for WGSL files
MIT License
79 stars 8 forks source link

Some words are not colored #4

Closed kocsis1david closed 3 years ago

kocsis1david commented 3 years ago

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

PolyMeilex commented 3 years ago

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.

PolyMeilex commented 3 years ago

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.

kocsis1david commented 3 years ago

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

PolyMeilex commented 3 years ago

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.