[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sweeprolog 4c1e510bbf 125/166: FIXED: handle some more col
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sweeprolog 4c1e510bbf 125/166: FIXED: handle some more color terms |
Date: |
Fri, 30 Sep 2022 04:59:31 -0400 (EDT) |
branch: elpa/sweeprolog
commit 4c1e510bbfe2e055017ab34214de212bda2d2732
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
FIXED: handle some more color terms
---
sweep.el | 30 ++++++++++++++++++++++++++----
1 file changed, 26 insertions(+), 4 deletions(-)
diff --git a/sweep.el b/sweep.el
index f4a9215679..8ed4951605 100644
--- a/sweep.el
+++ b/sweep.el
@@ -419,7 +419,7 @@ FLAG and VALUE are specified as strings and read as Prolog
terms."
;;;###autoload
(defun sweep-find-predicate (mfn)
- "Jump to the definiton of the Prolog predicate MFN.
+ "Jump to the definition of the Prolog predicate MFN.
MFN must be a string of the form \"M:F/N\" where M is a Prolog
module name, F is a functor name and N is its arity."
(interactive (list (sweep-read-predicate)))
@@ -572,6 +572,26 @@ module name, F is a functor name and N is its arity."
(sweep-defface comment font-lock-comment-face
"Comments.")
+(defface sweep-head-built-in-face
+ '((default . (:foreground "black" :background "orange" :weight bold)))
+ "Face used to highlight built-in predicate definitons."
+ :group 'sweep-faces)
+
+(defface sweep-method-face
+ '((default . (:weight bold)))
+ "Face used to highlight PCE methods."
+ :group 'sweep-faces)
+
+(defface sweep-class-face
+ '((default . (:underline t)))
+ "Face used to highlight PCE classes."
+ :group 'sweep-faces)
+
+(defface sweep-no-file-face
+ '((default . (:foreground "red")))
+ "Face used to highlight non-existsing file specifications."
+ :group 'sweep-faces)
+
(sweep-defface head-local font-lock-builtin-face
"Local predicate definitions.")
@@ -695,9 +715,6 @@ module name, F is a functor name and N is its arity."
(sweep-defface file button
"File specifiers.")
-(sweep-defface no-file font-lock-warning-face
- "Non-existent file specifiers.")
-
(sweep-defface file-no-depend font-lock-warning-face
"Unused file specifiers.")
@@ -771,6 +788,7 @@ module name, F is a functor name and N is its arity."
(`("meta" . ,_) sweep-head-meta-face)
(`("exported" . ,_) sweep-head-exported-face)
(`("hook" . ,_) sweep-head-hook-face)
+ (`("built_in" . ,_) 'sweep-head-built-in-face)
(`(,(rx "extern(") . ,_) sweep-head-extern-face)
(`(,(rx "public ") . ,_) sweep-head-public-face)
(`(,(rx "local(") . ,_) sweep-head-local-face)
@@ -828,7 +846,10 @@ module name, F is a functor name and N is its arity."
("identifier" (put-text-property beg end 'font-lock-face
sweep-identifier-face))
("file" (put-text-property beg end 'font-lock-face
sweep-file-face))
("file_no_depend" (put-text-property beg end 'font-lock-face
sweep-file-no-depend-face))
+ ("nofile" (put-text-property beg end 'font-lock-face
'sweep-no-file-face))
("op_type" (put-text-property beg end 'font-lock-face
sweep-op-type-face))
+ ("method" (put-text-property beg end 'font-lock-face
'sweep-method-face))
+ ("class" (put-text-property beg end 'font-lock-face
'sweep-class-face))
(`("goal_term" . ,_) nil)
(`("head_term" . ,_) nil)
("clause" nil)
@@ -836,6 +857,7 @@ module name, F is a functor name and N is its arity."
("body" nil)
("html" nil)
("parentheses" nil)
+ ("pce" nil)
("term" nil)
("expanded" nil)
("list" nil)
- [nongnu] elpa/sweeprolog 031c07ac93 076/166: DOC: document the Prolog messages buffer, (continued)
- [nongnu] elpa/sweeprolog 031c07ac93 076/166: DOC: document the Prolog messages buffer, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 8ac0e7afb9 065/166: ENHANCED: also complete predicate names from xref, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 85ca3a5dc2 067/166: FIXED: bind SourceId in xref based completions, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 21a4475306 112/166: Makefile: Allow specifying the path to emacs, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog ec01154a41 102/166: PORT: sweep.el: require Emacs version 28 for RTLD_GLOBAL, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog e991b1a92c 097/166: ENHANCED: (sweep-load-buffer): use read-buffer to choose a buffer, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog c69c6bad3c 084/166: FIXED: correctly identify the predicate defined at start of clause, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 586521712e 110/166: DOC: README.org: add ^:{} option, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 0b545cc192 114/166: ADDED: (sweep-indent-line-ends-with-prefix-operator): New function, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog c60df8e7e3 101/166: DOC: Loading buffers: new section, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 4c1e510bbf 125/166: FIXED: handle some more color terms,
ELPA Syncer <=
- [nongnu] elpa/sweeprolog 588cfb0f63 130/166: BUILD: Inline sweep.h in sweep.c, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 12bddb3f75 117/166: ENHANCED: don't record one-character inputs in the top level history, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog f82827fdb0 093/166: ENHANCED: Display message if unable to find predicate location, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 0f1119fb75 118/166: FIXED: indentation after with inline comments, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog f9218dc461 123/166: PORT: use (eql sweep) instead of (eql 'sweep) in cl-defmethods..., ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 0db900634f 120/166: DOC: update commentary section in sweep.el, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 6f7aa88050 100/166: ENHANCED: (sweep-load-buffer): report results, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 12fbadf13b 137/166: sweep.el: remove outdated sweep--compile-module function, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog c6066eabb9 144/166: ADDED: support imenu in sweep-mode buffers, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 8179cb4204 135/166: FIXED: qualify calls to sweep_funcall/2, ELPA Syncer, 2022/09/30