File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/compiler/scala/tools/nsc/ast/parser Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -475,14 +475,17 @@ trait Scanners extends ScannersCommon {
475
475
if (token == INTERPOLATIONID ) {
476
476
nextRawChar()
477
477
if (ch == '\" ' ) {
478
- nextRawChar()
479
- if (ch == '\" ' ) {
478
+ val lookahead = lookaheadReader
479
+ lookahead.nextChar()
480
+ if (lookahead.ch == '\" ' ) {
481
+ nextRawChar() // now eat it
480
482
offset += 3
481
483
nextRawChar()
482
484
getStringPart(multiLine = true )
483
485
sepRegions = STRINGPART :: sepRegions // indicate string part
484
486
sepRegions = STRINGLIT :: sepRegions // once more to indicate multi line string part
485
487
} else {
488
+ nextChar()
486
489
token = STRINGLIT
487
490
strVal = " "
488
491
}
Original file line number Diff line number Diff line change
1
+
2
+ object X {
3
+ val x = s " "
4
+ val y = true
5
+ }
6
+
You can’t perform that action at this time.
0 commit comments