diff options
Diffstat (limited to 'gcc/ada/errutil.adb')
-rw-r--r-- | gcc/ada/errutil.adb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ada/errutil.adb b/gcc/ada/errutil.adb index 855d464..ef30c7d 100644 --- a/gcc/ada/errutil.adb +++ b/gcc/ada/errutil.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1991-2003 Free Software Foundation, Inc. -- +-- Copyright (C) 1991-2005 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -100,6 +100,10 @@ package body Errutil is -- since there may be white space inside the literal and we don't want -- to stop on that white space. + -- Note that it is not worth worrying about special UTF_32 line + -- terminator characters in this context, since this is only about + -- error recovery anyway. + if Prev_Token = Tok_String_Literal then loop S1 := S1 + 1; @@ -121,6 +125,10 @@ package body Errutil is -- by a line terminator, white space, a comment symbol or if we bump -- into the following token (i.e. the current token) + -- Note that it is not worth worrying about special UTF_32 line + -- terminator characters in this context, since this is only about + -- error recovery anyway. + else while Source (S1) not in Line_Terminator and then Source (S1) /= ' ' |