Created
April 21, 2017 18:57
-
-
Save yegeniy/8596382448e34813a0d9575190889c7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- match: \b(catch)\b | |
scope: keyword.control.catch-exception.java | |
push: | |
- meta_scope: meta.catch.java | |
- match: (?=\)) | |
pop: true | |
- include: catch-clause | |
# https://docs.oracle.com/javase/specs/jls/se8/html/jls-14.html#jls-14.20 | |
# CatchClause: | |
# catch ( CatchFormalParameter ) Block | |
# CatchFormalParameter: | |
# {VariableModifier} CatchType VariableDeclaratorId | |
# CatchType: | |
# UnannClassType {| ClassType} | |
catch-clause: | |
- match: \( | |
push: | |
- include: annotations | |
- match: (?=\)) | |
pop: true | |
- match: \bfinal\b | |
scope: storage.modifier.java | |
- match: \| | |
scope: keyword.operator.logical.java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment