Closed Vigilans closed 4 years ago
Relax the too restrictive begin expression for catch block for following reasons:
catch
(
Leave the catch keyword be would just be fine, since syntax highlighting should only be responsible for happy path.
Any other design would introduce new complexity.
More like a right hightlight for wrong syntax in code.
right
Fix #205 FIx https://github.com/microsoft/vscode-java-pack/issues/259
Description of the Change
Relax the too restrictive begin expression for catch block for following reasons:
catch
and(
would also break the highlighting.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
catch
catch
and '('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