summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-10-15 23:13:10 -0600
committerGeorge Fraser <george@fivetran.com>2018-12-02 12:17:04 -0800
commit85be6563762ece9e972bcc83f61aa4b9ce766658 (patch)
tree6d485e7630fddbfc65f8c093057b88e458182889 /lib
parent042c260965df94f93d89f7c6fb0f62a7152bf740 (diff)
downloadjava-language-server-85be6563762ece9e972bcc83f61aa4b9ce766658.zip
throws
Diffstat (limited to 'lib')
-rw-r--r--lib/java.tmLanguage.json26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/java.tmLanguage.json b/lib/java.tmLanguage.json
index f4a74fd..777308f 100644
--- a/lib/java.tmLanguage.json
+++ b/lib/java.tmLanguage.json
@@ -151,6 +151,9 @@
"include": "#catch"
},
{
+ "include": "#throws"
+ },
+ {
"include": "#block"
},
{
@@ -315,6 +318,29 @@
}
]
},
+ "throws": {
+ "patterns": [
+ {
+ "begin": "\\b(throws)\\b",
+ "beginCaptures": {
+ "1": {
+ "name": "keyword.other.throws.java"
+ }
+ },
+ "end": "(?=[{;])",
+ "name": "meta.throws.java",
+ "patterns": [
+ {
+ "match": "(\\w+\\.)*[A-Z]\\w*",
+ "name": "entity.name.type.exception.java"
+ },
+ {
+ "include": "#comments"
+ }
+ ]
+ }
+ ]
+ },
"block": {
"patterns": [
{