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:
parent
1fab91d852
commit
79ab62e0bb
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue