summaryrefslogtreecommitdiff
path: root/Source/Dafny/Util.cs
diff options
context:
space:
mode:
authorGravatar leino <unknown>2014-10-20 18:42:33 -0700
committerGravatar leino <unknown>2014-10-20 18:42:33 -0700
commitc182b533a83dfee69828620f12a051feaab03eac (patch)
tree6223081d1ca9009afb83f0ff44758a196f9cfce9 /Source/Dafny/Util.cs
parent12242050fe7069f7dcf4e99f23b14f447e6b55e0 (diff)
Add char literals.
Disallow backslash from being part of identifier names.
Diffstat (limited to 'Source/Dafny/Util.cs')
-rw-r--r--Source/Dafny/Util.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Dafny/Util.cs b/Source/Dafny/Util.cs
index d2377a76..bc4017c0 100644
--- a/Source/Dafny/Util.cs
+++ b/Source/Dafny/Util.cs
@@ -125,12 +125,12 @@ namespace Microsoft.Dafny {
case 'r': special = '\r'; break;
case 't': special = '\t'; break;
case 'u':
- int ch = HexValue(p[i + 1]);
- ch = 16 * ch + HexValue(p[i + 2]);
+ int ch = HexValue(p[i + 2]);
ch = 16 * ch + HexValue(p[i + 3]);
ch = 16 * ch + HexValue(p[i + 4]);
+ ch = 16 * ch + HexValue(p[i + 5]);
yield return (char)ch;
- i += 5;
+ i += 6;
continue;
default:
break;