lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

Request to allow mutiline `@type` values

Open wauterboi opened this issue 2 years ago • 2 comments

Sometimes, a @type value can be very long, i.e.

---@type {filepath: string?, type: 'unknown'|'binary'|'stock'|'path', loader: function}

Of course, while I could clean-up the above by replacing type with its own alias, I still think it would be nice to be able to do this:

---@type {
---  filepath: string?,
---  type: 'unknown'|'binary'|'stock'|'path',
---  loader: function
---}

wauterboi avatar Jul 10 '23 21:07 wauterboi