mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
fix function/end keywords not applied for every scope
This commit is contained in:
parent
95a7d24180
commit
b10a09ebc3
1 changed files with 7 additions and 3 deletions
|
|
@ -100,9 +100,13 @@
|
||||||
(spread) @constant ;; "..."
|
(spread) @constant ;; "..."
|
||||||
|
|
||||||
;; Functions
|
;; Functions
|
||||||
("function" @keyword.function
|
(function [(function_name) (identifier)] @function)
|
||||||
[(function_name) (identifier)] @function
|
(function ["function" "end"] @function)
|
||||||
"end" @keyword.function)
|
|
||||||
|
(local_function [(function_name) (identifier)] @function)
|
||||||
|
(local_function ["function" "end"] @function)
|
||||||
|
|
||||||
|
(function_definition ["function" "end"] @function)
|
||||||
|
|
||||||
(property_identifier) @property
|
(property_identifier) @property
|
||||||
(method) @method
|
(method) @method
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue