chore(language/go): remove custom tree-sitter highlight pattern

This pattern is part of the official highlight queries, and has been for
some time now.
This commit is contained in:
2024-08-06 23:10:44 +01:00
parent 224a6f659a
commit 2f17a18122

View File

@@ -66,11 +66,6 @@
(with-eval-after-load 'tree-sitter-langs
(tree-sitter-hl-add-patterns 'go
[
;; Highlight built-in functions with the built-in face, based on:
;; 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)$"))
;; Highlight struct/block keys as properties after field_identifier was
;; removed from the Go parser:
;; https://github.com/tree-sitter/tree-sitter-go/pull/71