mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 16:30:02 -04:00
feat(faust): better highlighting of function calls, built-in variables, and member access
This commit is contained in:
parent
9ecf980277
commit
a29058fe8b
2 changed files with 14 additions and 12 deletions
|
|
@ -1,11 +1,17 @@
|
|||
; Identifiers
|
||||
(identifier) @variable
|
||||
|
||||
(process) @variable.builtin
|
||||
[
|
||||
"process"
|
||||
"effect"
|
||||
] @variable.builtin
|
||||
|
||||
(parameters
|
||||
(identifier)) @variable.parameter
|
||||
|
||||
(access
|
||||
definition: (identifier) @variable.member)
|
||||
|
||||
(global_metadata
|
||||
key: (identifier) @variable.member)
|
||||
|
||||
|
|
@ -49,16 +55,12 @@
|
|||
|
||||
(function_names) @function
|
||||
|
||||
[
|
||||
(lambda)
|
||||
(prefix)
|
||||
(prim1)
|
||||
(prim2)
|
||||
(prim3)
|
||||
(prim4)
|
||||
(prim5)
|
||||
(function_call)
|
||||
] @function.call
|
||||
(function_call
|
||||
(identifier) @function.call)
|
||||
|
||||
(function_call
|
||||
(access
|
||||
definition: (identifier) @function.call))
|
||||
|
||||
[
|
||||
"exp"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue