diff options
author | Alex Kost <alezost@gmail.com> | 2015-09-16 21:34:24 +0300 |
---|---|---|
committer | Alex Kost <alezost@gmail.com> | 2015-09-27 12:23:01 +0300 |
commit | 2b7e3aa00afebe454bea26f54d31847e178c3c33 (patch) | |
tree | 32be32ddfcce36341da14b81bbc041aceea8b60b /elisp/geiser-guile.el | |
parent | 59f140f19b36ce273e3a0f955597469d5192c209 (diff) | |
download | geiser-guile-2b7e3aa00afebe454bea26f54d31847e178c3c33.tar.gz geiser-guile-2b7e3aa00afebe454bea26f54d31847e178c3c33.tar.bz2 |
Add 'geiser-syntax--simple-keywords'
Use this function instead of repeating the same code in each
implementation.
Diffstat (limited to 'elisp/geiser-guile.el')
-rw-r--r-- | elisp/geiser-guile.el | 4 |
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)) |