From a80570c81bf15c9afcf8e2470ab06f60f7a8183d Mon Sep 17 00:00:00 2001
From: David Tolnay <dtolnay@gmail.com>
Date: Tue, 12 Sep 2023 23:32:31 -0600
Subject: [PATCH] Parse rustc's representation of macro expansion error

---
 src/lit.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lit.rs b/src/lit.rs
index 4f36cf50b..4bb2e6a8e 100644
--- a/src/lit.rs
+++ b/src/lit.rs
@@ -1089,6 +1089,10 @@ mod value {
                 // c"...", cr"...", cr#"..."#
                 // TODO: add a Lit::CStr variant?
                 b'c' => return Lit::Verbatim(token),
+                b'(' => {
+                    assert_eq!(repr, "(/*ERROR*/)");
+                    return Lit::Verbatim(token);
+                }
                 _ => {}
             }