summaryrefslogtreecommitdiff
path: root/lisp/progmodes/go-ts-mode.el
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2023-02-06 04:12:25 +0200
committerDmitry Gutov <dgutov@yandex.ru>2023-02-06 04:12:25 +0200
commit1fab91d852e461ae8091e906b3c6c4f17143068d (patch)
tree08f0d47d4d8d6c9c8212bedee869a8e82032efba /lisp/progmodes/go-ts-mode.el
parent07ffe902c638d58b677820aa26c16db94510eca3 (diff)
downloademacs-1fab91d852e461ae8091e906b3c6c4f17143068d.tar.gz
emacs-1fab91d852e461ae8091e906b3c6c4f17143068d.tar.bz2
emacs-1fab91d852e461ae8091e906b3c6c4f17143068d.zip
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.
Diffstat (limited to 'lisp/progmodes/go-ts-mode.el')
-rw-r--r--lisp/progmodes/go-ts-mode.el11
1 files changed, 5 insertions, 6 deletions
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
@@ -170,6 +170,11 @@
'([(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)
@@ -179,12 +184,6 @@
'((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
'((ERROR) @font-lock-warning-face))