diff options
| -rw-r--r-- | queries/go/highlights.scm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm index 2666602ac..ee94324c6 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 |
