Author: miguel
Date: 2007-02-11 12:15:05 -0500 (Sun, 11 Feb 2007)
New Revision: 72627
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/cs-tokenizer.cs
Log:
2007-02-11 Miguel de Icaza <[EMAIL PROTECTED]>
* cs-tokenizer.cs (xtoken): Correctly compute the column, it was
treating tabs as spaces.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-02-11 17:14:35 UTC (rev 72626)
+++ trunk/mcs/mcs/ChangeLog 2007-02-11 17:15:05 UTC (rev 72627)
@@ -1,3 +1,8 @@
+2007-02-11 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * cs-tokenizer.cs (xtoken): Correctly compute the column, it was
+ treating tabs as spaces.
+
2007-02-09 Marek Safar <[EMAIL PROTECTED]>
A fix for bug #80315 by [EMAIL PROTECTED] (Martin Voelkle)
Modified: trunk/mcs/mcs/cs-tokenizer.cs
===================================================================
--- trunk/mcs/mcs/cs-tokenizer.cs 2007-02-11 17:14:35 UTC (rev 72626)
+++ trunk/mcs/mcs/cs-tokenizer.cs 2007-02-11 17:15:05 UTC (rev 72627)
@@ -2399,9 +2399,13 @@
// Whether we have seen comments on the current line
bool comments_seen = false;
-
val = null;
for (;(c = getChar ()) != -1;) {
+ if (c == '\t'){
+ col = ((col + 8) / 8) * 8;
+ continue;
+ }
+
if (c == ' ' || c == '\t' || c == '\f' || c ==
'\v' || c == 0xa0)
continue;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches