Skip to content

Create Java grammar and add textblock highlight support - #3200

Merged
rgrunber merged 2 commits into
redhat-developer:masterfrom
hopehadfield:2896-javatm
Jul 14, 2023
Merged

rgrunber merged 2 commits into
redhat-developer:masterfrom
hopehadfield:2896-javatm

Conversation

@hopehadfield

Copy link
Copy Markdown
Member

As a result of the original Java grammar resource for VSCode being made read-only as of December 2022, we have agreed to own the grammar in vscode-java (see microsoft/vscode#187725).

This is copied from https://github.com/microsoft/vscode/blob/main/extensions/java/syntaxes/java.tmLanguage.json and also includes a change that fixes #2896.

@hopehadfield
hopehadfield requested a review from rgrunber July 13, 2023 15:30
@rgrunber

Copy link
Copy Markdown
Member

CC'ing @fbricon @testforstephen for awareness. As per microsoft/vscode#187725 (comment) , this seems to be the way forward for now.

@rgrunber rgrunber left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks ready to merge. Thanks for splitting this up for easy tracking of the changes made since the initial copy from the vscode repo.

The grammar is MIT licensed, so there should be no problems. As a note, we also package https://github.com/redhat-developer/vscode-java/blob/master/language-support/properties/JavaProperties.tmLanguage.json , which comes from https://github.com/textmate/java.tmbundle/tree/master#license , which is also MIT licensed.

Based on the comments in the vscode platform PR/issue, there is a chance they may create a separate repo for this grammar. We should monitor for if/when that happens so we can make future changes directly there and avoid duplication. This would also ensure that whether you have vscode-java, or not, you get proper syntax support for Java files. Alternatively, if VSCode is open to pulling the grammar from our repo, that could also work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text block highlighting incorrect when it contains the substring: "/*

2 participants