From 40f5d8e6a09a7f010c5fc605619512f4d8e1ce98 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 2 Apr 2012 12:13:30 +0200 Subject: Highlighting [else properly in Racket buffers That is, `else' gets keyword fontlocking. Undecided as to whether extend this highlighting to all schemes... --- elisp/geiser-racket.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'elisp') diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el index 6e2de6b..0d54b78 100644 --- a/elisp/geiser-racket.el +++ b/elisp/geiser-racket.el @@ -1,6 +1,6 @@ ;; geiser-racket.el -- geiser support for Racket scheme -;; Copyright (C) 2009, 2010, 2011 Jose Antonio Ortega Ruiz +;; Copyright (C) 2009, 2010, 2011, 2012 Jose Antonio Ortega Ruiz ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the Modified BSD License. You should @@ -233,10 +233,11 @@ This function uses `geiser-racket-init-file' if it exists." ;;; Keywords and syntax (defun geiser-racket--keywords () - (cons '("^#lang\\>" . 0) - (when geiser-racket-extra-keywords - `((,(format "[[(]%s\\>" (regexp-opt geiser-racket-extra-keywords 1)) - . 1))))) + (append '(("^#lang\\>" . 0) + ("\\[\\(else\\)\\>" . 1)) + (when geiser-racket-extra-keywords + `((,(format "[[(]%s\\>" (regexp-opt geiser-racket-extra-keywords 1)) + . 1))))) (geiser-syntax--scheme-indent (splicing-let 1) -- cgit v1.2.3