about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyo Yoshida <low.ryoshida@gmail.com>2022-12-27 18:33:21 +0900
committerRyo Yoshida <low.ryoshida@gmail.com>2022-12-27 18:34:46 +0900
commit767351fb87688b45eaf1024cff6edf59afcfb8ef (patch)
tree2b1c950ccfe4c904e54e15aa8701bdef05a71bb4
parentec7148b0919a1d0a3b61a274acb5b6b6619a209e (diff)
downloadrust-767351fb87688b45eaf1024cff6edf59afcfb8ef.tar.gz
rust-767351fb87688b45eaf1024cff6edf59afcfb8ef.zip
mbe: treat `<-` as one punct
-rw-r--r--crates/mbe/src/tt_iter.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/mbe/src/tt_iter.rs b/crates/mbe/src/tt_iter.rs
index 16387bc896a..e216e5658b8 100644
--- a/crates/mbe/src/tt_iter.rs
+++ b/crates/mbe/src/tt_iter.rs
@@ -119,6 +119,7 @@ impl<'a> TtIter<'a> {
             }
             ('-' | '!' | '*' | '/' | '&' | '%' | '^' | '+' | '<' | '=' | '>' | '|', '=', _)
             | ('-' | '=' | '>', '>', _)
+            | ('<', '-', _)
             | (':', ':', _)
             | ('.', '.', _)
             | ('&', '&', _)