Add support for more whitespace positions within expressions #327
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As reported in #315 at the moment whitespaces aren't allowed in many places where normal Rust would allow them.
This pull request adds support for whitespaces in:
x ( 1 , 2 )
;module :: element
;x . y . z
;x| filter ( 1 , 2 )
;! false
and- 42
;Also change some tests to include whitespaces in various positions.
As noted in #315 at the moment there is a language ambiguity regarding bitwise or and filter application. As such at the moment the pipe character
|
should not be preceded by a space when wanting filter application, and must always be preceded when wanting bitwise or. (This is not a deficiency of the current patch.)