Catch parameter not correctly highlighted when declared in new line or with a comment in between
Closed this issue · 4 comments
Vigilans commented
Description
Catch parameter name is highlighted as type when declared in new line or with a comment in between.
Steps to Reproduce
Paste the following code to editor:
public static void main(String[] args) {
try {
// something
} catch // this is a comment
(NoSuchMethodException |
SecurityException
| InstantiationException | llegalAccessException |
IllegalArgumentException | invocationTargetException
e
) {
e.printStackTrace();
}
}
public static void main(String[] args) {
try {
// something
} catch // this is a comment
(NoSuchMethodException |
SecurityException
| InstantiationException | llegalAccessException |
IllegalArgumentException | invocationTargetException /* comment */ e
) {
e.printStackTrace();
}
}
Expected behavior: e
is highlighted as variable.parameter.java
Actual behavior:
e
is highlighted as storage.type.java
:
Reproduces how often: Always
lkashef commented
Hello @Vigilans, thanks for the report, I have simplified the examples, let me know if you have any comments.
Closing bracket in on a new line.
try {} catch (ex e
){}
Comment between the type and variable name.
try {} catch (ex /**/ e){}