fix: fixes #2006
This commit is contained in:
parent
069f08e3a3
commit
6fea2946c2
3 changed files with 3 additions and 1 deletions
|
|
@ -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
1
tests/lean/2006.lean
Normal file
|
|
@ -0,0 +1 @@
|
|||
/-
|
||||
1
tests/lean/2006.lean.expected.out
Normal file
1
tests/lean/2006.lean.expected.out
Normal file
|
|
@ -0,0 +1 @@
|
|||
2006.lean:2:0: error: unterminated comment
|
||||
Loading…
Add table
Reference in a new issue