mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
fix(kotlin): use _import for type captures
This commit is contained in:
parent
b963e9f994
commit
a2629ebcc0
1 changed files with 4 additions and 4 deletions
|
|
@ -96,17 +96,17 @@
|
|||
; or a type. Classes can appear anywhere in the import path, unlike functions
|
||||
(import_header
|
||||
(identifier
|
||||
(simple_identifier) @type @import)
|
||||
(simple_identifier) @type @_import)
|
||||
(import_alias
|
||||
(type_identifier) @type)?
|
||||
(#lua-match? @import "^[A-Z]"))
|
||||
(#lua-match? @_import "^[A-Z]"))
|
||||
|
||||
(import_header
|
||||
(identifier
|
||||
(simple_identifier) @function @import .)
|
||||
(simple_identifier) @function @_import .)
|
||||
(import_alias
|
||||
(type_identifier) @function)?
|
||||
(#lua-match? @import "^[a-z]"))
|
||||
(#lua-match? @_import "^[a-z]"))
|
||||
|
||||
; TODO: Seperate labeled returns/breaks/continue/super/this
|
||||
; Must be implemented in the parser first
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue