atom / language-java

Java package for Atom
Other
62 stars 58 forks source link

Relax the too restrictive begin expression for catch block #217

Closed Vigilans closed 4 years ago

Vigilans commented 4 years ago

Description of the Change

Relax the too restrictive begin expression for catch block for following reasons:

Leave the catch keyword be would just be fine, since syntax highlighting should only be responsible for happy path.

Alternate Designs

Any other design would introduce new complexity.

Benefits

Possible Drawbacks

More like a right hightlight for wrong syntax in code.

Applicable Issues

Fix #205 FIx https://github.com/microsoft/vscode-java-pack/issues/259