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

(JAVA) Does not highlight the reserved keyword goto #3962

Closed
alvinsjoy opened this issue Jan 12, 2024 · 1 comment · Fixed by #3963
Closed

(JAVA) Does not highlight the reserved keyword goto #3962

alvinsjoy opened this issue Jan 12, 2024 · 1 comment · Fixed by #3963
Labels
bug help welcome Could use help from community language

Comments

@alvinsjoy
Copy link
Contributor

Describe the issue
The goto keyword is actually reserved in Java but it's not used and has no functionality. Highlight.js does not highlight the reserved keyword goto.
Image below shows the demo page of the highlight.js website.
image
You can see that goto is not highlighted.
Whereas the image below shows how goto is highlighted in the Visual Studio Code editor.
image

Which language seems to have the issue?

Java

Are you using highlight or highlightAuto?

highlight

Sample Code to Reproduce

As goto is actually a useless keyword, you can just type in goto after selecting the language as Java.

Expected behavior

As you can see the screenshot of Visual Studio Code editor above, the goto function must be highlighted.
Additional context

@alvinsjoy alvinsjoy added bug help welcome Could use help from community language labels Jan 12, 2024
@joshgoebel
Copy link
Member

Seems simple enough. We'd love a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help welcome Could use help from community language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants