summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2015-09-16 21:34:24 +0300
committerAlex Kost <alezost@gmail.com>2015-09-27 12:23:01 +0300
commit15af81d8d23d9ab1c2b5f6037db99ab4a5dce76b (patch)
tree26f8165a55750f24983526dd1dfedfd2b4ca6c89 /elisp
parent5ed0541617ba1616fa52b1a973eb7673954b4937 (diff)
downloadgeiser-guile-15af81d8d23d9ab1c2b5f6037db99ab4a5dce76b.tar.gz
geiser-guile-15af81d8d23d9ab1c2b5f6037db99ab4a5dce76b.tar.bz2
Add 'geiser-syntax--simple-keywords'
Use this function instead of repeating the same code in each implementation.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-guile.el4
1 files changed, 1 insertions, 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))