Add method tags
This commit is contained in:
parent
b1c2da4cb4
commit
746c8d27b8
|
@ -8,4 +8,12 @@
|
|||
function: (identifier) @name) @reference.call
|
||||
; }}}
|
||||
|
||||
; Methods {{{
|
||||
(method_declaration
|
||||
name: (identifier) @name) @definition.method
|
||||
|
||||
(method_call
|
||||
method: (identifier) @name) @reference.call
|
||||
; }}}
|
||||
|
||||
; vim: sw=2 foldmethod=marker
|
||||
|
|
11
test/tags/methods.tig
Normal file
11
test/tags/methods.tig
Normal file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
class A {
|
||||
method meth() = ()
|
||||
/* ^ definition.method */
|
||||
}
|
||||
|
||||
object := new A
|
||||
in
|
||||
object.meth()
|
||||
/* ^ reference.call */
|
||||
end
|
Loading…
Reference in a new issue