From b3df39e24180fbbfaf03704a3985bb4f88a35081 Mon Sep 17 00:00:00 2001 From: Antonio Nuno Monteiro Date: Mon, 2 Nov 2026 22:27:54 -0800 Subject: [PATCH] Test DOM JSX source locations with data attributes --- test/blackbox-tests/dom-props-locations.t | 74 +++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 test/blackbox-tests/dom-props-locations.t diff --git a/test/blackbox-tests/dom-props-locations.t b/test/blackbox-tests/dom-props-locations.t new file mode 100644 index 000000000..8e69ea6a8 --- /dev/null +++ b/test/blackbox-tests/dom-props-locations.t @@ -0,0 +1,74 @@ +DOM JSX source locations remain available while editing buffers with data +attributes, even before the JSX PPX supports those attributes. + + $ cat > dune-project < (lang dune 3.8) + > (using melange 0.1) + > EOF + + $ cat > dune < (melange.emit + > (target output) + > (alias mel) + > (emit_stdlib false) + > (libraries reason-react) + > (preprocess (pps melange.ppx reason-react-ppx))) + > EOF + +Build a valid component to initialize the Merlin configuration. + + $ cat > component.re < let element =