From fd385faf2cc39e8393e4d49e272ac108ccff0e32 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Tue, 7 Feb 2023 22:16:44 +0200 Subject: [PATCH] FIXED: end-of-term detection after a fullstop turns to a dict dot This fixes an issue with finding clause bounds after changing e.g.: foo(Bar, Baz) :- Baz = Bar. ^ read as fullstop to: foo(Bar, Baz) :- Baz = Bar.foo. ^ read as dict dot --- sweeprolog.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sweeprolog.el b/sweeprolog.el index 2bdcaa8..932b582 100644 --- a/sweeprolog.el +++ b/sweeprolog.el @@ -2481,6 +2481,10 @@ resulting list even when found in the current clause." `("comment" . ,_)) (with-silent-modifications (remove-list-of-text-properties beg end '(sweeprolog-fullstop)))) + (`("syntax_error" ,_ ,eb ,ee) + (with-silent-modifications + (remove-list-of-text-properties (min beg eb) (max end ee) + '(sweeprolog-fullstop)))) ("fullstop" (with-silent-modifications (add-text-properties beg end -- 2.39.2