Skip to content

Add triple quote support for Java syntax highlighting - #187725

Closed
Hope Hadfield (hopehadfield) wants to merge 1 commit into
microsoft:mainfrom
hopehadfield:2896-textblock
Closed

Hope Hadfield (hopehadfield) wants to merge 1 commit into
microsoft:mainfrom
hopehadfield:2896-textblock

Conversation

@hopehadfield

@hopehadfield Hope Hadfield (hopehadfield) commented Jul 12, 2023 •

Copy link
Copy Markdown

Fixes redhat-developer/vscode-java#2896

Before:
Screenshot from 2023-07-12 14-44-21

After:
Screenshot from 2023-07-12 14-42-27

@hopehadfield

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree company="Red Hat"

@hopehadfield Hope Hadfield (hopehadfield) changed the title Add textblock support for Java syntax highlighting Add triple quote support for Java syntax highlighting Jul 12, 2023
@rgrunber

Copy link
Copy Markdown
Contributor

Note : The reason this change is being proposed directly in the generated java.tmLanguage.json is because the repository containing the original resource, https://github.com/atom/language-java/blob/master/grammars/java.cson, is now read-only since December 2022. The "information_for_contributors" may need to be updated also.

@hopehadfield
Hope Hadfield (hopehadfield) marked this pull request as ready for review July 12, 2023 18:49
@alexr00

Copy link
Copy Markdown
Member

Our path forward for the java grammar would then be to find a new repo to pull from, or to do as we have done with the CSS grammar and create a new repo ourselves. The issue for finding a new repo is here: #167913

@alexr00 Alex Ross (alexr00) added the under-discussion Issue is under discussion for relevance, priority, approach label Jul 13, 2023
@alexr00

Copy link
Copy Markdown
Member

Hope Hadfield (@hopehadfield) would you consider owning the Java grammar over in https://github.com/redhat-developer/vscode-java? VS Code would then pull the grammar in once per release or when we know there's a bugfix we need to pick up.

@hopehadfield

Copy link
Copy Markdown
Author

That sounds good. I'll create the grammar in https://github.com/redhat-developer/vscode-java with the triple quote support and link it here once it's merged.

@alexr00

Copy link
Copy Markdown
Member

Hope Hadfield (@hopehadfield) that's great news. Will you be able to license the grammar as MIT to make it easy for us to consume?

@hopehadfield

Copy link
Copy Markdown
Author

Alex Ross (@alexr00) just to confirm, the grammar is already MIT licensed as it originates from https://github.com/atom/language-java/blob/master/LICENSE.md? We have other MIT-licensed files in our repo, so there's no problem with that.

@alexr00

Copy link
Copy Markdown
Member

Hope Hadfield (@hopehadfield) yes, the grammar originates from https://github.com/atom/language-java/blob/master/LICENSE.md and my understanding is that it is already MIT licensed.

@hopehadfield

Copy link
Copy Markdown
Author

Alex Ross (@alexr00) great. You can find the grammar with the changes outlined in this PR at https://github.com/redhat-developer/vscode-java/blob/master/language-support/java/java.tmLanguage.json. Please let me know if there's anything else outstanding, otherwise I can close this

@alexr00

Copy link
Copy Markdown
Member

Hope Hadfield (@hopehadfield) awesome! Two comments:

  • The file still has the information_for_contributors and version pointing to the atom repo, which you may want to update.
  • Is there somewhere in the repo that indicates that the grammar file specifically is still MIT licensed?

@hopehadfield

Copy link
Copy Markdown
Author

Alex Ross (@alexr00) the above PR addresses both comments. information_for_contributors was updated and now reflects that the grammar file is MIT licensed.

@alexr00

Copy link
Copy Markdown
Member

Thanks Hope Hadfield (@hopehadfield)! We're adopting the new grammar here: #188361

I will forward issues that user file about the grammar to https://github.com/redhat-developer/vscode-java and will generally pull in updates once per month.

@hopehadfield
Hope Hadfield (hopehadfield) deleted the 2896-textblock branch July 26, 2023 13:54
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

under-discussion Issue is under discussion for relevance, priority, approach

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants