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
@@ -979,34 +979,29 @@ object Scanners {
979
979
}
980
980
case _ =>
981
981
deffetchOther() =
982
-
if(ch =='\u21D2') {
982
+
if ch =='\u21D2'then
983
983
nextChar(); token =ARROW
984
984
report.deprecationWarning(em"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))
985
-
}
986
-
elseif (ch =='\u2190') {
985
+
elseif ch =='\u2190'then
987
986
nextChar(); token =LARROW
988
987
report.deprecationWarning(em"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))
989
-
}
990
-
elseif (isUnicodeIdentifierStart(ch)) {
988
+
elseif isUnicodeIdentifierStart(ch) then
991
989
putChar(ch)
992
990
nextChar()
993
991
getIdentRest()
994
-
if (ch =='"'&& token ==IDENTIFIER) token =INTERPOLATIONID
995
-
}
996
-
elseif (isSpecial(ch)) {
992
+
if ch =='"'&& token ==IDENTIFIERthen token =INTERPOLATIONID
993
+
elseif isSpecial(ch) then
997
994
putChar(ch)
998
995
nextChar()
999
996
getOperatorRest()
1000
-
}
1001
997
elseif isSupplementary(ch, isUnicodeIdentifierStart) then
0 commit comments