branch: elpa/racket-mode
commit 2eec63cd62bacf6d6b09bcc09e601265c36d165f
Author: Greg Hendershott <g...@greghendershott.com>
Commit: Greg Hendershott <g...@greghendershott.com>

    racket-repl-mode: Default font-lock-keywords-only to true; fixes #751
    
    This means that font-lock will no longer highlight strings or comments
    in REPL buffers when used by classic racket-mode. The advantage: It
    won't MIS-highlight them due to stray string or comment delimiters
    among the various kinds of REPL output.
---
 racket-hash-lang.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/racket-hash-lang.el b/racket-hash-lang.el
index a4695b40e9..916f1f5c76 100644
--- a/racket-hash-lang.el
+++ b/racket-hash-lang.el
@@ -853,6 +853,7 @@ rhombus\"."
       ;; font-lock
       (setq-local font-lock-keywords
                   (with-current-buffer edit-buffer font-lock-keywords))
+      (setq-local font-lock-keywords-only t) ;#751
       (setq-local racket--repl-fontify-region-function
                   (with-current-buffer edit-buffer 
font-lock-fontify-region-function))
       (font-lock-flush)

Reply via email to