Skip to content

Commit

Permalink
Merge pull request tree-sitter#96 from jimeh/add-highlight-query-for-…
Browse files Browse the repository at this point in the history
…built-in-functions

feat(queries/highlight): highlight built-in functions as @function.builtin
  • Loading branch information
Yoann Padioleau authored Dec 6, 2022
2 parents 05900fa + 22d5b9c commit dfbef73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
; Function calls

(call_expression
function: (identifier) @function.builtin
(.match? @function.builtin "^(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)$"))

(call_expression
function: (identifier) @function)

Expand Down

0 comments on commit dfbef73

Please sign in to comment.