Closed arporter closed 2 years ago
I suspect this is to do with #288 that was fixed back in January.
"\b([.]\d\d|\d\d[.]\d|\d\d)[ed][+-]?\d*"gm
Better regex is: [^\w](\d*[.])?\d+[ed][+-]?\d+(_\w*)?
although this will include the preceding non-'word' char in the match.
When we have an expression involving a literal with an exponent then we get the following parse tree (fragment):
zw = zw - 3.14807E-10*zw6
If the exponent is removed then the parse tree has a different structure:
zw = zw - 3.14807*zw6