Skip to content

Conversation

@dustypomerleau
Copy link
Contributor

Variables were originally designed not to match after a dot, in order to avoid matching struct field access, however this resulted in variables that end ranges not being highlighted. In order to fix this we match a preceding dot, only if it's preceded by at least one other dot. Attempting to match on (\.{2,})? won't work, because the optional group allows struct field access to match even when one dot is present.

@dustypomerleau
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 7, 2020

@bors bors bot merged commit f3fe656 into rust-lang:master Nov 7, 2020
@dustypomerleau dustypomerleau deleted the range branch November 7, 2020 11:24
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