@@ -235,7 +235,7 @@ macro_rules! construct_language {
235235 }
236236
237237 fn language( & self ) -> TsLanguage {
238- $tslang
238+ $tslang. into ( )
239239 }
240240 }
241241 impl Assoc for $name {
@@ -266,7 +266,7 @@ macro_rules! construct_language {
266266 }
267267
268268 fn language( & self ) -> TsLanguage {
269- $tslang
269+ $tslang. into ( )
270270 }
271271 }
272272 impl Assoc for $name {
@@ -282,7 +282,7 @@ macro_rules! construct_language {
282282
283283#[ cfg( feature = "c" ) ]
284284
285- construct_language ! ( C ( tree_sitter_c:: language ( ) ) . [ c h] ?=
285+ construct_language ! ( C ( tree_sitter_c:: LANGUAGE ) . [ c h] ?=
286286 name -> "((function_definition
287287 declarator:
288288 (function_declarator declarator: (identifier) @method-name))
@@ -296,12 +296,12 @@ construct_language!(C(tree_sitter_c::language()).[c h]?=
296296
297297#[ cfg( feature = "ruby" ) ]
298298// TODO: also query for anonymous functions assigned to variables
299- construct_language ! ( Ruby ( tree_sitter_ruby:: language ( ) ) . [ rb] ?= "method-name" =>
299+ construct_language ! ( Ruby ( tree_sitter_ruby:: LANGUAGE ) . [ rb] ?= "method-name" =>
300300"((method name: (identifier) @method-name) @method-definition)" ) ;
301301
302302#[ cfg( feature = "c-sharp" ) ]
303303// TODO: also query for anonymous functions assigned to variables
304- construct_language ! ( CSharp ( tree_sitter_c_sharp:: language ( ) ) . [ cs] ?= "method-name" =>
304+ construct_language ! ( CSharp ( tree_sitter_c_sharp:: LANGUAGE ) . [ cs] ?= "method-name" =>
305305"((local_function_statement name: (identifier) @method-name) @method)
306306((method_declaration name: (identifier) @method-name) @method)"
307307
@@ -327,10 +327,10 @@ construct_language!(CSharp(tree_sitter_c_sharp::language()).[cs] ?= "method-name
327327// ((var_declaration (var_spec name: (identifier) @method-name )))
328328// ((const_declaration))
329329// ((short_var_declaration))
330- construct_language ! ( Go ( tree_sitter_go:: language ( ) ) . [ go] ?= "method-name" =>
330+ construct_language ! ( Go ( tree_sitter_go:: LANGUAGE ) . [ go] ?= "method-name" =>
331331"((function_declaration name: (identifier) @method-name) @method-definition)" ) ;
332332#[ cfg( feature = "rust" ) ]
333- construct_language ! ( Rust ( tree_sitter_rust:: language ( ) ) . [ rs] ?= "method-name" =>
333+ construct_language ! ( Rust ( tree_sitter_rust:: LANGUAGE ) . [ rs] ?= "method-name" =>
334334
335335 "((function_item
336336 name: (identifier) @method-name)
@@ -351,7 +351,7 @@ construct_language!(Rust(tree_sitter_rust::language()).[rs] ?= "method-name" =>
351351) ;
352352
353353#[ cfg( feature = "python" ) ]
354- construct_language ! ( Python ( tree_sitter_python:: language ( ) ) . [ py] ?= "method-name" =>
354+ construct_language ! ( Python ( tree_sitter_python:: LANGUAGE ) . [ py] ?= "method-name" =>
355355
356356 "((function_definition
357357 name: (identifier) @method-name)
@@ -365,7 +365,7 @@ construct_language!(Python(tree_sitter_python::language()).[py]?= "method-name"
365365) ;
366366
367367#[ cfg( feature = "java" ) ]
368- construct_language ! ( Java ( tree_sitter_java:: language ( ) ) . [ java] ?="method-name" =>
368+ construct_language ! ( Java ( tree_sitter_java:: LANGUAGE ) . [ java] ?="method-name" =>
369369"((method_declaration
370370 name: (identifier) @method-name)
371371 @method-definition
0 commit comments