mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
feat(tera): highlight self function namespace as @module.builtin
This commit is contained in:
parent
e4fd63a84c
commit
33ccc7e8e8
1 changed files with 5 additions and 0 deletions
|
|
@ -122,6 +122,11 @@
|
|||
scope: (identifier)? @module
|
||||
name: (identifier) @function.call)
|
||||
|
||||
(call_expression
|
||||
scope: (identifier) @module.builtin
|
||||
name: (identifier) @function.call
|
||||
(#eq? @module.builtin "self"))
|
||||
|
||||
(call_expression
|
||||
name: (identifier) @function.builtin
|
||||
(#any-of? @function.builtin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue