Skip to content

Decorate production components with numbers & provide hover support over $n/$$ references in actions#40

Open
rail5 wants to merge 8 commits intobabyraging:masterfrom
rail5:master
Open

Decorate production components with numbers & provide hover support over $n/$$ references in actions#40
rail5 wants to merge 8 commits intobabyraging:masterfrom
rail5:master

Conversation

@rail5
Copy link

@rail5 rail5 commented Jan 15, 2026

yash-update-labels

This change provides editor decorations for each component of a production, showing $1:, $2:, etc

yash-update-hover

It also provides hover information over $n/$$ references inside the action body, displaying which production component is being referred to by this.

In order to accomplish this change:

  • The parse function now stores the separator bars in its components list so that these can be used to distinguish alternative productions for correct component numbering
  • A getParsedDocument method was added to the LanguageMode interface, so the already-parsed YaccDocument could be returned for use by the decoration function

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