Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Java scopes break when there are many Exceptions with a newline #205

@alexr00

Description

@alexr00

From @JoeyRxy microsoft/vscode#78445

Snippet. Notice that there is an newline in the catch clause between some exception types.

public static void main(String[] args) {
	try {
		// something
	} catch (NoSuchMethodException | SecurityException | 
InstantiationException | llegalAccessException | IllegalArgumentException | invocationTargetException e) {
		e.printStackTrace();
	}
}

Only the last exception type on each line get the scope:
storage.type.java
meta.function-call.java
source.java

The other exception types get scope:
meta.function-call.java
source.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions