fix(library/init/lean/parser/module): use updateLeading
This commit is contained in:
parent
74c46d2b35
commit
10a8822ac5
1 changed files with 2 additions and 1 deletions
|
|
@ -111,7 +111,8 @@ partial def parseFileAux (env : Environment) (ctx : ParserContextCore) : ModuleP
|
|||
| (stx, state, msgs) =>
|
||||
if isEOI stx then
|
||||
if msgs.isEmpty then
|
||||
pure (mkListNode stxs)
|
||||
let stx := mkListNode stxs;
|
||||
pure stx.updateLeading
|
||||
else do
|
||||
msgs.toList.mfor $ fun msg => IO.println msg;
|
||||
throw (IO.userError "failed to parse file")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue