From 64060bc8a828b24e658ed7e4037e0b34272b8c0c Mon Sep 17 00:00:00 2001 From: Noah Peart Date: Fri, 12 Apr 2024 22:09:17 -0700 Subject: [PATCH] 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. (cherry picked from commit b33fb3b69cb9d4bce3a8cd12771649b3c3945fb0) --- lisp/progmodes/go-ts-mode.el | 4 ++++ 1 file changed, 4 insertions(+) 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 @@ -142,6 +142,10 @@ :feature 'delimiter '((["," "." ";" ":"]) @font-lock-delimiter-face) + :language 'go + :feature 'operator + `([,@go-ts-mode--operators] @font-lock-operator-face) + :language 'go :feature 'definition `((function_declaration -- 2.39.5