]> git.eshelyaron.com Git - emacs.git/commit
Add font-locking for variables in go-ts-mode range clauses (bug#71209)
authorNoah Peart <noah.v.peart@gmail.com>
Sun, 26 May 2024 12:34:34 +0000 (05:34 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sat, 1 Jun 2024 17:05:01 +0000 (19:05 +0200)
commit6ee5baa4a09a781648c06765f999eed5749bdfb2
treee0f53fb755cd119070f5e39574091b7f7d126a63
parentfc61466ab15a4fd1e49dbaff4a1db26d350c9e59
Add font-locking for variables in go-ts-mode range clauses (bug#71209)

* lisp/progmodes/go-ts-mode.el (go-ts-mode--font-lock-settings):
Add font-locking rule for variable names in range clauses.
* test/lisp/progmodes/go-ts-mode-tests.el (go-ts-test-font-lock):
Add font-locking test for go-ts-mode.
* test/lisp/progmodes/go-ts-mode-resources/font-lock.go: New file
for go-ts-mode font-locking tests.

(cherry picked from commit 302142189222f4a1ba75bc2c8ce00307c2499689)
lisp/progmodes/go-ts-mode.el
test/lisp/progmodes/go-ts-mode-resources/font-lock.go [new file with mode: 0644]
test/lisp/progmodes/go-ts-mode-tests.el