Re-indent string_with_vars with ocp-indent
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
parent
d708cc714d
commit
576ff5293e
|
@ -1,7 +1,7 @@
|
||||||
(** String with variables of the form ${...} or $(...)
|
(** String with variables of the form ${...} or $(...)
|
||||||
|
|
||||||
Variables cannot contain "${", "$(", ")" or "}". For instance in "$(cat ${x})", only
|
Variables cannot contain "${", "$(", ")" or "}". For instance in "$(cat
|
||||||
"${x}" will be considered a variable, the rest is text. *)
|
${x})", only "${x}" will be considered a variable, the rest is text. *)
|
||||||
|
|
||||||
open Import
|
open Import
|
||||||
|
|
||||||
|
@ -68,8 +68,8 @@ module Expand_to(V : EXPANSION) : sig
|
||||||
(V.t, string) Either.t
|
(V.t, string) Either.t
|
||||||
(** [expand t ~f] return [t] where all variables have been expanded
|
(** [expand t ~f] return [t] where all variables have been expanded
|
||||||
using [f]. If [f loc var] return [Some x], the variable [var] is
|
using [f]. If [f loc var] return [Some x], the variable [var] is
|
||||||
replaced by [x]; otherwise, the variable is inserted as [${var}]
|
replaced by [x]; otherwise, the variable is inserted using the syntax
|
||||||
or [$(var)] — depending on the original concrete syntax used. *)
|
it was originally defined with: ${..} or $(..) *)
|
||||||
|
|
||||||
val partial_expand :
|
val partial_expand :
|
||||||
V.context -> t -> f:(Loc.t -> string -> V.t option) ->
|
V.context -> t -> f:(Loc.t -> string -> V.t option) ->
|
||||||
|
|
Loading…
Reference in New Issue