docs and line/offset numbers in paths

This commit is contained in:
Jana Dönszelmann 2026-04-02 09:41:35 +02:00
parent af09bcd403
commit 2d9a029130
No known key found for this signature in database
9 changed files with 366 additions and 116 deletions

View file

@ -161,8 +161,9 @@ impl<'a> Display for Token<'a> {
impl<'a> Display for Delimited<'a> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
if let Some(prefix) = &self.prefix {
if let Some((prefix, space)) = &self.prefix {
write!(f, "{prefix}")?;
write!(f, "{space}")?;
}
self.delimiter.fmt_start(f)?;
write!(f, "{}", self.contents)?;