Skip to content

Commit

Permalink
doc: add merlin_reader to the (dialect ...) documentation (#10483)
Browse files Browse the repository at this point in the history
* doc: add `merlin_reader` to the `(dialect ...)` documentation

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>

* Update doc/reference/dune-project/dialect.rst

Co-authored-by: Andrey Popp <8mayday@gmail.com>
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>

* fix: grammar

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>

* fix: use seealso and a stable tag

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>

---------

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
Co-authored-by: Andrey Popp <8mayday@gmail.com>
Co-authored-by: Etienne Millon <me@emillon.org>
  • Loading branch information
3 people committed May 14, 2024
1 parent f4939a4 commit a55af46
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/reference/dune-project/dialect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ dialect

.. versionchanged:: 3.9 This field is made optional.

.. describe:: (merlin_reader <program> <args>...)

Configure Merlin to use `<program> <args>...` as READER. Merlin's READER
is a mechanism to extend Merlin to support OCaml dialects by providing
a program that transforms a dialect AST into an OCaml AST.

.. seealso:: `merlin/src/extend/extend_protocol.ml <https://github.com/ocaml/merlin/blob/4.14-502_preview2/src/extend/extend_protocol.ml>`_ for the protocol specification.

This field is optional.

.. versionadded:: 3.16


Default dialects
----------------
Expand Down

0 comments on commit a55af46

Please sign in to comment.