Skip to content

Commit 19417e2

Browse files
authored
Merge pull request #1068 from SkySkimmer/dirpath-full-path
Adapt to rocq-prover/rocq#20371 (dirpath_of_module -> path_of_module)
2 parents ccc5f15 + 5365bba commit 19417e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

language-server/language/hover.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,13 @@ let ref_info env _sigma ref udecl =
262262
String.concat "\n\n---\n\n" @@ [md_code_block @@ compactify @@ Pp.string_of_ppcmds typ]@args@
263263
[Format.sprintf "**%s** %s" (pr_globref_kind ref) (Pp.string_of_ppcmds path)]
264264

265+
[%%if coq = "8.18" || coq = "8.19" || coq = "8.20" || coq = "9.0"]
265266
let mod_info mp =
266267
md_code_block @@ Format.sprintf "Module %s" (DirPath.to_string (Nametab.dirpath_of_module mp))
268+
[%%else]
269+
let mod_info mp =
270+
md_code_block @@ Format.sprintf "Module %s" (Libnames.string_of_path (Nametab.path_of_module mp))
271+
[%%endif]
267272

268273
let modtype_info mp =
269274
md_code_block @@ Format.sprintf "Module Type %s" (Libnames.string_of_path (Nametab.path_of_modtype mp))

0 commit comments

Comments
 (0)