Closed 0xc0 closed 5 years ago
Are there any other keywords available for the catch clause? Have you considered an option of including #storage-modifiers
? Can you add a unit test?
@sadikovi Updated to use #storage-modifiers
(better idea) and added a unit test
Description of the Change
The regex for the
catch
parameters currently does not supportfinal
, meaning thatfinal
is highlighted as a type. This change adds an optional group to account for the possibility of the Javafinal
modifier.Alternate Designs
None, as prepending the existing regex is a simple change.
Benefits
Correct syntax highlighting when
final
is withincatch
parametersPossible Drawbacks
None.
Applicable Issues
None.