Add method to definitions in ECMA locals

In Telescope, function declarations were being exposed in the selector,
but not method definitions which are also a form of function
declaration.
This commit is contained in:
William Mathewson 2022-05-10 13:59:11 +01:00 committed by Stephan Seitz
parent 9ff4953f40
commit 81dd6c988c

View file

@ -26,6 +26,10 @@
((identifier) @definition.var)
(#set! definition.var.scope parent))
(method_definition
((property_identifier) @definition.var)
(#set! definition.var.scope parent))
; References
;------------