Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yield not recognized as a keyword #61

Open
RMSD opened this issue Aug 12, 2021 · 1 comment · May be fixed by #62
Open

yield not recognized as a keyword #61

RMSD opened this issue Aug 12, 2021 · 1 comment · May be fixed by #62

Comments

@RMSD
Copy link

RMSD commented Aug 12, 2021

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
Copy link
Author

RMSD commented Aug 12, 2021

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

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

@RMSD RMSD linked a pull request Aug 12, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant