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

Formatting scientific notation adds spaces #734

Open
ForestKatsch opened this issue Oct 13, 2024 · 1 comment
Open

Formatting scientific notation adds spaces #734

ForestKatsch opened this issue Oct 13, 2024 · 1 comment
Labels

Comments

@ForestKatsch
Copy link

Godot version

4.3.stable

VS Code version

1.94.2

Godot Tools VS Code extension version

2.3.0

System information

Windows 11

Issue description

Scientific notation formatting adds a space around the "-" or "+".

var my_tiny_number = 1e-6

is formatted to

var my_tiny_number = 1e - 6

(which is syntactically invalid GDScript.)

Previously reported in #653, but PR #605 referenced in that issue is now merged, but the scientific notation issue persists.

Steps to reproduce

Create a GDScript file containing

var my_tiny_number = 1e-6

Format the file.

@DaelonSuzuka
Copy link
Collaborator

This should be fixed in the next release.

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