22 lines
741 B
Scheme
22 lines
741 B
Scheme
(comment) @comment
|
|
|
|
; Function declarations
|
|
(function_declarator declarator: (identifier) @definition)
|
|
|
|
; Class declarations
|
|
(struct_specifier name: (type_identifier) @definition.class body:(_))
|
|
(declaration type: (union_specifier name: (type_identifier) @definition.class))
|
|
|
|
; Type declarations
|
|
(type_definition declarator: (type_identifier) @definition.type)
|
|
(enum_specifier name: (type_identifier) @definition.type)
|
|
|
|
; ObjC Classes/Interfaces
|
|
; (class_interface name: (type_identifier) @definition.class)
|
|
; (category_interface name: (type_identifier) @definition.class)
|
|
; (protocol_declaration name: (protocol_name) @definition.interface)
|
|
|
|
; ObjC Methods
|
|
; (method_declaration) @definition.method
|
|
; (method_definition) @definition.method
|