Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Add highlighting support for range, return type and pattern binding operators #65

Closed
wants to merge 3 commits into from
Closed

Conversation

ghost
Copy link

@ghost ghost commented Jan 3, 2016

Hello there.

I have made some additions to the grammar matching rules to include:

  • Range operators (.., ...)
  • Function and closure return type operators (->)
  • Pattern name binding operator (@)

The additions should be compatible with #59, which attempts to refactor a single operator match rule into multiple ones with better semantics.

Sample test snippets for highlight checking have also been added to the test.rs file.

Also, just as a suggestion, it might be worthwhile refactoring a certain set of the operators under a common repository to reduce the number of individual includes required in some of the broader match rules like the one for function definitions.

@ghost ghost closed this Jan 31, 2016
This pull request was closed.
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.

1 participant