aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoah Peart2024-04-12 22:09:17 -0700
committerYuan Fu2024-04-15 21:31:51 -0700
commitb33fb3b69cb9d4bce3a8cd12771649b3c3945fb0 (patch)
tree96f54f88997822097502590d69b12aad462480a2
parent930c578c1042e6372e5433e31b2ea801315c01c9 (diff)
downloademacs-b33fb3b69cb9d4bce3a8cd12771649b3c3945fb0.tar.gz
emacs-b33fb3b69cb9d4bce3a8cd12771649b3c3945fb0.zip
Add font-locking for operators in go-ts-mode (bug#70361)
* lisp/progmodes/go-ts-mode.el (go-ts-mode--font-lock-settings): Add font-locking rule for Go operators.
-rw-r--r--lisp/progmodes/go-ts-mode.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el
index ad4b6baf205..b82bc2364dc 100644
--- a/lisp/progmodes/go-ts-mode.el
+++ b/lisp/progmodes/go-ts-mode.el
@@ -143,6 +143,10 @@
143 '((["," "." ";" ":"]) @font-lock-delimiter-face) 143 '((["," "." ";" ":"]) @font-lock-delimiter-face)
144 144
145 :language 'go 145 :language 'go
146 :feature 'operator
147 `([,@go-ts-mode--operators] @font-lock-operator-face)
148
149 :language 'go
146 :feature 'definition 150 :feature 'definition
147 `((function_declaration 151 `((function_declaration
148 name: (identifier) @font-lock-function-name-face) 152 name: (identifier) @font-lock-function-name-face)