emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/sweeprolog b0eb114ddd 1/5: ; Fix naming of implicit DCG ar


From: ELPA Syncer
Subject: [nongnu] elpa/sweeprolog b0eb114ddd 1/5: ; Fix naming of implicit DCG arguments in completion candidates
Date: Tue, 14 Nov 2023 07:00:25 -0500 (EST)

branch: elpa/sweeprolog
commit b0eb114ddd0b0642de350f07fc8a69718256bde4
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    ; Fix naming of implicit DCG arguments in completion candidates
    
    * sweep.pl (predicate_argument_names/3): Make implicit arguments
    appear as anonymous variables.
---
 sweep.pl | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sweep.pl b/sweep.pl
index ae8487e789..b5eb37c932 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]