Skip to content

Commit 4753622

Browse files
authored
Merge pull request #1610 from dtolnay/sortpunct
Sort tokens in the same order between custom_punctuation_len and Token macro
2 parents f104427 + 36a7f67 commit 4753622

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

src/custom_punctuation.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -237,50 +237,50 @@ macro_rules! custom_punctuation_repr {
237237
#[macro_export]
238238
#[rustfmt::skip]
239239
macro_rules! custom_punctuation_len {
240-
($mode:ident, +) => { 1 };
241-
($mode:ident, +=) => { 2 };
242240
($mode:ident, &) => { 1 };
243241
($mode:ident, &&) => { 2 };
244242
($mode:ident, &=) => { 2 };
245243
($mode:ident, @) => { 1 };
246-
($mode:ident, !) => { 1 };
247244
($mode:ident, ^) => { 1 };
248245
($mode:ident, ^=) => { 2 };
249246
($mode:ident, :) => { 1 };
250-
($mode:ident, ::) => { 2 };
251247
($mode:ident, ,) => { 1 };
252-
($mode:ident, /) => { 1 };
253-
($mode:ident, /=) => { 2 };
254248
($mode:ident, .) => { 1 };
255249
($mode:ident, ..) => { 2 };
256250
($mode:ident, ...) => { 3 };
257251
($mode:ident, ..=) => { 3 };
258252
($mode:ident, =) => { 1 };
259253
($mode:ident, ==) => { 2 };
254+
($mode:ident, =>) => { 2 };
260255
($mode:ident, >=) => { 2 };
261256
($mode:ident, >) => { 1 };
257+
($mode:ident, <-) => { 2 };
262258
($mode:ident, <=) => { 2 };
263259
($mode:ident, <) => { 1 };
264-
($mode:ident, *=) => { 2 };
260+
($mode:ident, -) => { 1 };
261+
($mode:ident, -=) => { 2 };
265262
($mode:ident, !=) => { 2 };
263+
($mode:ident, !) => { 1 };
266264
($mode:ident, |) => { 1 };
267265
($mode:ident, |=) => { 2 };
268266
($mode:ident, ||) => { 2 };
267+
($mode:ident, ::) => { 2 };
268+
($mode:ident, %) => { 1 };
269+
($mode:ident, %=) => { 2 };
270+
($mode:ident, +) => { 1 };
271+
($mode:ident, +=) => { 2 };
269272
($mode:ident, #) => { 1 };
270273
($mode:ident, ?) => { 1 };
271274
($mode:ident, ->) => { 2 };
272-
($mode:ident, <-) => { 2 };
273-
($mode:ident, %) => { 1 };
274-
($mode:ident, %=) => { 2 };
275-
($mode:ident, =>) => { 2 };
276275
($mode:ident, ;) => { 1 };
277276
($mode:ident, <<) => { 2 };
278277
($mode:ident, <<=) => { 3 };
279278
($mode:ident, >>) => { 2 };
280279
($mode:ident, >>=) => { 3 };
280+
($mode:ident, /) => { 1 };
281+
($mode:ident, /=) => { 2 };
281282
($mode:ident, *) => { 1 };
282-
($mode:ident, -) => { 1 };
283-
($mode:ident, -=) => { 2 };
283+
($mode:ident, *=) => { 2 };
284284
($mode:ident, ~) => { 1 };
285285
(lenient, $tt:tt) => { 0 };
286286
(strict, $tt:tt) => {{ $crate::custom_punctuation_unexpected!($tt); 0 }};

0 commit comments

Comments
 (0)