Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Improve/Fix Block Parameter highlighting #514

Merged
merged 2 commits into from
Aug 17, 2019
Merged

Conversation

aleksmsd
Copy link
Contributor

@aleksmsd aleksmsd commented Aug 5, 2019

Current Master Branch shows this for Block Parameters lists:
image
image

Minor modifications to the grammar allow block parameters to be highlighted more consistently:
image
image

Added two new scopes:
variable.other.block.unused.ruby (to denote arguments that will go unused by the block, I've also kept the variable.other.constant.ruby that was previously applied to these so the highlighting stays even in the interim; meta.block.parameters.ruby to flesh out the detail of the scope.

Much of the matching for this was borrowed and modified off of the preexisting meta.function.method.with-arguments.ruby > variable.parameter.function.ruby scopes.

@wingrunr21 wingrunr21 merged commit 1d0bc70 into rubyide:master Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants