Lua: highlight function definitions

In lua

```lua
function foo() end
```

is syntax sugar for

```lua
foo = function() end
```
This commit is contained in:
Santos Gallegos 2021-07-07 08:49:36 -05:00 committed by Thomas Vigouroux
parent d82e1735f2
commit 989fc7aa6c

View file

@ -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