mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
Introduce Token element (#7048)
This commit is contained in:
parent
2f3a950f6f
commit
c05e4628b1
78 changed files with 733 additions and 723 deletions
|
@ -15,9 +15,9 @@ impl FormatNodeRule<Keyword> for FormatKeyword {
|
|||
} = item;
|
||||
// Comments after the `=` or `**` are reassigned as leading comments on the value.
|
||||
if let Some(arg) = arg {
|
||||
write!(f, [arg.format(), text("="), value.format()])
|
||||
write!(f, [arg.format(), token("="), value.format()])
|
||||
} else {
|
||||
write!(f, [text("**"), value.format()])
|
||||
write!(f, [token("**"), value.format()])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue