summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2013-06-06 23:41:46 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-06-06 23:41:46 +0200
commit9d170c4831a2488ba0fbdc57dddab3143f44357e (patch)
tree50a92d4cf2b03d0bf123acb7a8469cefb7b8fbc6
parent54ca5d09076ea1ad29076075abe30a32594e8c5f (diff)
downloadgeiser-guile-9d170c4831a2488ba0fbdc57dddab3143f44357e.tar.gz
geiser-guile-9d170c4831a2488ba0fbdc57dddab3143f44357e.tar.bz2
Racket: correct font-lock for define/match, again
We weren't considering the obvious: (define/match (foo bar) ...)
-rw-r--r--NEWS1
-rw-r--r--elisp/geiser-racket.el2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 0605af8..f282c76 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@
geiser-eval-buffer-and-go (C-c M-b), by Nick Parker.
- Pressing return on a previous expression in the REPL will resend
it, by Darren Hoo.
+ - Improvements to syntax highlighting (define/match in racket).
Bug fixes:
diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el
index b372eb5..1c42e29 100644
--- a/elisp/geiser-racket.el
+++ b/elisp/geiser-racket.el
@@ -256,7 +256,7 @@ using start-geiser, a procedure in the geiser/server module."
(setq geiser-racket-font-lock-forms
'(("^#lang\\>" . 0)
("\\[\\(else\\)\\>" . 1)
- ("(\\(define/match\\) +\\(\\w+\\)+\\b"
+ ("(\\(define/match\\) +(?\\(\\w+\\)+\\b"
(1 font-lock-keyword-face)
(2 font-lock-function-name-face))))