),
term_string(Mode1, S, [module(pldoc_modes), numbervars(true)]),
term_string(T , S, [module(pldoc_modes), numbervars(true),
- subterm_positions(P)]),
+ subterm_positions(P), syntax_errors(quiet)]),
( Index == 0
-> ArgSpan = []
; P = term_position(_, _, _, _, ArgsPos0),
memberchk(element(dt, _, SubDom0), Dom),
memberchk(element(a, Att, SubDom), SubDom0),
with_output_to(string(S), html_text(element(dt, Att, SubDom))),
- term_string(T , S, [module(pldoc_modes), numbervars(true), subterm_positions(P)]),
+ term_string(T , S, [module(pldoc_modes), numbervars(true),
+ subterm_positions(P), syntax_errors(quiet)]),
( Index == 0
-> ArgSpan = []
; P = term_position(_, _, _, _, ArgsPos0),
:foreground "green" :extend t))
"Face to use for the new term in `sweeprolog-query-replace-term' queries.")
+(defface sweeprolog-eldoc-argument-highlight
+ '((t :inherit eldoc-highlight-function-argument))
+ "Face to use for highliting the argument at point in ElDoc messages.")
+
;;;; Font-lock
(defun sweeprolog-analyze-start-font-lock (beg end)
(`(,pi ,doc ,span)
(when span
(add-face-text-property (car span) (cdr span)
- 'eldoc-highlight-function-argument nil doc))
+ 'sweeprolog-eldoc-argument-highlight nil doc))
(funcall cb doc :thing pi :face 'sweeprolog-predicate-indicator)))))
;;;; Top-level Menu