fix(repo-map): only return top level definitions (#659)
This commit is contained in:
@@ -1,18 +1,30 @@
|
||||
;; Capture top-level functions and struct definitions
|
||||
(var_declaration
|
||||
(var_spec) @variable
|
||||
(source_file
|
||||
(var_declaration
|
||||
(var_spec) @variable
|
||||
)
|
||||
)
|
||||
(const_declaration
|
||||
(const_spec) @variable
|
||||
(source_file
|
||||
(const_declaration
|
||||
(const_spec) @variable
|
||||
)
|
||||
)
|
||||
(function_declaration) @function
|
||||
(type_declaration
|
||||
(type_spec (struct_type)) @class
|
||||
(source_file
|
||||
(function_declaration) @function
|
||||
)
|
||||
(type_declaration
|
||||
(type_spec
|
||||
(struct_type
|
||||
(field_declaration_list
|
||||
(field_declaration) @class_variable)))
|
||||
(source_file
|
||||
(type_declaration
|
||||
(type_spec (struct_type)) @class
|
||||
)
|
||||
)
|
||||
(source_file
|
||||
(type_declaration
|
||||
(type_spec
|
||||
(struct_type
|
||||
(field_declaration_list
|
||||
(field_declaration) @class_variable)))
|
||||
)
|
||||
)
|
||||
(source_file
|
||||
(method_declaration) @method
|
||||
)
|
||||
(method_declaration) @method
|
||||
|
||||
Reference in New Issue
Block a user