mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17: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
|
|
@ -159,7 +159,7 @@
|
|||
"revision": "a52579670e2b14ec03d410c3c980fafaf6d659c4"
|
||||
},
|
||||
"faust": {
|
||||
"revision": "4a8ada6eb1ac2ade8f310e3822b86301f439e463"
|
||||
"revision": "f3b9274514b5f9bf6b0dd4a01c30f9cc15c58bc4"
|
||||
},
|
||||
"fennel": {
|
||||
"revision": "9265a7d635d2f82a10738b9ad65ba8dd8bd4a84a"
|
||||
|
|
|
|||
|
|
@ -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