add type def highlight, add field declaration highlight and remove constant highlight

This commit is contained in:
Viorel Craescu 2022-07-09 15:58:03 +03:00 committed by Stephan Seitz
parent 559f2e7568
commit eb3f263bfe

View file

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