2022-06-03 22:09:53 +02:00
|
|
|
; Functions {{{
|
|
|
|
(function_declaration
|
|
|
|
name: (identifier) @name) @definition.function
|
|
|
|
(primitive_declaration
|
|
|
|
name: (identifier) @name) @definition.function
|
|
|
|
|
|
|
|
(function_call
|
|
|
|
function: (identifier) @name) @reference.call
|
|
|
|
; }}}
|
|
|
|
|
2022-06-04 21:50:45 +02:00
|
|
|
; Class {{{
|
|
|
|
(class_declaration
|
|
|
|
name: (identifier) @name) @definition.class
|
|
|
|
(type_declaration
|
|
|
|
name: (identifier) @name
|
|
|
|
(class_type)) @definition.class
|
|
|
|
|
|
|
|
(new_expression
|
|
|
|
class: (type_identifier) @name) @reference.class
|
|
|
|
(extends_qualifier
|
|
|
|
super: (type_identifier) @name) @reference.class
|
|
|
|
; }}}
|
|
|
|
|
2022-06-04 21:42:23 +02:00
|
|
|
; Methods {{{
|
|
|
|
(method_declaration
|
|
|
|
name: (identifier) @name) @definition.method
|
|
|
|
|
|
|
|
(method_call
|
|
|
|
method: (identifier) @name) @reference.call
|
|
|
|
; }}}
|
|
|
|
|
2022-06-03 22:09:53 +02:00
|
|
|
; vim: sw=2 foldmethod=marker
|