[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b33fb3b69cb: Add font-locking for operators in go-ts-mode (bug#70
From: |
Yuan Fu |
Subject: |
master b33fb3b69cb: Add font-locking for operators in go-ts-mode (bug#70361) |
Date: |
Tue, 16 Apr 2024 01:58:12 -0400 (EDT) |
branch: master
commit b33fb3b69cb9d4bce3a8cd12771649b3c3945fb0
Author: Noah Peart <noah.v.peart@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
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.
---
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master b33fb3b69cb: Add font-locking for operators in go-ts-mode (bug#70361),
Yuan Fu <=