banshee r4429 - trunk/banshee/src/Libraries/Hyena/Hyena.Json



Author: abock
Date: Mon Aug 25 20:57:45 2008
New Revision: 4429
URL: http://svn.gnome.org/viewvc/banshee?rev=4429&view=rev

Log:
Whitespace

Modified:
   trunk/banshee/src/Libraries/Hyena/Hyena.Json/Tokenizer.cs

Modified: trunk/banshee/src/Libraries/Hyena/Hyena.Json/Tokenizer.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena/Hyena.Json/Tokenizer.cs	(original)
+++ trunk/banshee/src/Libraries/Hyena/Hyena.Json/Tokenizer.cs	Mon Aug 25 20:57:45 2008
@@ -229,20 +229,21 @@
             if (peek == '.') {
                 value += LexFraction ();
             }
-                if (peek == 'e' || peek == 'E') {
+            
+            if (peek == 'e' || peek == 'E') {
+                ReadChar ();
+                if (peek == '-') {
                     ReadChar ();
-                    if (peek == '-') {
-                        ReadChar ();
-                        value /= Math.Pow (10, LexInt ());
-                    } else if (peek == '+') {
-                        ReadChar ();
-                        value *= Math.Pow (10, LexInt ());
-                    } else if (Char.IsDigit (peek)) {
-                        value *= Math.Pow (10, LexInt ());
-                    } else {
-                        InvalidSyntax ("Malformed exponent");
-                    }
+                    value /= Math.Pow (10, LexInt ());
+                } else if (peek == '+') {
+                    ReadChar ();
+                    value *= Math.Pow (10, LexInt ());
+                } else if (Char.IsDigit (peek)) {
+                    value *= Math.Pow (10, LexInt ());
+                } else {
+                    InvalidSyntax ("Malformed exponent");
                 }
+            }
             
             if (Char.IsDigit (peek)) {
                 InvalidSyntax ("Numbers starting with 0 must be followed by a . or not " +



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]