You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/parsing/Scanners.scala
+9-14Lines changed: 9 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -994,34 +994,29 @@ object Scanners {
994
994
}
995
995
case _ =>
996
996
deffetchOther() =
997
-
if(ch =='\u21D2') {
997
+
if ch =='\u21D2'then
998
998
nextChar(); token =ARROW
999
999
report.deprecationWarning("The unicode arrow `⇒` is deprecated, use `=>` instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.", sourcePos(offset))
1000
-
}
1001
-
elseif (ch =='\u2190') {
1000
+
elseif ch =='\u2190'then
1002
1001
nextChar(); token =LARROW
1003
1002
report.deprecationWarning("The unicode arrow `←` is deprecated, use `<-` instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.", sourcePos(offset))
1004
-
}
1005
-
elseif (isUnicodeIdentifierStart(ch)) {
1003
+
elseif isUnicodeIdentifierStart(ch) then
1006
1004
putChar(ch)
1007
1005
nextChar()
1008
1006
getIdentRest()
1009
-
if (ch =='"'&& token ==IDENTIFIER) token =INTERPOLATIONID
1010
-
}
1011
-
elseif (isSpecial(ch)) {
1007
+
if ch =='"'&& token ==IDENTIFIERthen token =INTERPOLATIONID
1008
+
elseif isSpecial(ch) then
1012
1009
putChar(ch)
1013
1010
nextChar()
1014
1011
getOperatorRest()
1015
-
}
1016
1012
elseif isSupplementary(ch, isUnicodeIdentifierStart) then
0 commit comments