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