branch: elpa/sweeprolog
commit b0eb114ddd0b0642de350f07fc8a69718256bde4
Author: Eshel Yaron <[email protected]>
Commit: Eshel Yaron <[email protected]>
; 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