Skip to content

Commit

Permalink
Merge pull request #685 from ppedrot/stream_error_to_gramlib
Browse files Browse the repository at this point in the history
Adapt w.r.t. coq/coq#17136.
  • Loading branch information
ppedrot authored Nov 9, 2023
2 parents e2ac4a9 + 52e93f5 commit fd291f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions language-server/dm/document.ml
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ let rec parse_more synterp_state stream raw parsed errors =
let loc = Loc.get_loc @@ info in
handle_parse_error start (loc, Pp.string_of_ppcmds @@ CErrors.iprint_no_report (e,info))
end
| exception (Stream.Error msg as exn) ->
| exception (Grammar.Error msg as exn) ->
let loc = Loc.get_loc @@ Exninfo.info exn in
junk_sentence_end stream;
handle_parse_error start (loc,msg)
Expand Down Expand Up @@ -375,4 +375,4 @@ module Internal = struct
sentence.start
sentence.stop

end
end

0 comments on commit fd291f5

Please sign in to comment.