vscode-glsl-canvas icon indicating copy to clipboard operation
vscode-glsl-canvas copied to clipboard

Formatter handles scientific notation incorrectly ( `1e-9` -> `1e - 9` )

Open yoshi389111 opened this issue 6 months ago • 0 comments

Thanks for the great extension!

I just noticed one issue and wanted to report it.

When formatting scientific notation with Use compact formatter disabled, spaces are added around the sign, which causes compilation errors.

before

const float EPSILON = 1e-9;
const float FOO = 1E+10F;

after

const float EPSILON = 1e - 9;
const float FOO = 1E + 10F;

environment

  • glsl-canvas v0.2.15
  • vscode v1.92.0
  • os: Windows11

yoshi389111 avatar Aug 08 '24 13:08 yoshi389111