diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-08 06:54:43 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-08 06:54:43 +0000 |
commit | 927486d7983acb1d0ea06d8bc9862ff4c407a360 (patch) | |
tree | c15cd95814db6baed85effad66ef424d248bb6b6 /gcc/ada/scng.adb | |
parent | 27e34b58d808be4caa3eaa3fc85b26fddf3e7d10 (diff) | |
download | ppe42-gcc-927486d7983acb1d0ea06d8bc9862ff4c407a360.tar.gz ppe42-gcc-927486d7983acb1d0ea06d8bc9862ff4c407a360.zip |
2008-04-08 Robert Dewar <dewar@adacore.com>
* scng.adb (Scan_Identifier): Handle case of identifier starting with
wide character using UTF-8 encoding.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134047 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/scng.adb')
-rw-r--r-- | gcc/ada/scng.adb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ada/scng.adb b/gcc/ada/scng.adb index 8322a249f81..f7f68e634db 100644 --- a/gcc/ada/scng.adb +++ b/gcc/ada/scng.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2008, 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- -- @@ -2189,8 +2189,10 @@ package body Scng is -- is active, so if we find an ESC character we know that we have a -- wide character. - if Identifier_Char (Source (Scan_Ptr)) then - + if Identifier_Char (Source (Scan_Ptr)) + or else (Source (Scan_Ptr) in Upper_Half_Character + and then Upper_Half_Encoding) + then -- Case of underline if Source (Scan_Ptr) = '_' then |