recode: proper result for unmatched symbols;
authorwenzelm
Thu, 21 Aug 2008 15:27:28 +0200
changeset 27938 3d5b12f23f15
parent 27937 fdf77e7be01a
child 27939 41b1c0b769bf
recode: proper result for unmatched symbols;
src/Pure/General/symbol.scala
--- a/src/Pure/General/symbol.scala	Thu Aug 21 15:20:00 2008 +0200
+++ b/src/Pure/General/symbol.scala	Thu Aug 21 15:27:28 2008 +0200
@@ -60,9 +60,10 @@
         val c = text(i)
         if (min <= c && c <= max) {
           matcher.region(i, len).lookingAt
-          table.get(matcher.group) match {
+          val x = matcher.group
+          table.get(x) match {
             case Some(y) => result.append(y)
-            case None => result.append(c)
+            case None => result.append(x)
           }
           i = matcher.end
         }