(:inherit font-lock-doc-face :foreground "green")
"Structured comments.")
+(sweeprolog-defface
+ hole
+ (:box t)
+ (:box t)
+ (:box t)
+ "Holes.")
;;;; Font-lock
(`("goal" "recursion" . ,_)
(list (list beg end (sweeprolog-recursion-face))))
(`("goal" "meta" . ,_)
- (list (list beg end (sweeprolog-meta-face))))
+ (cons (list beg end (sweeprolog-meta-face))
+ (when (get-text-property beg 'sweeprolog-hole)
+ (list (list beg end (sweeprolog-hole-face))))))
(`("goal" "built_in" . ,_)
(list (list beg end (sweeprolog-built-in-face))))
(`("goal" "undefined" . ,_)
("control"
(list (list beg end (sweeprolog-control-face))))
("var"
- (list (list beg end (sweeprolog-variable-face))))
+ (cons (list beg end (sweeprolog-variable-face))
+ (when (get-text-property beg 'sweeprolog-hole)
+ (list (list beg end (sweeprolog-hole-face))))))
("fullstop"
(save-excursion
(goto-char (min end (point-max)))