mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user