mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
highlights(solidity): use @function.call/@method.call
This commit is contained in:
parent
d11d35fb61
commit
f9d1c68cf9
1 changed files with 3 additions and 3 deletions
|
|
@ -59,10 +59,10 @@
|
||||||
(modifier_invocation (identifier) @function)
|
(modifier_invocation (identifier) @function)
|
||||||
|
|
||||||
; Handles expressions like structVariable.g();
|
; Handles expressions like structVariable.g();
|
||||||
(call_expression . (member_expression (property_identifier) @method))
|
(call_expression . (member_expression (property_identifier) @method.call))
|
||||||
|
|
||||||
; Handles expressions like g();
|
; Handles expressions like g();
|
||||||
(call_expression . (identifier) @function)
|
(call_expression . (identifier) @function.call)
|
||||||
(function_definition
|
(function_definition
|
||||||
function_name: (identifier) @function)
|
function_name: (identifier) @function)
|
||||||
|
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
(parameter name: (identifier) @parameter)
|
(parameter name: (identifier) @parameter)
|
||||||
|
|
||||||
; Yul functions
|
; Yul functions
|
||||||
(yul_function_call function: (yul_identifier) @function)
|
(yul_function_call function: (yul_identifier) @function.call)
|
||||||
|
|
||||||
; Yul function parameters
|
; Yul function parameters
|
||||||
(yul_function_definition . (yul_identifier) @function (yul_identifier) @parameter)
|
(yul_function_definition . (yul_identifier) @function (yul_identifier) @parameter)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue