highlights(go): Highlight const_declaration

Fixes #1157
This commit is contained in:
Stephan Seitz 2021-04-07 12:16:01 +02:00 committed by Thomas Vigouroux
parent bf0ae40cf4
commit f8314a4df3
2 changed files with 7 additions and 0 deletions

View file

@ -18,6 +18,9 @@
((identifier) @constant
(#vim-match? @constant "^[A-Z][A-Z\\d_]+$"))
(const_spec
name: (identifier) @constant)
; Function calls
(call_expression

View file

@ -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))