This commit is contained in:
Leonardo de Moura 2023-01-04 08:19:22 -08:00
parent 069f08e3a3
commit 6fea2946c2
3 changed files with 3 additions and 1 deletions

View file

@ -41,7 +41,7 @@ def parseHeader (inputCtx : InputContext) : IO (Syntax × ModuleParserState × M
let p := andthenFn whitespace Module.header.fn
let tokens := Module.updateTokens (getTokenTable dummyEnv)
let s := p.run inputCtx { env := dummyEnv, options := {} } tokens (mkParserState inputCtx.input)
let stx := s.stxStack.back
let stx := if s.stxStack.isEmpty then .missing else s.stxStack.back
match s.errorMsg with
| some errorMsg =>
let msg := mkErrorMessage inputCtx s.pos (toString errorMsg)

1
tests/lean/2006.lean Normal file
View file

@ -0,0 +1 @@
/-

View file

@ -0,0 +1 @@
2006.lean:2:0: error: unterminated comment