redhat-developer / redhat-developer/vscode-java

Text block with escape new line breaks syntax highlighting

Open
#3,488 2 comments 0 reactions 1 assignee View on GitHub

@hopehadfield is already working on this.

Since Feb 5, 2024.

bug highlighting
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

Adding the escape new line character \ to Java text blocks breaks syntax highlighting.

Environment
  • Operating System: Ubuntu 22.04
  • JDK version: 17
  • Visual Studio Code version: 1.86
  • Java extension version: 1.27.0
Steps To Reproduce
  1. Have a few Java text blocks and gradually add the escape new line character \ to see the bug in action.
Current Result

With escape new line characters \ - broken syntax highlighting:
image

Without escape new line characters \ - syntax highlighting is correct:
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.