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 $(...)
|
||||
|
||||
Variables cannot contain "${", "$(", ")" or "}". For instance in "$(cat ${x})", only
|
||||
"${x}" will be considered a variable, the rest is text. *)
|
||||
Variables cannot contain "${", "$(", ")" or "}". For instance in "$(cat
|
||||
${x})", only "${x}" will be considered a variable, the rest is text. *)
|
||||
|
||||
open Import
|
||||
|
||||
|
@ -68,8 +68,8 @@ module Expand_to(V : EXPANSION) : sig
|
|||
(V.t, string) Either.t
|
||||
(** [expand t ~f] return [t] where all variables have been expanded
|
||||
using [f]. If [f loc var] return [Some x], the variable [var] is
|
||||
replaced by [x]; otherwise, the variable is inserted as [${var}]
|
||||
or [$(var)] — depending on the original concrete syntax used. *)
|
||||
replaced by [x]; otherwise, the variable is inserted using the syntax
|
||||
it was originally defined with: ${..} or $(..) *)
|
||||
|
||||
val partial_expand :
|
||||
V.context -> t -> f:(Loc.t -> string -> V.t option) ->
|
||||
|
|
Loading…
Reference in New Issue