fix: quote Name.anonymous
This commit is contained in:
parent
7d48d125da
commit
e6954bb4f3
1 changed files with 1 additions and 1 deletions
|
|
@ -792,7 +792,7 @@ instance : Quote Substring := ⟨fun s => Syntax.mkCApp `String.toSubstring #[qu
|
|||
|
||||
-- in contrast to `Name.toString`, we can, and want to be, precise here
|
||||
private def getEscapedNameParts? (acc : List String) : Name → Option (List String)
|
||||
| Name.anonymous => return acc
|
||||
| Name.anonymous => if acc.isEmpty then none else some acc
|
||||
| Name.str n s _ => do
|
||||
let s ← Name.escapePart s
|
||||
getEscapedNameParts? (s::acc) n
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue