]> git.eshelyaron.com Git - emacs.git/commit
Update go-ts-mode to support latest tree-sitter-go grammar
authorYuan Fu <casouri@gmail.com>
Tue, 9 Apr 2024 03:20:25 +0000 (20:20 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 16:47:58 +0000 (18:47 +0200)
commitc7ecb467f1ca810b12e9dce8a29225212ae2806f
tree9ec59226624e108c87f125532c3b226552c3d506
parent3f588ea8b22f5fcf433ba4d49a88b77e7286e275
Update go-ts-mode to support latest tree-sitter-go grammar

tree-sitter-go changed method_spec to method_elem in
https://github.com/tree-sitter/tree-sitter-go/commit/b82ab803d887002a0af11f6ce63d72884580bf33

* lisp/progmodes/go-ts-mode.el:
(go-ts-mode--method-elem-supported-p): New function.
(go-ts-mode--font-lock-settings): Conditionally use method_elem or
method_spec in the query.

(cherry picked from commit 859b4227e3de9f8e7bc26367540aa315cefc37dc)
lisp/progmodes/go-ts-mode.el