]> git.eshelyaron.com Git - sweep.git/commit
Fix fullstop detection in presence of dot character literal
authorEshel Yaron <me@eshelyaron.com>
Fri, 1 Dec 2023 18:15:06 +0000 (19:15 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 1 Dec 2023 18:18:36 +0000 (19:18 +0100)
commit54e0a5e9262f8c9b70c6e4adddfc3453a6fcae4d
treee219424863e9f4f7d65c947c585a71643ca1a4b7
parent9ea7cd7c5af3cdc79c6a821b5c090d5e0d141646
Fix fullstop detection in presence of dot character literal

This fixes an issue where the character "0'." in a clause body would
confuse clause boundaries calculation.

* sweeprolog.el (sweeprolog-end-of-top-term): Make sure fullstop have
punctuation syntax class (otherwise it's part of a character literal).
* sweeprolog-tests.el (end-of-top-term-with-dot-char-literal): Test it
sweeprolog-tests.el
sweeprolog.el