From 38be6f9874185f7454ce0b55362956cf9ef563ac Mon Sep 17 00:00:00 2001 From: George Fraser Date: Sat, 22 Dec 2018 15:14:26 -0800 Subject: Polish --- lib/java.tmLanguage.json | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'lib') 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" } ] }, -- cgit v1.2.3