go-ts-mode: Highlight variable declarations
* lisp/progmodes/go-ts-mode.el (go-ts-mode--font-lock-settings): Highlight variable declarations in 'definition' feature.
This commit is contained in:
@@ -135,7 +135,13 @@
|
||||
(field_declaration
|
||||
name: (field_identifier) @font-lock-property-face)
|
||||
(parameter_declaration
|
||||
name: (identifier) @font-lock-variable-name-face))
|
||||
name: (identifier) @font-lock-variable-name-face)
|
||||
(short_var_declaration
|
||||
left: (expression_list
|
||||
(identifier) @font-lock-variable-name-face
|
||||
("," (identifier) @font-lock-variable-name-face)*))
|
||||
(var_spec name: (identifier) @font-lock-variable-name-face
|
||||
("," name: (identifier) @font-lock-variable-name-face)*))
|
||||
|
||||
:language 'go
|
||||
:feature 'function
|
||||
|
||||
Reference in New Issue
Block a user