Java scopes break when there are many Exceptions with a newline
alexr00 opened this issue · comments
Alex Ross commented
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