From 3f991d175d12b2b658e9a3637ea3dc3fcd7ef696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulysse=20G=C3=A9rard?= Date: Tue, 16 Jan 2024 14:41:28 +0100 Subject: [PATCH] test: illustrate shortcomings of Merlin when lid have spaces or commentaries in them --- tests/test-dirs/occurrences/modules-in-path.t | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/tests/test-dirs/occurrences/modules-in-path.t b/tests/test-dirs/occurrences/modules-in-path.t index 4a61393e8..95f9c56ee 100644 --- a/tests/test-dirs/occurrences/modules-in-path.t +++ b/tests/test-dirs/occurrences/modules-in-path.t @@ -1,8 +1,11 @@ $ cat >main.ml <<'EOF' > module N = struct module M = struct let x = 42 end end > let () = print_int N.M.x + > let () = print_int N.M.(*comment*)x > EOF +FIXME: longident with spaces will be highlighted incorrectly + $ $MERLIN single occurrences -identifier-at 1:25 \ > -filename main.ml -log-file - -log-section locate \ + > -filename main.ml