Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Formatting real literals in exponential form introduces syntax errors #11

Open
lepommosaure opened this issue Aug 6, 2020 · 1 comment

Comments

@lepommosaure
Copy link

Hi, and first of all thank you for this great extension!

However, I have somewhere in my code exponential form real literals, and the following happens:

constant A_CONSTANT : real := 12.3E-6;
gets formatted into: (adding a space between "-"
constant A_CONSTANT : real := 12.3E - 6;

And of course that breaks everything... :)

Thank you!

@Nabav
Copy link

Nabav commented Oct 19, 2020

Use small letter e for exponential, for me it works.

constant A_CONSTANT : real := 12.3e-6;

Also, looks much nicer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants