From: Eshel Yaron Date: Mon, 13 Nov 2023 13:04:54 +0000 (+0100) Subject: ; Fix naming of implicit DCG arguments in completion candidates X-Git-Tag: V9.1.19-sweep-0.27.1~9 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b0eb114ddd0b0642de350f07fc8a69718256bde4;p=sweep.git ; Fix naming of implicit DCG arguments in completion candidates * sweep.pl (predicate_argument_names/3): Make implicit arguments appear as anonymous variables. --- diff --git a/sweep.pl b/sweep.pl index ae8487e..b5eb37c 100644 --- a/sweep.pl +++ b/sweep.pl @@ -1445,10 +1445,9 @@ sweep_file_path_in_library(Path, Spec) :- ; term_string(Spec1, Spec) ). - predicate_argument_names(M:F/A, Args, Extra) :- ( sweep_grammar_rule(M, F, A) - -> Extra = [_,_] + -> Extra = ['$VAR'('_'),'$VAR'('_')] ; Extra = [] ), sweep_module_functor_arity_pi_(M, F, A, M:PI), @@ -1458,7 +1457,6 @@ predicate_argument_names(M:F/A, Args, Extra) :- arg(2, PI, N), predicate_argument_names_(N, Args0, Args). - predicate_argument_names_from_man(M, PI, Args) :- ( pldoc_man:load_man_object(M:PI, _, _, DOM0) -> true