mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
Lua: highlight function definitions
In lua ```lua function foo() end ``` is syntax sugar for ```lua foo = function() end ```
This commit is contained in:
parent
d82e1735f2
commit
989fc7aa6c
1 changed files with 5 additions and 0 deletions
|
|
@ -123,6 +123,11 @@
|
|||
(local_function (identifier) @function)
|
||||
(local_function ["function" "end"] @keyword.function)
|
||||
|
||||
(variable_declaration
|
||||
(variable_declarator (identifier) @function) (function_definition))
|
||||
(local_variable_declaration
|
||||
(variable_declarator (identifier) @function) (function_definition))
|
||||
|
||||
(function_definition ["function" "end"] @keyword.function)
|
||||
|
||||
(property_identifier) @property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue