Skip to content

Consider using a new Java grammar: Text block(JEP 378) breaks Java syntax highlighting #167913

Closed

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.73.1
  • OS Version: Windows 10 22H2 19045.2251

Steps to Reproduce:

Create a Java file with a text block that contains double quotes.
img-20221202-165011

Current Result
Notice the codes after text block are fully orange.

Expected Result
Syntax highlighting is correct.

Workaround
Add an escape character in each double quote.
img-20221202-184608

Activity

  1. RedCMD commented on Dec 2, 2022

    @RedCMD
    Contributor

    The current syntax highlighter doesn't support java Text Blocks
    prob should report to https://github.com/atom/language-java

  2. changed the title [-]Text block(JEP 378) breaks Java syntax highlighting[/-] [+]Consider using a new Java grammar: Text block(JEP 378) breaks Java syntax highlighting[/+] on Dec 5, 2022
  3. added
    feature-request
    grammar
    on Dec 5, 2022
  4. added this to the Backlog milestone on Dec 5, 2022
  5. alexr00 commented on Dec 5, 2022

    @alexr00
    Member

    Given that https://github.com/atom/language-java will be archived, I'm repurposing this issue for considering a new Java grammar.

  6. RedCMD commented on Dec 5, 2022

    @RedCMD
    Contributor

    Alex Ross (@alexr00) but that repo doesn't have textmate syntax highlighting??

  7. alexr00 commented on Dec 6, 2022

    @alexr00
    Member
  8. alexr00 commented on Jul 13, 2023

    @alexr00
    Member
  9. alexr00 commented on Dec 13, 2023

    @alexr00
    Member

    New grammar was adopted with #188361

  10. locked and limited conversation to collaborators on Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestgrammar

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions