Skip to content

Conversation

@apiology
Copy link
Contributor

@apiology apiology commented Aug 4, 2025

Description

This matches behavior of https://yardoc.org/types. Literal symbols are also supported by RBS, sord and recent versions of Solargraph, so this also reduces interoperability friction between tools.

For instance, valid Solargraph annotations will cause errors in rubocop-yard, which uses YARD for parsing:

  lib/solargraph/complex_type/unique_type.rb:200:27: C: YARD/TagTypeSyntax: (SyntaxError) invalid character at :

Completed Tasks

  • I have read the Contributing Guide.
  • The pull request is complete (implemented / written).
  • Git commits have been cleaned up (squash WIP / revert commits).
  • I wrote tests and ran bundle exec rake locally (if code is attached to PR).

This matches behavior of https://yardoc.org/types. Literal symbols are
also supported by RBS, sord and recent versions of Solargraph, so this
also reduces interoperability friction between tools.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant