chore: remove workarounds
This commit is contained in:
parent
9ec583e808
commit
c005a9375a
1 changed files with 3 additions and 4 deletions
|
|
@ -100,11 +100,10 @@ match isLit? Parser.strInterpolantStrLitKind stx with
|
|||
|
||||
def expandStrInterpolantChunks (chunks : Array Syntax) (mkAppend : Syntax → Syntax → MacroM Syntax) (mkElem : Syntax → MacroM Syntax) : MacroM Syntax :=
|
||||
chunks.iterateM Syntax.missing fun i elem result => do
|
||||
let elem ← (match elem.isStrInterpolantStrLit? with
|
||||
let elem ← match elem.isStrInterpolantStrLit? with
|
||||
| none => mkElem elem
|
||||
| some str => mkElem (mkStxStrLit str))
|
||||
-- TODO: remove `(` after we write new elabDo
|
||||
(if i.val == 0 then pure elem else mkAppend result elem)
|
||||
| some str => mkElem (mkStxStrLit str)
|
||||
if i.val == 0 then pure elem else mkAppend result elem
|
||||
|
||||
end Lean.Syntax
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue