Skip to content
Snippets Groups Projects
Commit 24f54900 authored by Loïc Correnson's avatar Loïc Correnson Committed by Virgile Prevosto
Browse files

[odoc] fix source doc indent

parent f77a5f68
No related branches found
No related tags found
No related merge requests found
...@@ -101,18 +101,18 @@ type extension_module_importer = ...@@ -101,18 +101,18 @@ type extension_module_importer =
Here is a basic example: Here is a basic example:
{[ {[
let count = ref 0 let count = ref 0
let foo_typer typing_context loc = function let foo_typer ctxt loc = function
| p :: [] -> | [] ->
Ext_preds let id = !count in incr count;
[ (typing_context.type_predicate Ext_id id
typing_context | [p] ->
(typing_context.post_state [Normal]) Ext_preds [ctxt.type_predicate ctxt (ctxt.post_state [Normal]) p]
p)]) | _ ->
| [] -> let id = !count in incr count; Ext_id id typing_context.error loc "expecting a predicate after keyword FOO"
| _ -> typing_context.error loc "expecting a predicate after keyword FOO"
let () = let () =
Acsl_extension.register_behavior ~plugin:"myplugin" "FOO" foo_typer false Acsl_extension.register_behavior ~plugin:"myplugin" "FOO" foo_typer false
]} ]}
@before 29.0-Copper parameters [plugin] and [is_same_ext] were not present @before 29.0-Copper parameters [plugin] and [is_same_ext] were not present
@see <https://frama-c.com/download/frama-c-plugin-development-guide.pdf> @see <https://frama-c.com/download/frama-c-plugin-development-guide.pdf>
...@@ -161,7 +161,7 @@ val register_code_annot_next_both: register_extension ...@@ -161,7 +161,7 @@ val register_code_annot_next_both: register_extension
Module importer extensions allow to extends the import clause with external Module importer extensions allow to extends the import clause with external
loaders. For instance, consider the following declaration: loaders. For instance, consider the following declaration:
{[ {[
//@ import A: foo::bar; //@ import A: foo::bar;
]} ]}
This import clause will invoke an external module importer named ["A"] This import clause will invoke an external module importer named ["A"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment