diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2023-02-18 00:02:08 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-23 09:59:04 +0200 |
commit | adf71a9ba515a0c8fe0e8d8ac9cef4db890ed219 (patch) | |
tree | 1f64f8f1dd643448c9ba21aded72a019cd785f4d /gcc/ada/sem_ch3.adb | |
parent | 674ab59dc50bec6987f133424e4c5a1c5ba52e61 (diff) | |
download | gcc-adf71a9ba515a0c8fe0e8d8ac9cef4db890ed219.zip gcc-adf71a9ba515a0c8fe0e8d8ac9cef4db890ed219.tar.gz gcc-adf71a9ba515a0c8fe0e8d8ac9cef4db890ed219.tar.bz2 |
ada: Fix endings of pretty-printed numeric literals
When looking for the end of an numeric literal we consumed '+' and '-'
characters, because they might appear in the exponent part. This was too
aggressive when they separated the number from the subsequent operand,
like in "123+456". Now we skip past numeric literals by strictly
following their grammar and only consume '+' and '-' when they belong to
the exponent.
gcc/ada/
* errout.adb (Last_Sloc): Rewrite skipping past numeric literals.
Diffstat (limited to 'gcc/ada/sem_ch3.adb')
0 files changed, 0 insertions, 0 deletions