Skip to content

Commit

Permalink
fix: Syntax.unsetTrailing (#5170)
Browse files Browse the repository at this point in the history
Fixes #4958

(cherry picked from commit dcdbb9b)
  • Loading branch information
Kha committed Aug 26, 2024
1 parent b8aefe3 commit d017635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Init/Meta.lean
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,9 @@ def getSubstring? (stx : Syntax) (withLeading := true) (withTrailing := true) :
partial def setTailInfoAux (info : SourceInfo) : Syntax → Option Syntax
| atom _ val => some <| atom info val
| ident _ rawVal val pre => some <| ident info rawVal val pre
| node info k args =>
| node info' k args =>
match updateLast args (setTailInfoAux info) args.size with
| some args => some <| node info k args
| some args => some <| node info' k args
| none => none
| _ => none

Expand Down

0 comments on commit d017635

Please sign in to comment.