bors 790759fb11 Auto merge of #13854 - lowr:fix/mbe-glue-punct, r=Veykril
Support multi-character punct tokens in MBE

Fixes #11497

In the context of MBE, consecutive puncts are parsed as multi-character punct tokens whenever possible. For example, `:::` is parsed as ``[Punct(`::`), Punct(`:`)]`` and shouldn't get matched to patterns like `: : :` or `: ::`.

We have implemented this behavior only for when we match puncts against `tt` fragments, but not when we match puncts literally. This PR extracts the multi-character punct handling procedure into a separate method and extends its support for literal matching.

For good measure, this PR adds support for `<-` token, which is still [considered as one token in rustc](e396186407/compiler/rustc_ast/src/token.rs (L249)) despite the placement syntax having been removed.
2023-01-02 13:07:42 +00:00
..
2023-01-01 13:24:48 +01:00
2022-12-31 16:17:38 +09:00
2022-12-30 16:10:07 +02:00
2022-12-28 00:59:56 +09:00
2022-12-28 22:42:26 +00:00
2022-11-23 17:24:03 +02:00
2022-11-23 17:24:03 +02:00
2022-12-28 23:17:13 +00:00
2022-11-23 17:24:03 +02:00
2022-12-30 11:14:15 +00:00
2022-11-23 17:24:03 +02:00