From c284321b1073e06481c63e2c061a1600fa68254d Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Thu, 10 Apr 2025 20:27:59 +0200 Subject: Added filters expressions in the externals --- lib/configuration/read_conf.ml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/configuration') diff --git a/lib/configuration/read_conf.ml b/lib/configuration/read_conf.ml index c3c78cc..f78ff5b 100644 --- a/lib/configuration/read_conf.ml +++ b/lib/configuration/read_conf.ml @@ -306,6 +306,10 @@ module Make (S : Decoders.Decode.S) = struct and* tab = S.field_opt_or ~default:1 "tab" S.int and* allow_missing = S.field_opt_or ~default:false "allow_missing" S.bool + and* filters = + S.field_opt_or ~default:[] "filters" + (S.list + (self#parse_expression ~eq:Int.equal ExpressionParser.column)) in S.succeed @@ -315,7 +319,7 @@ module Make (S : Decoders.Decode.S) = struct extern_key; target = { name; file; tab }; allow_missing; - match_rule = None; + filters; } (** Load the configuration for an external file to link *) -- cgit v1.2.3