Skip to content

Support symbol and string literal values #1627

@lekemula

Description

@lekemula

Hi,

I'm coming from an issue that I've opened in rubocop-yard here ksss/rubocop-yard#35

I would like to be able to use @param [:some_symbol, :some_other_symbol] or @param ['some_string', 'some_other_symbol'] without having rubocop complain. I mainly rely on YARD for better solargraph LSP code completion/navigation.

The reason why the plugin complains, apparently, is that it depends on YARD::Tags::TypesExplainer, which does not seem to support it (or it got broken at some point?).

Strangely enough, when I tried it on https://yardoc.org/types.html - which, as mentioned, it uses a similar implementation to TypesExplainer - it seems to work as expected? (although I don't understand how looking at the code)

Image

Would this make sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions