[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sweeprolog cd6b743a54 1/6: ENHANCED: Highlight string-styl
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sweeprolog cd6b743a54 1/6: ENHANCED: Highlight string-style DCG terminals |
Date: |
Tue, 6 Jun 2023 04:01:34 -0400 (EDT) |
branch: elpa/sweeprolog
commit cd6b743a544ae273111f996796678fbe514a4d8a
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
ENHANCED: Highlight string-style DCG terminals
---
sweeprolog.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/sweeprolog.el b/sweeprolog.el
index 58e6c717f4..d9de4908ae 100644
--- a/sweeprolog.el
+++ b/sweeprolog.el
@@ -2034,6 +2034,13 @@ resulting list even when found in the current clause."
(:weight bold)
"Declaration options.")
+(sweeprolog-defface
+ dcg-string
+ (:inherit font-lock-string-face)
+ (:foreground "navyblue")
+ (:foreground "palegreen")
+ "DCG terminal strings.")
+
;;;; Font-lock
(defun sweeprolog-analyze-start-font-lock (beg end)
@@ -2314,7 +2321,9 @@ resulting list even when found in the current clause."
("class"
(list (list beg end (sweeprolog-class-face))))
(`("decl_option" . ,_)
- (list (list beg end (sweeprolog-declaration-option-face))))))
+ (list (list beg end (sweeprolog-declaration-option-face))))
+ (`("dcg" . "string")
+ (list (list beg end (sweeprolog-dcg-string-face))))))
(defun sweeprolog-analyze-fragment-font-lock (beg end arg)
(when-let ((face-fragments (sweeprolog-analyze-fragment-to-faces
- [nongnu] elpa/sweeprolog updated (d3682fb27b -> a9ce19bd33), ELPA Syncer, 2023/06/06
- [nongnu] elpa/sweeprolog 1542c821e3 4/6: Use 'ignore-errors' instead of 'condition-case' with no handlers, ELPA Syncer, 2023/06/06
- [nongnu] elpa/sweeprolog a9ce19bd33 6/6: Announce recent changes in NEWS.org and bump version to 0.18.4, ELPA Syncer, 2023/06/06
- [nongnu] elpa/sweeprolog ef2bca22bb 5/6: ENHANCED: Add tooltip info for string-stye DCG terminals, ELPA Syncer, 2023/06/06
- [nongnu] elpa/sweeprolog 62fe11b8ab 2/6: ENHANCED: Export DCG non-terminals as 'foo//N', not 'foo/N+2', ELPA Syncer, 2023/06/06
- [nongnu] elpa/sweeprolog cf90a2144e 3/6: Add docstring for 'sweeprolog-definition-at-point', ELPA Syncer, 2023/06/06
- [nongnu] elpa/sweeprolog cd6b743a54 1/6: ENHANCED: Highlight string-style DCG terminals,
ELPA Syncer <=