Skip to content

Commit

Permalink
fix: remove use of new Java switch statements/expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneyJackson committed Oct 29, 2023
1 parent 1ce9cd5 commit 0bd93c5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Std/Token.pattern
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,15 @@ public class Token {
}
String what = "??";
switch(match.tokType) {
case SKIP -> what = "skip";
case TOKEN -> what = "token";
case LINE_TOGGLE -> what = "token (line toggle)";
case SKIP:
what = "skip";
break;
case TOKEN:
what = "token";
break;
case LINE_TOGGLE:
what = "token (line toggle)";
break;
}
System.out.println(
String.format("%s %s '%s'",what,match.toString(),match.pattern)
Expand Down

0 comments on commit 0bd93c5

Please sign in to comment.