fixup! fix(struct_tags): edge case with structs declared as var
This commit is contained in:
parent
6dce63b3b1
commit
978e113cd8
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ function ts.get_struct_under_cursor(bufnr)
|
||||||
--- because in cases like `type ( T struct{}, U strict{} )`
|
--- because in cases like `type ( T struct{}, U strict{} )`
|
||||||
--- i will be choosing always last struct in the list
|
--- i will be choosing always last struct in the list
|
||||||
---
|
---
|
||||||
--- var_spec is for cases like `var x struct{}`
|
--- var_declaration is for cases like `var x struct{}`
|
||||||
--- short_var_declaration is for cases like `x := struct{}{}`
|
--- short_var_declaration is for cases like `x := struct{}{}`
|
||||||
return do_stuff(bufnr, {
|
return do_stuff(bufnr, {
|
||||||
"type_spec",
|
"type_spec",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue