branch: elpa/geiser-guile
commit 15af81d8d23d9ab1c2b5f6037db99ab4a5dce76b
Author: Alex Kost <[email protected]>
Commit: Alex Kost <[email protected]>
Add 'geiser-syntax--simple-keywords'
Use this function instead of repeating the same code in each
implementation.
---
elisp/geiser-guile.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index e8eb11a..941fe81 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -247,9 +247,7 @@ This function uses `geiser-guile-init-file' if it exists."
(defun geiser-guile--keywords ()
(append
- (when geiser-guile-extra-keywords
- `((,(format "[[(]%s\\>" (regexp-opt geiser-guile-extra-keywords 1))
- . 1)))
+ (geiser-syntax--simple-keywords geiser-guile-extra-keywords)
`((,(rx "(" (group "define-once") eow (* space) (? (group (+ word))))
(1 font-lock-keyword-face)
(2 font-lock-variable-name-face nil t))