Skip to content

Conversation

@dten
Copy link

@dten dten commented Oct 26, 2017

the after-operator was to deal with type declarations of the style used in forward_ref_binop which contains type Output = <$t as $imp<$u>>::Output;

there is a more precise way to deal with this and it fixes other macro syntax highlighting such as in mdo (although it uses a custom operator so all bets are off)

fixes #219 a
image

@dten dten force-pushed the macro-syntax-improve branch 2 times, most recently from bff9204 to 871021d Compare October 29, 2017 13:44
@dten
Copy link
Author

dten commented Oct 29, 2017

this is rebased over #220

dten added 2 commits November 16, 2017 00:11
the after-operator was to deal with type declarations of the style used in `forward_ref_binop` which contains `type Output = <$t as $imp<$u>>::Output;`

there is a more precise way to deal with this and it fixes other macro syntax highlighting such as in mdo (although it uses a custom operator so all bets are off)
@dten dten force-pushed the macro-syntax-improve branch from 871021d to 3e6ebe5 Compare November 16, 2017 00:12
@jasonwilliams jasonwilliams merged commit 56ffe48 into rust-lang:master Nov 26, 2017
urschrei pushed a commit to urschrei/sublime-rust that referenced this pull request Jan 30, 2018
…ang#221)

* handle comments around parameters and types in general

* replace after-operator with check for type declaration syntax

the after-operator was to deal with type declarations of the style used in `forward_ref_binop` which contains `type Output = <$t as $imp<$u>>::Output;`

there is a more precise way to deal with this and it fixes other macro syntax highlighting such as in mdo (although it uses a custom operator so all bets are off)
@dten dten deleted the macro-syntax-improve branch July 22, 2018 12:07
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.

Syntax highlighting fails with custom operators

2 participants