feat(lua): update highlights query for functions (#4919)

This commit is contained in:
Munif Tanjim 2023-06-08 04:12:54 +06:00 committed by GitHub
parent 46ddea9dec
commit a954f789aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,13 +180,40 @@
(parameters (identifier) @parameter)
(function_call name: (identifier) @function.call)
(function_declaration name: (identifier) @function)
(function_declaration
name: [
(identifier) @function
(dot_index_expression
field: (identifier) @function)
])
(function_call name: (dot_index_expression field: (identifier) @function.call))
(function_declaration name: (dot_index_expression field: (identifier) @function))
(function_declaration
name: (method_index_expression
method: (identifier) @method))
(method_index_expression method: (identifier) @method.call)
(assignment_statement
(variable_list .
name: [
(identifier) @function
(dot_index_expression
field: (identifier) @function)
])
(expression_list .
value: (function_definition)))
(table_constructor
(field
name: (identifier) @function
value: (function_definition)))
(function_call
name: [
(identifier) @function.call
(dot_index_expression
field: (identifier) @function.call)
(method_index_expression
method: (identifier) @method.call)
])
(function_call
(identifier) @function.builtin