From 9d170c4831a2488ba0fbdc57dddab3143f44357e Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Thu, 6 Jun 2013 23:41:46 +0200 Subject: Racket: correct font-lock for define/match, again We weren't considering the obvious: (define/match (foo bar) ...) --- NEWS | 1 + elisp/geiser-racket.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)))) -- cgit v1.2.3