aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch3.adb
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2023-02-18 00:02:08 +0100
committerMarc Poulhiès <poulhies@adacore.com>2023-05-23 09:59:04 +0200
commitadf71a9ba515a0c8fe0e8d8ac9cef4db890ed219 (patch)
tree1f64f8f1dd643448c9ba21aded72a019cd785f4d /gcc/ada/sem_ch3.adb
parent674ab59dc50bec6987f133424e4c5a1c5ba52e61 (diff)
downloadgcc-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