atom/language-java

Java scopes break when there are many Exceptions with a newline

Closed this issue · 1 comments

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

Looks similar to this: #186