lgwagner/SpeAR

Scientific Notation Textual Highlighting

Closed this issue · 9 comments

When using scientific notation to define a number the text highlighting is not consistent throughout the number. This could be a limitation forced down by Xtext.

image

I've investigated this but I don't have the first clue on how to fix it and I'm not sure it's worth the budget at the moment.

Aaron,

Do you mind this format? Keep in mind that the way I've implemented this will require you to explicitly using the +/- sign on the exponent.

You can say 10.0E-1, 10.0e-1, 10.0e+1, or 10.0E+1 but not 10.0E1

image

Tony pointed out something: now 'e' is a keyword in the language. Not good. I'll have to figure something else out.

How does this look?

image