fix(kotlin): use _import for type captures

This commit is contained in:
Sal Bakraa 2022-01-06 03:42:40 +03:00 committed by Stephan Seitz
parent b963e9f994
commit a2629ebcc0

View file

@ -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