java.tmbundle icon indicating copy to clipboard operation
java.tmbundle copied to clipboard

yield not recognized as a keyword

Open RMSD opened this issue 4 years ago • 1 comments

yield does not seem to be highlighted as a keyword (example github):

        String test = switch (eventType) {
            case CREATE -> Test1;
            case UPDATE -> {
                somethingElse = doSomething(input);
                yield Test2;
            }
            case DEACTIVATE -> Test3;
            default -> throw new RuntimeException("Example");
        };

RMSD avatar Aug 12 '21 23:08 RMSD

Screen Shot 2021-08-12 at 4 35 47 PM

Added image for posterity assuming GitHub updates their highlighting at some point.

RMSD avatar Aug 12 '21 23:08 RMSD