chore(language/go): move custom tree-sitter query to golang module

Instead of keeping the custom Go specific tree-sitter query in the
tree-sitter module, move it the golang module.
This commit is contained in:
2022-10-05 00:09:25 +01:00
parent d1dd30d8c6
commit 3b280e2d4c
2 changed files with 11 additions and 9 deletions

View File

@@ -11,15 +11,7 @@
(use-package tree-sitter-langs
:hook
(tree-sitter-after-on . tree-sitter-hl-mode)
:config
(tree-sitter-hl-add-patterns 'go
;; from: https://github.com/tree-sitter/tree-sitter-go/pull/61
[(call_expression
function: (identifier) @function.builtin
(.match? @function.builtin "^(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)$"))])
)
(tree-sitter-after-on . tree-sitter-hl-mode))
(provide 'siren-tree-sitter)
;;; siren-tree-sitter.el ends here