File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ abstract class CharArrayReader { self =>
39
39
final def nextChar (): Unit = {
40
40
val idx = charOffset
41
41
lastCharOffset = idx
42
+ charOffset = idx + 1
42
43
if (idx >= buf.length) {
43
44
ch = SU
44
45
} else {
45
46
val c = buf(idx)
46
47
ch = c
47
- charOffset = idx + 1
48
48
if (c == '\\ ' ) potentialUnicode()
49
49
else if (c < ' ' ) { skipCR(); potentialLineEnd() }
50
50
}
@@ -59,12 +59,12 @@ abstract class CharArrayReader { self =>
59
59
final def nextRawChar (): Unit = {
60
60
val idx = charOffset
61
61
lastCharOffset = idx
62
+ charOffset = idx + 1
62
63
if (idx >= buf.length) {
63
64
ch = SU
64
65
} else {
65
66
val c = buf(charOffset)
66
67
ch = c
67
- charOffset = idx + 1
68
68
if (c == '\\ ' ) potentialUnicode()
69
69
}
70
70
}
You can’t perform that action at this time.
0 commit comments