Skip to content

Commit

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

feat(queries/highlight): highlight built-in functions as @function.builtin
  • Loading branch information
aryx committed 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
@@ -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.