mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
Introduce @definition.import for Python/Javascript
This commit is contained in:
parent
0e80b89935
commit
b6df2329bd
3 changed files with 11 additions and 2 deletions
|
|
@ -8,6 +8,14 @@
|
|||
left: (expression_list
|
||||
(identifier) @definition.associated))))) @scope
|
||||
|
||||
; Imports
|
||||
(aliased_import
|
||||
alias: (identifier) @definition.import)
|
||||
(import_statement
|
||||
name: (dotted_name ((identifier) @definition.import)))
|
||||
(import_from_statement
|
||||
name: (dotted_name ((identifier) @definition.import)))
|
||||
|
||||
; Function with parameters, defines parameters
|
||||
(parameters
|
||||
(identifier) @definition.var)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue