fix(ts)(julia): include namespace in function name if in declaration (#260)

This commit is contained in:
Steven Arcangeli 2023-06-24 10:01:49 -07:00
parent 603c805d2d
commit 4b6da0b074
2 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@
(function_definition
name: (field_expression
value: (_)
(identifier) @name)
(identifier)) @name
(#set! "kind" "Function")
) @type
@ -23,7 +23,7 @@
(short_function_definition
name: (field_expression
value: (_)
(identifier) @name)
(identifier)) @name
(#set! "kind" "Function")
) @type

View file

@ -97,7 +97,7 @@ describe("treesitter julia", function()
children = {
{
kind = "Function",
name = "myfunc",
name = "mod.myfunc",
level = 2,
lnum = 21,
col = 4,
@ -106,7 +106,7 @@ describe("treesitter julia", function()
},
{
kind = "Function",
name = "myfuncb",
name = "mod.myfuncb",
level = 2,
lnum = 22,
col = 4,