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)
committerYuan Fu <casouri@gmail.com>
Wed, 10 Apr 2024 05:43:52 +0000 (22:43 -0700)
commit859b4227e3de9f8e7bc26367540aa315cefc37dc
tree7d86b0a696c2b37b9fa5c079f41123c2c14fb32b
parent407e85ce139c2f0ab8bc7f9643ee7506a4e561a1
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.
lisp/progmodes/go-ts-mode.el