mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
feat(ts): treesitter supports variables in python (#227)
This commit is contained in:
parent
5b788392ec
commit
1e0c546c2c
3 changed files with 16 additions and 0 deletions
|
@ -7,3 +7,8 @@
|
|||
name: (identifier) @name
|
||||
(#set! "kind" "Class")
|
||||
) @type
|
||||
|
||||
(assignment
|
||||
left: (_) @name
|
||||
(#set! "kind" "Variable")
|
||||
) @type
|
||||
|
|
|
@ -32,6 +32,15 @@ describe("treesitter python", function()
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "Variable",
|
||||
name = "var",
|
||||
level = 0,
|
||||
lnum = 9,
|
||||
col = 0,
|
||||
end_lnum = 9,
|
||||
end_col = 10,
|
||||
},
|
||||
})
|
||||
end)
|
||||
end)
|
||||
|
|
|
@ -5,3 +5,5 @@ def fn_1():
|
|||
class cl_1:
|
||||
def meth_1(self):
|
||||
pass
|
||||
|
||||
var = 'hi'
|
||||
|
|
Loading…
Reference in a new issue