From 23f4f52c50047a708cd2e6ae6697b16a4920b02f Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Sun, 16 Jul 2023 12:53:33 +0530 Subject: [PATCH] fix(editor): invalid syntax highlights for annotations in Java --- .../main/assets/editor/treesitter/java/highlights.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/editor/src/main/assets/editor/treesitter/java/highlights.scm b/editor/src/main/assets/editor/treesitter/java/highlights.scm index 60f1c74fe..4ba41511d 100644 --- a/editor/src/main/assets/editor/treesitter/java/highlights.scm +++ b/editor/src/main/assets/editor/treesitter/java/highlights.scm @@ -41,10 +41,11 @@ (annotation "@" @attribute - name: (identifier) @attribute - (annotation_argument_list - (element_value_pair - key: (identifier) @variable.field))) + name: (identifier) @attribute) + +(annotation_argument_list + (element_value_pair + key: (identifier) @variable.field)) (marker_annotation "@" @attribute