projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
930c578
)
Add font-locking for operators in go-ts-mode (bug#70361)
author
Noah Peart
<noah.v.peart@gmail.com>
Sat, 13 Apr 2024 05:09:17 +0000
(22:09 -0700)
committer
Yuan Fu
<casouri@gmail.com>
Tue, 16 Apr 2024 04:31:51 +0000
(21:31 -0700)
* 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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/go-ts-mode.el
b/lisp/progmodes/go-ts-mode.el
index ad4b6baf2057e8553e06ccce5588cfbe2c59a6ae..b82bc2364dc964857caf924ddacfe012997ff0ae 100644
(file)
--- 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