# Vim completion script
# Language: C
# Maintainer: The Vim Project <https://github.com/vim/vim>
-# Last Change: 2025 Jul 24
+# Last Change: 2026 Feb 18
# Rewritten in Vim9 script by github user lacygoill
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
continue
endif
- # Use the tags file to find out if this is a typedef.
+ # Use the tags file to find out if this is a typedef or struct
var diclist: list<dict<any>> = taglist('^' .. tokens[tidx] .. '$')
for tagidx: number in len(diclist)->range()
continue
endif
+ # handle struct
+ if item['kind'] == 's'
+ res = StructMembers('struct:' .. tokens[tidx], items, all)
+ break
+ endif
+
+
# Only handle typedefs here.
if item['kind'] != 't'
continue
enddef
#}}}1
-# vim: noet sw=2 sts=2
+# vim: et sw=2 sts=2