Author: miguel
Date: 2005-07-06 10:57:20 -0400 (Wed, 06 Jul 2005)
New Revision: 47008
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/cs-tokenizer.cs
Log:
2005-07-06 Miguel de Icaza <[EMAIL PROTECTED]>
* cs-tokenizer.cs (consume_identifier): Do not create strings to
compare if they start with __.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2005-07-06 14:44:46 UTC (rev 47007)
+++ trunk/mcs/mcs/ChangeLog 2005-07-06 14:57:20 UTC (rev 47008)
@@ -1,3 +1,8 @@
+2005-07-06 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * cs-tokenizer.cs (consume_identifier): Do not create strings to
+ compare if they start with __.
+
2005-07-06 Raja R Harinath <[EMAIL PROTECTED]>
* statement.cs (Switch.SwitchGoverningType): Only look at
Modified: trunk/mcs/mcs/cs-tokenizer.cs
===================================================================
--- trunk/mcs/mcs/cs-tokenizer.cs 2005-07-06 14:44:46 UTC (rev 47007)
+++ trunk/mcs/mcs/cs-tokenizer.cs 2005-07-06 14:57:20 UTC (rev 47008)
@@ -1880,7 +1880,7 @@
identifiers [pos] = new CharArrayHashtable
(pos);
val = new String (id_builder, 0, pos);
- if (RootContext.Version == LanguageVersion.ISO_1 &&
((string)val).IndexOf ("__") != -1) {
+ if (RootContext.Version == LanguageVersion.ISO_1 &&
id_builder [0] == '_' && id_builder [1] == '_') {
Report.Error (1638, Location,
"`{0}': Any identifier with double
underscores cannot be used when ISO language version mode is specified", val);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches