From: Dmitry Gutov Date: Mon, 6 Feb 2023 02:12:25 +0000 (+0200) Subject: go-ts-mode: Fix highlighting of function name in call_expression X-Git-Tag: emacs-29.0.90~486 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1fab91d852e;p=emacs.git go-ts-mode: Fix highlighting of function name in call_expression * lisp/progmodes/go-ts-mode.el (go-ts-mode--font-lock-settings): Remove :override from the 'property' rules and move them above 'variable' (bug#61302). Just like in rust-ts-mode. --- diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index e5b7bcca9aa..dbb08c81447 100644 --- a/lisp/progmodes/go-ts-mode.el +++ b/lisp/progmodes/go-ts-mode.el @@ -169,6 +169,11 @@ :feature 'type '([(package_identifier) (type_identifier)] @font-lock-type-face) + :language 'go + :feature 'property + '((field_identifier) @font-lock-property-face + (keyed_element (_ (identifier) @font-lock-property-face))) + :language 'go :feature 'variable '((identifier) @font-lock-variable-name-face) @@ -178,12 +183,6 @@ :override t '((escape_sequence) @font-lock-escape-face) - :language 'go - :feature 'property - :override t - '((field_identifier) @font-lock-property-face - (keyed_element (_ (identifier) @font-lock-property-face))) - :language 'go :feature 'error :override t