Scanner.st
changeset 1294 31c8cc483db9
parent 1293 c33753e28dbf
child 1298 878c759441d1
--- a/Scanner.st	Thu Jul 25 16:08:35 2002 +0200
+++ b/Scanner.st	Thu Jul 25 16:14:36 2002 +0200
@@ -1533,27 +1533,23 @@
         ].
 
         (nextChar == $#) ifTrue:[
+            nextChar := source nextPeek.
             AllowDolphinExtensions == true ifTrue:[
                 "dolphin does computed literals as ##( ... )"
-                nextChar := source nextPeek.
                 nextChar == $( ifTrue:[
                     source next.    
                     token := '##('.
                     tokenType := #HashHashLeftParen.
                     ^ tokenType
                 ].
-                token := '##'.
-                tokenType := #HashHash.
-                ^ tokenType
             ].
-
-            nextChar := source nextPeek.
             nextChar == $[ ifTrue:[
                 source next.    
                 token := '##('.
                 tokenType := #HashHashLeftBrack.
                 ^ tokenType
             ].
+
             token := '##'.
             tokenType := #HashHash.
             ^ tokenType
@@ -2285,6 +2281,6 @@
 !Scanner class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.147 2002-07-25 14:08:35 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.148 2002-07-25 14:14:36 cg Exp $'
 ! !
 Scanner initialize!