From eb3f263bfeae31b5aeb3380abec9f38b75173566 Mon Sep 17 00:00:00 2001 From: Viorel Craescu Date: Sat, 9 Jul 2022 15:58:03 +0300 Subject: add type def highlight, add field declaration highlight and remove constant highlight --- queries/go/highlights.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm index 2666602a..ee94324c 100644 --- a/queries/go/highlights.scm +++ b/queries/go/highlights.scm @@ -5,6 +5,7 @@ ; Identifiers (type_identifier) @type +(type_spec name: (type_identifier) @type.definition) (field_identifier) @property (identifier) @variable (package_identifier) @namespace @@ -15,9 +16,6 @@ ((identifier) @constant (#eq? @constant "_")) -((identifier) @constant - (#vim-match? @constant "^[A-Z][A-Z\\d_]+$")) - (const_spec name: (identifier) @constant) @@ -201,6 +199,7 @@ (keyed_element . (literal_element (identifier) @field)) +(field_declaration name: (field_identifier) @field) (comment) @comment -- cgit v1.2.3