* sweeprolog.el (sweeprolog-analyze-fragment-variable): check for
anonymous variables ("_").
((or "var"
`("goal_term" "meta" variable 0))
(let ((var (buffer-substring-no-properties beg end)))
- (with-silent-modifications
- (put-text-property beg end 'cursor-sensor-functions
- (sweeprolog-cursor-sensor-functions var)))))))
+ (unless (string= var "_")
+ (with-silent-modifications
+ (put-text-property beg end 'cursor-sensor-functions
+ (sweeprolog-cursor-sensor-functions
+ var))))))))
(defvar sweeprolog-analyze-region-start-hook
'(sweeprolog-analyze-start-font-lock))