From 549ae9ddfb5edeb5449f06be0863ed6995cf106e Mon Sep 17 00:00:00 2001 From: farhan443 Date: Wed, 13 Oct 2021 12:40:40 +0700 Subject: [PATCH] fix: remove redundant pattern --- src/languages/java.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/java.ts b/src/languages/java.ts index 7e5d866..60f0b35 100644 --- a/src/languages/java.ts +++ b/src/languages/java.ts @@ -12,7 +12,7 @@ export const Java: LanguagePattern[] = [ // List/ArrayList { pattern: /(List<\w+>|ArrayList<\w*>\s*\(.*\))(\s+[\w]+|;)/, type: 'keyword.variable' }, // class keyword - { pattern: /(public\s*)?class\s*(.*)+(\s)?\{/, type: 'keyword' }, + { pattern: /(public\s*)?class.*?\{/, type: 'keyword' }, // Array declaration. { pattern: /(\w+)(\[\s*\])+\s+\w+/, type: 'constant.array' }, // final keyword