fix: non-atomic identifiers in antiquotation splices
This commit is contained in:
parent
48b92a4486
commit
82497e3bcf
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ private partial def floatOutAntiquotTerms : Syntax → StateT (Syntax → TermEl
|
|||
| stx@(Syntax.node k args) => do
|
||||
if isAntiquot stx && !isEscapedAntiquot stx then
|
||||
let e := getAntiquotTerm stx
|
||||
if !e.isIdent then
|
||||
if !e.isIdent || !e.getId.isAtomic then
|
||||
return ← withFreshMacroScope do
|
||||
let a ← `(a)
|
||||
modify (fun cont stx => (`(let $a:ident := $e; $stx) : TermElabM _))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue