Skip to content

Comments

(JAVA) Add goto to be recognized as a keyword in Java#3963

Merged
joshgoebel merged 3 commits intohighlightjs:mainfrom
alvinsjoy:my-branch
Jan 12, 2024
Merged

(JAVA) Add goto to be recognized as a keyword in Java#3963
joshgoebel merged 3 commits intohighlightjs:mainfrom
alvinsjoy:my-branch

Conversation

@alvinsjoy
Copy link
Contributor

@alvinsjoy alvinsjoy commented Jan 12, 2024

Added goto to be recognised as a main keyword in Java.

Resolves #3962

Changes

Added goto to MAIN_KEYWORDS as Java keyword list specifies goto as a keyword.
image

Checklist

  • Added markup tests, or they don't apply here because goto is marked as "not used" by Java keyword list
  • Updated the changelog at CHANGES.md

@SouravH5409
Copy link

Nice bro

@github-actions
Copy link

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +15 B

View Changes
file base pr diff
es/core.min.js 8.17 KB 8.18 KB +2 B
es/highlight.min.js 8.17 KB 8.18 KB +2 B
es/languages/java.min.js 1.31 KB 1.31 KB +4 B
highlight.min.js 8.21 KB 8.21 KB +3 B
languages/java.min.js 1.32 KB 1.32 KB +4 B

@joshgoebel joshgoebel merged commit 200c09c into highlightjs:main Jan 12, 2024
@joshgoebel
Copy link
Member

Thanks fo much for the help!

@alvinsjoy
Copy link
Contributor Author

You are welcome!

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 this pull request may close these issues.

(JAVA) Does not highlight the reserved keyword goto

3 participants