From: Noah Peart Date: Sat, 13 Apr 2024 05:09:17 +0000 (-0700) Subject: Add font-locking for operators in go-ts-mode (bug#70361) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=64060bc8a828b24e658ed7e4037e0b34272b8c0c;p=emacs.git 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) --- 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