From f8314a4df3bf5c2ebb0f8135e9e7ef04cee67303 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 7 Apr 2021 12:16:01 +0200 Subject: highlights(go): Highlight const_declaration Fixes #1157 --- queries/go/highlights.scm | 3 +++ queries/go/locals.scm | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm index 6aedd5e29..7ac6fd0d5 100644 --- a/queries/go/highlights.scm +++ b/queries/go/highlights.scm @@ -18,6 +18,9 @@ ((identifier) @constant (#vim-match? @constant "^[A-Z][A-Z\\d_]+$")) +(const_spec + name: (identifier) @constant) + ; Function calls (call_expression diff --git a/queries/go/locals.scm b/queries/go/locals.scm index a8e322217..45058a698 100644 --- a/queries/go/locals.scm +++ b/queries/go/locals.scm @@ -23,6 +23,10 @@ left: (expression_list (identifier) @definition.var))) +(const_declaration + (const_spec + name: (identifier) @definition.var)) + (type_declaration (type_spec name: (type_identifier) @definition.type)) -- cgit v1.2.3-70-g09d2