Skip to content

Commit

Permalink
[scripts] ,symbol-search: update go type captures
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Aug 17, 2023
1 parent dd70455 commit a21653a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/.local/bin/random/,symbol-search
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ mode="$1"

GO_FUNCTION='(function_declaration name: (identifier) @function)
(method_declaration name: (field_identifier) @function)'
GO_TYPE='(type_declaration (type_spec name: (type_identifier) @type))'
GO_TYPE='(type_declaration (type_spec name: (type_identifier) @type))
(var_spec name: (identifier) @type)'
GO_CALLS='(call_expression (selector_expression field: (field_identifier) @call))'

RUST_FUNCTION="(function_item name: (identifier) @function)"
Expand Down

0 comments on commit a21653a

Please sign in to comment.