Use new Tree-sitter captures API

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-05-25 16:02:43 -07:00
co-authored by Nathan Sobo
parent 43ddb6f640
commit 5d2ac3f4e4
8 changed files with 62 additions and 31 deletions
+2 -2
View File
@@ -1,5 +1,7 @@
(type_identifier) @type
(field_identifier) @property
(call_expression
function: [
(identifier) @function
@@ -9,8 +11,6 @@
field: (field_identifier) @function.method)
])
(field_identifier) @property
(function_item
name: (identifier) @function.definition)