From 3ecd2475d211ee0a939c16d022e77763a454e261 Mon Sep 17 00:00:00 2001
From: Eshel Yaron <me@eshelyaron.com>
Date: Fri, 28 Oct 2022 19:05:32 +0300
Subject: [PATCH] FIXED: correctly recognize "public" head terms

---
 sweeprolog.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sweeprolog.el b/sweeprolog.el
index 51c4c44..9208b53 100644
--- a/sweeprolog.el
+++ b/sweeprolog.el
@@ -1686,7 +1686,7 @@ When non-nil, only predicates whose name contains PREFIX are returned."
      (list (list beg end (sweeprolog-head-imported-face))))
     (`("head" ,(rx "extern(") . ,_)
      (list (list beg end (sweeprolog-head-extern-face))))
-    (`("head" ,(rx "public(") . ,_)
+    (`("head" ,(rx "public ") . ,_)
      (list (list beg end (sweeprolog-head-public-face))))
     (`("head",(rx "dynamic ") ,f ,a)
      (add-to-list 'sweeprolog--exportable-predicates (concat f "/" (number-to-string a)))
-- 
2.39.5