Skip to content

[Java] Syntax highlighting not working on multi-line method declaration #63137

@stanleynguyen

Description

@stanleynguyen

Syntax highlighting doesn't detect language component correctly if a method declaration spans over multiple lines. Here is an example (please only take note of the colors)

Expected:
capture1

Actual:
capture

  • VSCode Version: 1.29
  • OS Version: Both Windows 10 and MacOS Mojave

Steps to Reproduce:

  1. Declare a method with signature that's longer than line width limit
  2. Save and wait for the formatter to reformat it to multiple lines

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

Metadata

Metadata

Assignees

Labels

grammarSyntax highlighting grammar

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions