summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-12-22 15:14:26 -0800
committerGeorge Fraser <george@fivetran.com>2018-12-22 15:14:26 -0800
commit38be6f9874185f7454ce0b55362956cf9ef563ac (patch)
treefd20dac40e8adbc59155baff73edc8ea59dfa7f6 /lib
parentb4e4cb9072f382b7f98c9b755122f5c81addd32e (diff)
downloadjava-language-server-38be6f9874185f7454ce0b55362956cf9ef563ac.zip
Polish
Diffstat (limited to 'lib')
-rw-r--r--lib/java.tmLanguage.json20
1 files changed, 15 insertions, 5 deletions
diff --git a/lib/java.tmLanguage.json b/lib/java.tmLanguage.json
index 59ffbde..acd9277 100644
--- a/lib/java.tmLanguage.json
+++ b/lib/java.tmLanguage.json
@@ -5,13 +5,18 @@
"patterns": [
{
"begin": "\\b(package)\\b *",
+ "end": ";|$",
+ "name": "meta.package.java",
"beginCaptures": {
"1": {
"name": "keyword.other.package"
}
},
- "end": ";",
- "name": "meta.package.java",
+ "endCaptures": {
+ "0": {
+ "name": "keyword.other.semi"
+ }
+ },
"patterns": [
{
"include": "#type-name"
@@ -23,6 +28,8 @@
},
{
"begin": "\\b(import)\\b *\\b(static)?\\b ",
+ "end": ";|$",
+ "name": "meta.import.java",
"beginCaptures": {
"1": {
"name": "keyword.other.import"
@@ -31,8 +38,11 @@
"name": "storage.modifier.java"
}
},
- "end": ";",
- "name": "meta.import.java",
+ "endCaptures": {
+ "0": {
+ "name": "keyword.other.semi"
+ }
+ },
"contentName": "storage.modifier.import.java",
"patterns": [
{
@@ -521,7 +531,7 @@
},
{
"match": "\\b[a-z]\\w*\\b",
- "name": "storage.type.java"
+ "name": "variable.java"
}
]
},