more syntaxHighlighting
authorClaus Gittinger <cg@exept.de>
Tue, 31 Mar 1998 18:36:35 +0200
changeset 661 ffb42bda9e5a
parent 660 f68ddffc6921
child 662 5a0a832ac06c
more syntaxHighlighting
Scanner.st
--- a/Scanner.st	Tue Mar 31 14:00:31 1998 +0200
+++ b/Scanner.st	Tue Mar 31 18:36:35 1998 +0200
@@ -587,6 +587,11 @@
 markCommentFrom:pos1 to:pos2
 
     "Created: / 31.3.1998 / 13:34:45 / cg"
+!
+
+markStringFrom:pos1 to:pos2
+
+    "Created: / 31.3.1998 / 16:37:18 / cg"
 ! !
 
 !Scanner methodsFor:'error handling'!
@@ -1417,6 +1422,7 @@
         nextChar isNil ifTrue:[
             self syntaxError:'unexpected end-of-input in String'
                     position:pos to:(source position - 1).
+            self markStringFrom:pos to:source position-1.
             token := nil.
             tokenType := #EOF.
             ^ tokenType
@@ -1441,11 +1447,13 @@
             nextChar := source next
         ]
     ].
+    self markStringFrom:pos to:source position-1.
+
     tokenValue := token := string copyTo:(index - 1).
     tokenType := #String.
     ^ tokenType
 
-    "Modified: / 5.3.1998 / 02:55:01 / cg"
+    "Modified: / 31.3.1998 / 17:33:14 / cg"
 !
 
 nextToken
@@ -1690,6 +1698,6 @@
 !Scanner class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.76 1998-03-31 11:57:44 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.77 1998-03-31 16:36:35 cg Exp $'
 ! !
 Scanner initialize!