From 290a5968b85da38fe5429d4fa84a6989d6c91283 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 1 Jun 2024 17:47:13 +0300 Subject: [PATCH] go-ts-mode: Highlight variadic function parameter names * lisp/progmodes/go-ts-mode.el (go-ts-mode--font-lock-settings): Add matcher for variadic parameter declarations. (cherry picked from commit d91ad9be5a72974784e0552069020c3ae0bc830e) --- lisp/progmodes/go-ts-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index 43f7e042590..2d3e6aac090 100644 --- a/lisp/progmodes/go-ts-mode.el +++ b/lisp/progmodes/go-ts-mode.el @@ -175,6 +175,8 @@ name: (field_identifier) @font-lock-property-name-face) (parameter_declaration name: (identifier) @font-lock-variable-name-face) + (variadic_parameter_declaration + name: (identifier) @font-lock-variable-name-face) (short_var_declaration left: (expression_list (identifier) @font-lock-variable-name-face -- 2.39.2