dparnell / intellij-wgsl

WGSL plugin for IntelliJ and CLion
BSD 3-Clause "New" or "Revised" License
22 stars 10 forks source link

Fix matrix trailing space issues #41

Closed terrarier2111 closed 2 years ago

terrarier2111 commented 2 years ago

Writing something like: let model_matrix = mat4x4<f32>( instance.model_matrix_0, instance.model_matrix_1, instance.model_matrix_2, instance.model_matrix_3, ); causes red thingies to pop up and formatting to get messed up, removing the trailing semicolon fixes these issues

dparnell commented 2 years ago

the issue appears to be the trailing comma. Without that it accepts the line. I will update the parser to accept this syntax

dparnell commented 2 years ago

I have submitted a new version to the Jetbrains marketplace. It usually takes them a couple of days to approve new versions. Let me know if this fixes the issue.

dparnell commented 2 years ago

this should be available in the Jetbrains marketplace now

terrarier2111 commented 2 years ago

It works like a dream, tysm